Hi guys

SHORT VERSION:
I don't think 1.8 RC1 supports the following property which may be a
bug or a bad way to construct urls (but accommodated by 1.6);
<property name="urlDelimiters" value="/|&amp;|=" />
This translates to something like "/index.cfm/event=..."

LONG VERSION:

I'm experimenting with upgrading from 1.6 to 1.8 RC1. I ran into a
problem where after many hours of investigation I found that my app
(in 1.8) was returning the default event instead of the event which it
should have been. After much digging around in the MachII code base
(and not realising that I could have saved a lot of time if I knew
about logging) I found that perhaps the way I was ReWriting urls was
guilty. However it did work in version 1.6 so I thought I'd throw it
out in case it is a bug.

Before I get to showing my URLs I just wanted to point you to the line
of code in 1.8 RC1 which after many hours of digging is where I found
to be the issue causing the default event to be returned because my
event in the CGI.PATH_INFO was being ignored (it appears if I'd have
enabled logging I'd have found it much sooner - I've learned for next
time). The line of code is /framework/RequestManager.cfc line 412-414.
I've given up trying to interpret this error on line 413 "Could not
find a configured url route with the url alias of '#names[1]#'. Routes
can only be announced from the browser url using url alias. Route
names are only used when referencing routes from within the framework
such as BuildRouteUrl(). Cleaned path_info='#arguments.pathInfo#'".

Now to my urls. As mentioned above I setup MachII to accept urls as:
<property name="urlDelimiters" value="/|&amp;|=" />
This was to accommodate my urls which were Isapi ReWritten as" /
index.cfm/event=...". Note the ".cfm/" instead of ".cfm?"

To solve the problem I have removed the <property name="urlDelimiters"
value="/|&amp;|=" /> and reverted back to good old correct urls i.e. "/
index.cfm?event...". After doing some reading I believe that urls
written the way I was doing them is invalid anyway which is why I am
not flagging this as a bug.

Right: enough time wasted, back to what I was doing.

By the way: thanks MachII team for a great framework!

Cheers
Matthew

-- 
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/

Reply via email to