changcheng / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Provide access to individual wro-resources #467

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It should, in debug mode, be possible to download individual resources in a 
resource group via the wroResource proxy.

Example resource:
http://localhost:8080/wro/wroResources?id=/external/any.js

Now access is denied by default. If this issue is resolved we will also improve 
the usability of issue225. 

Original issue reported on code.google.com by ivarc...@gmail.com on 15 Jun 2012 at 9:08

GoogleCodeExporter commented 9 years ago
You can temporarily change the implementation of 
WroManager#serveProxyResourceRequest method, by disabling the authorization 
check in debug mode, in order to be able to continue work on issue225 .

Original comment by alex.obj...@gmail.com on 15 Jun 2012 at 9:13

GoogleCodeExporter commented 9 years ago
I did locally but decided not to push it to gihub as this change felt a bit 
dangerous? 

Original comment by ivarc...@gmail.com on 15 Jun 2012 at 9:19

GoogleCodeExporter commented 9 years ago
Should we also implement the wroResource proxy as a RequestHandle, 
ResourceProxyRequestHandler?

Original comment by ivarc...@gmail.com on 15 Jun 2012 at 9:38

GoogleCodeExporter commented 9 years ago
That does make a lot of sense.

Original comment by alex.obj...@gmail.com on 15 Jun 2012 at 9:41

GoogleCodeExporter commented 9 years ago
Can you implement it as part of this issue in branch called issue467?

Original comment by alex.obj...@gmail.com on 15 Jun 2012 at 9:42

GoogleCodeExporter commented 9 years ago
Yes I can =)

Original comment by ivarc...@gmail.com on 15 Jun 2012 at 9:44

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 17 Jun 2012 at 6:05

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 22 Jun 2012 at 1:47

GoogleCodeExporter commented 9 years ago
Fixed in branch 1.4.x.
The resource authorization is guarded by ResourceAuthorizationManager. The 
proxy resources are served using ResourceProxyResourceHandler.

Original comment by alex.obj...@gmail.com on 24 Jun 2012 at 8:59

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 24 Jun 2012 at 8:59