Bug 928002
Summary: | Seam2.3 pages rewrite doesn't rewrite s:link params | ||
---|---|---|---|
Product: | [Retired] JBoss Enterprise WFK Platform 2 | Reporter: | Marek Schmidt <maschmid> |
Component: | Seam | Assignee: | Marek Novotny <mnovotny> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Marek Schmidt <maschmid> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.2.0 | CC: | ppenicka, snagarwa, tremes |
Target Milestone: | ER1 | ||
Target Release: | 2.3.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Using the <rewrite> configuration in Seam's components.xml file did not ensure correct URL rewriting. As URL rewriting was performed before parameters are set, URLs produced by the <s:link> and <s:button> elements were rendered with query string parameters. This has been fixed by rewriting the ViewUrlBuilder to use ViewHandler API appropriately with respect to bookmarkable URLs.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2013-07-16 11:33:11 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Marek Schmidt
2013-03-26 16:32:04 UTC
Interesting observation: removing the '<rewrite pattern="/entry" />' rule makes the other rule work. This issue goes away with reverted patch for https://bugzilla.redhat.com/show_bug.cgi?id=921660 My previous comment was a mistake, it doesn't work. Edited release note and inserted it into the 2.2.0 RN book. Docs stage URL: https://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/2.2/html-single/2.2.0_Release_Notes/index.html Build: JBoss_Web_Framework_Kit-2.2.0_Release_Notes-2.2-en-US-0-23 Marek Novotny <mnovotny> made a comment on jira JBSEAM-5085 I figured out how to change the incorrect behavior of org.jboss.seam.ui.util.ViewUrlBuilder. The existence of viewHandler.getBookmarkableUrl was premature to call in ViewUrlBuilder initialization, because we need added parameters in URL. So after discussion with Marek Schmidt I prepared the change. However that change broke the calling of page actions due double url encoding - experienced in org.jboss.seam.test.integration.faces.conversations.ConversationPropagationsTest.testSButtonActionPropagationNone(). So I changed default url encoding to false in org.jboss.seam.ui.util.ViewUrlBuilder.ViewUrlBuilder(String, String). The test case for Page rewrite is added as org.jboss.seam.test.integration.faces.ViewUrlBuilderTest. Marek Novotny <mnovotny> made a comment on jira JBSEAM-5085 I figured out how to change the incorrect behavior of {{org.jboss.seam.ui.util.ViewUrlBuilder}}. The existence of {{viewHandler.getBookmarkableUrl}} was premature to call in {{ViewUrlBuilder}} initialization, because we need added parameters in URL. So after discussion with Marek Schmidt I prepared the change. However that change broke the calling of page actions due double url encoding - experienced in {{org.jboss.seam.test.integration.faces.conversations.ConversationPropagationsTest.testSButtonActionPropagationNone()}}. So I changed default url encoding to false in {{org.jboss.seam.ui.util.ViewUrlBuilder.ViewUrlBuilder(String, String)}}. The test case for Page rewrite is added as {{org.jboss.seam.test.integration.faces.ViewUrlBuilderTest}}. Marek Novotny <mnovotny> updated the status of jira JBSEAM-5085 to Resolved back ported the fix as https://source.jboss.org/changelog/Seam?cs=15510 and Marek Novotny <mnovotny> updated the status of jira JBSEAM-5085 to Closed Marek Novotny <mnovotny> made a comment on jira JBSEAM-5085 2.3.1.CR1 is now out, so closing all resolved issues Verified on 2.3.0.ER1 release. Updated doc text. |