[jira] [Commented] (WICKET-5098) PackageResourceBlockedException under Windows for *.js files in web app's own packages, not in jars
[ https://issues.apache.org/jira/browse/WICKET-5098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13612789#comment-13612789 ] Sven Meier commented on WICKET-5098: Perhaps we could normalize to path a little bit earlier? But it works fine now. > PackageResourceBlockedException under Windows for *.js files in web app's own > packages, not in jars > --- > > Key: WICKET-5098 > URL: https://issues.apache.org/jira/browse/WICKET-5098 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.6.0 > Environment: Windows 7 >Reporter: Jenny Brown >Assignee: Igor Vaynberg > Fix For: 6.7.0 > > Attachments: packageResourceGuardPatch.txt > > > PackageResourceGuard.acceptAbsolutePath() uses '/' instead of File.separator > when manipulating absolute file paths. This causes problems on MS-Windows > when trying to parse "C:\com\mycompany\" resulting in exceptions when > trying to load javascript etc files that are not in a jar. The problem shows > up for resources accessed via FileResourceStream, but not UrlResourceStream. > org.apache.wicket.request.resource.PackageResource$PackageResourceBlockedException: > Access denied to (static) package resource > com/mycompany/components/behavior/TinyMceBehavior.js. See > IPackageResourceGuard > at > org.apache.wicket.request.resource.PackageResource.internalGetResourceStream(PackageResource.java:460) > at > org.apache.wicket.request.resource.PackageResource.getCacheableResourceStream(PackageResource.java:395) > at > org.apache.wicket.request.resource.PackageResource.getCacheKey(PackageResource.java:223) > at > org.apache.wicket.request.resource.caching.version.RequestCycleCachedResourceVersion.getVersion(RequestCycleCachedResourceVersion.java:81) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-5098) PackageResourceBlockedException under Windows for *.js files in web app's own packages, not in jars
[ https://issues.apache.org/jira/browse/WICKET-5098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13612726#comment-13612726 ] Igor Vaynberg commented on WICKET-5098: --- thats not a usual path on windows since it uses a linux style file separator instead of windows :) i believe i got it fixed, test it and reopen if its still broken. > PackageResourceBlockedException under Windows for *.js files in web app's own > packages, not in jars > --- > > Key: WICKET-5098 > URL: https://issues.apache.org/jira/browse/WICKET-5098 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.6.0 > Environment: Windows 7 >Reporter: Jenny Brown >Assignee: Igor Vaynberg > Fix For: 6.7.0 > > Attachments: packageResourceGuardPatch.txt > > > PackageResourceGuard.acceptAbsolutePath() uses '/' instead of File.separator > when manipulating absolute file paths. This causes problems on MS-Windows > when trying to parse "C:\com\mycompany\" resulting in exceptions when > trying to load javascript etc files that are not in a jar. The problem shows > up for resources accessed via FileResourceStream, but not UrlResourceStream. > org.apache.wicket.request.resource.PackageResource$PackageResourceBlockedException: > Access denied to (static) package resource > com/mycompany/components/behavior/TinyMceBehavior.js. See > IPackageResourceGuard > at > org.apache.wicket.request.resource.PackageResource.internalGetResourceStream(PackageResource.java:460) > at > org.apache.wicket.request.resource.PackageResource.getCacheableResourceStream(PackageResource.java:395) > at > org.apache.wicket.request.resource.PackageResource.getCacheKey(PackageResource.java:223) > at > org.apache.wicket.request.resource.caching.version.RequestCycleCachedResourceVersion.getVersion(RequestCycleCachedResourceVersion.java:81) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-5098) PackageResourceBlockedException under Windows for *.js files in web app's own packages, not in jars
[ https://issues.apache.org/jira/browse/WICKET-5098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13612712#comment-13612712 ] Sven Meier commented on WICKET-5098: Just the usual path for resources inside of jar files e.g. org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js Forward slashes but no Windows file separator contained -> return false > PackageResourceBlockedException under Windows for *.js files in web app's own > packages, not in jars > --- > > Key: WICKET-5098 > URL: https://issues.apache.org/jira/browse/WICKET-5098 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.6.0 > Environment: Windows 7 >Reporter: Jenny Brown >Assignee: Igor Vaynberg > Fix For: 6.7.0 > > Attachments: packageResourceGuardPatch.txt > > > PackageResourceGuard.acceptAbsolutePath() uses '/' instead of File.separator > when manipulating absolute file paths. This causes problems on MS-Windows > when trying to parse "C:\com\mycompany\" resulting in exceptions when > trying to load javascript etc files that are not in a jar. The problem shows > up for resources accessed via FileResourceStream, but not UrlResourceStream. > org.apache.wicket.request.resource.PackageResource$PackageResourceBlockedException: > Access denied to (static) package resource > com/mycompany/components/behavior/TinyMceBehavior.js. See > IPackageResourceGuard > at > org.apache.wicket.request.resource.PackageResource.internalGetResourceStream(PackageResource.java:460) > at > org.apache.wicket.request.resource.PackageResource.getCacheableResourceStream(PackageResource.java:395) > at > org.apache.wicket.request.resource.PackageResource.getCacheKey(PackageResource.java:223) > at > org.apache.wicket.request.resource.caching.version.RequestCycleCachedResourceVersion.getVersion(RequestCycleCachedResourceVersion.java:81) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-5098) PackageResourceBlockedException under Windows for *.js files in web app's own packages, not in jars
[ https://issues.apache.org/jira/browse/WICKET-5098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13612706#comment-13612706 ] Igor Vaynberg commented on WICKET-5098: --- what does such a path look like? i dont have windows so im fixing this somewhat in the dark... > PackageResourceBlockedException under Windows for *.js files in web app's own > packages, not in jars > --- > > Key: WICKET-5098 > URL: https://issues.apache.org/jira/browse/WICKET-5098 > Project: Wicket > Issue Type: Bug > Components: wicket >Affects Versions: 6.6.0 > Environment: Windows 7 >Reporter: Jenny Brown >Assignee: Igor Vaynberg > Fix For: 6.7.0 > > Attachments: packageResourceGuardPatch.txt > > > PackageResourceGuard.acceptAbsolutePath() uses '/' instead of File.separator > when manipulating absolute file paths. This causes problems on MS-Windows > when trying to parse "C:\com\mycompany\" resulting in exceptions when > trying to load javascript etc files that are not in a jar. The problem shows > up for resources accessed via FileResourceStream, but not UrlResourceStream. > org.apache.wicket.request.resource.PackageResource$PackageResourceBlockedException: > Access denied to (static) package resource > com/mycompany/components/behavior/TinyMceBehavior.js. See > IPackageResourceGuard > at > org.apache.wicket.request.resource.PackageResource.internalGetResourceStream(PackageResource.java:460) > at > org.apache.wicket.request.resource.PackageResource.getCacheableResourceStream(PackageResource.java:395) > at > org.apache.wicket.request.resource.PackageResource.getCacheKey(PackageResource.java:223) > at > org.apache.wicket.request.resource.caching.version.RequestCycleCachedResourceVersion.getVersion(RequestCycleCachedResourceVersion.java:81) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira