mraible opened a new pull request, #397: URL: https://github.com/apache/roller/pull/397
On the Edit Entry page, the sidebar's "Comments [n]" link goes to Permission Denied in 6.1.8 RC2 and RC3. I mentioned it in my RC3 vote as a non-blocker. The URL is built with `<s:url>`, which writes `&` as `&`. It's then passed to `<s:text>`, and since "Escape values consistently in the UI JSPs" UIAction escapes those string arguments again. The browser gets `&` in the URL, so `weblog` is lost. The same double escaping affects three more links on roller-6.1.x, through `<s:property>`: - The media sidebar's "Add Media File" link, which drops `directoryName`. - The "Upload more" and "Cancel" buttons on the upload-complete page, which drop `directoryName` and `directoryId`. These `<s:url>` tags now use `escapeAmp="false"`, so each URL is escaped once. Master's media pages already do this. The upload-complete buttons also called `window.load()`, which doesn't exist. Since 6.1.7, clicking either one has thrown a TypeError and then submitted the form. They now use `type="button"` and go to their URL. `JspOutputEncodingTest` gets a new check: an `<s:url>` with more than one parameter, written through `<s:property>` or an `<s:param>`, has to use `escapeAmp="false"`. Before the fix, it failed on exactly these four URLs. Tested with 887 unit tests passing, then on Jetty with Playwright: - The comments link opens that entry's comments. - "Add Media File", "Upload more" and "Cancel" keep their parameters. - No console errors. The CHANGES bullet for the upload buttons is under 6.1.8. If 6.1.8 ships from RC3, I'll move it to the next release. Master has the comments-link bug too; that fix is in a separate PR. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
