You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Todd Caine (JIRA)" <ta...@jakarta.apache.org> on 2007/03/07 21:52:24 UTC
[jira] Created: (TAPESTRY-1324) External *.script includes have
URLs that are getting HTML encoded instead of URL encoded
External *.script includes have URLs that are getting HTML encoded instead of URL encoded
-----------------------------------------------------------------------------------------
Key: TAPESTRY-1324
URL: https://issues.apache.org/jira/browse/TAPESTRY-1324
Project: Tapestry
Issue Type: Bug
Components: tapestry-core
Affects Versions: 4.0.2
Environment: MacOSX/Java5/Firefox/Pluto Portal/Tomcat
Reporter: Todd Caine
I've been trying to get a <script src="some tapestry url"/> to get included with a valid URL. I created a script file for my tapestry component which has a script file associated with it. The tapestry script file uses the <include-script resource-path="/my/package/js/foo.js"/> element. When my tapestry page gets created that uses my component the URLs in src attribute of the script tag look like:
http://localhost:8080/MeerkatConsole/app?digest=08d253fc974ed74f710e1c7f1dfff5df&path=%2Fedu%2Fwashington%2Fcac%2Fnms%2Ftapestry%2Fcomponents%2Fjquery%2Fjavascript%2Fjquery.js&service=asset
I've tried pasting this generated URLs into my web browser and I get a PageNotFoundException with the following message:
"Page 'Home' not found in application namespace."
If I manually replace all & with & the URL loads the javascript file.
I've tracked this down to the org.apache.tapestry.util.PageRenderSupportImpl#writeExternalScripts() method. It does the following:
writer.attribute("src", url);
if this were changed to:
writer.attributeRaw("src", url);
I think I'd get URLs without the & encoding.
I'm using tapestry with the Apache Pluto portal so I'm not sure if this is a portal issues or just a tapestry core issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Resolved: (TAPESTRY-1324) External *.script includes have
URLs that are getting HTML encoded instead of URL encoded
Posted by "Todd Caine (JIRA)" <ta...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Todd Caine resolved TAPESTRY-1324.
----------------------------------
Resolution: Invalid
> External *.script includes have URLs that are getting HTML encoded instead of URL encoded
> -----------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1324
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1324
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 4.0.2
> Environment: MacOSX/Java5/Firefox/Pluto Portal/Tomcat
> Reporter: Todd Caine
>
> I've been trying to get a <script src="some tapestry url"/> to get included with a valid URL. I created a script file for my tapestry component which has a script file associated with it. The tapestry script file uses the <include-script resource-path="/my/package/js/foo.js"/> element. When my tapestry page gets created that uses my component the URLs in src attribute of the script tag look like:
> http://localhost:8080/MeerkatConsole/app?digest=08d253fc974ed74f710e1c7f1dfff5df&path=%2Fedu%2Fwashington%2Fcac%2Fnms%2Ftapestry%2Fcomponents%2Fjquery%2Fjavascript%2Fjquery.js&service=asset
> I've tried pasting this generated URLs into my web browser and I get a PageNotFoundException with the following message:
> "Page 'Home' not found in application namespace."
> If I manually replace all & with & the URL loads the javascript file.
> I've tracked this down to the org.apache.tapestry.util.PageRenderSupportImpl#writeExternalScripts() method. It does the following:
> writer.attribute("src", url);
> if this were changed to:
> writer.attributeRaw("src", url);
> I think I'd get URLs without the & encoding.
> I'm using tapestry with the Apache Pluto portal so I'm not sure if this is a portal issues or just a tapestry core issue.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org