Tuckey urlrewritefilter version

Hi All,

Does anyone know which version of the Tuckey urlrewritefilter Commandbox is using and where the jar is kept if I want to chnage the version?

Thanks.

It is using the latest version. It should be under ~/user/.CommandBox/lib

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057

Yep, that would be version 4.0.4, but it is "shaded" into the runwar
jar, so changing it takes replacing the classes inside the jar file.

-Den

Hi Luis and Denny,

Thanks for the reply.

The latest available appears to be 4.0.3 according the download page:

https://code.google.com/p/urlrewritefilter/downloads/list

and according to these release notes:

http://tuckey.org/urlrewrite/manual/4.0/introduction.html

It should contain an additional feature detailed on the above page and the issue 49 ticket:

https://code.google.com/p/urlrewritefilter/issues/detail?id=49

The feature allows the use of “notfile” and “notdir” in the condition statements to replicate the following from Apache mod_rewrite:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

As I’ve asked on Stackoverflow here:

http://stackoverflow.com/questions/30406720/file-and-directory-dont-exist-equivalent-in-xml-syntax

However it simply is not working for me and without this I can’t use CommandBox for my legacy application, which is a shame.

Are you sure it is 4.0.4??? I don’t appear to be able to find this version.

Thanks.

Andrew. It is but that does not work on tuckey

I have battled with this for a long time and the conclusion is that tuckey has not implemented this correctly.

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057

Hi Luis,

Oh well, that’s a shame… and Tuckey looks like a bit of a dead project as well, seems like the last update was in 2012 and it is still hosted on Google Code, which is shutting down AFAIK… Doing a quick search and found a few posts suggesting this instead:

http://www.ocpsoft.org/rewrite/

Not looked into it at all, so might not have the required features either. I will see if I can find sometime tomorrow to take a look.

Yes I think we need an alternative.

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057

Andrew, did you ever get the Tuckey logging enabled. It shouldn’t be impossible to debug the Tuckey code and see what’s happening. It could be we misunderstand how it works or there is a bug we can help fix and do a custom build.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Hi Brad,

No I didn’t. I tried for about 5 minutes but couldn’t work it out. I suspect you might be right in saying it could be a misunderstanding or maybe incorrectly documented, however the project appears to be dead and I can’t seem to get a response from them on anything.

I really think we must look at alternatives for this. I also read that undertow also offers this under the hood but their docs show no clear examples.

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

ColdBox Platform: http://www.coldbox.org

ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox