Issue Details (XML | Word | Printable)

Key: FOR-804
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Tim Williams
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Forrest

using redirect-to in dispatcher doesn't work

Created: 30/Jan/06 07:15 AM   Updated: 31/Jan/06 04:53 AM
Return to search
Component/s: Plugin: internal.dispatcher
Affects Version/s: 0.8
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide
The dispatcher doesn't seem to like map:redirect-to's as in:

      <map:match pattern="gallery/**/index.xml">
        <map:redirect-to uri="gallery/{1}/index_1.xml"/>
      </map:match>

This is fixed in the photogallery by changing it to:
      <map:match pattern="gallery/**/index.xml">
        <map:generate src="cocoon://gallery/{1}/index_1.xml"/>
        <map:serialize type="xml" />
      </map:match>

I'm really not sure what the benefit of the map:redirect-to is in this instance. It seems like the cocoon protocol might be more appropriate anyway but it highlights that there may be an issue with using redirect-to's in Dispatcher. Further testing is required to make sure it's really an issue, but it's not my major concern at the moment and I didn't want to get sidetracked.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Thorsten Scherler added a comment - 30/Jan/06 07:37 AM
What is the error message?

Tim Williams added a comment - 30/Jan/06 07:46 AM
It is the standard error if a page isn't found. I can change it back and get the exact error if you'd like but it's the standard Cocoon file not found error with the path of the redirect.

Thorsten Scherler added a comment - 30/Jan/06 07:59 AM
No, no need. I think the problem lies in the contracts/structurer.

We need to track the contracts which are not working.

I guess
<forrest:contract name="content-main" dataURI="cocoon://#{$getRequest}.body.xml"/>
this kind of links can break on a redirect.



Thorsten Scherler added a comment - 31/Jan/06 04:53 AM
I forget to ask which version of the dispatcher?

I saw that you have checked in the photogallery plugin with the v2 plugins.