yugalatea / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Add the ability to filter certain resources from Gears manifest #280

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
gwt-gadgets-1.0.3

Reported by: tpouget

Detailed description:
The .gwt.rpc files should not be fetched to the local server.  In fact, 
AppEngine refuses to serve the files at all. We should filter these 
resources out of the gadget mainfest in the gadget linker.

Workaround if you have one:
Manually edit the manifest file

Links to the relevant GWT Developer Forum posts:
http://groups.google.com/group/Google-Web-
Toolkit/browse_thread/thread/deecca7b856738ac

Original issue reported on code.google.com by galgwt.reviews@gmail.com on 11 Jun 2009 at 2:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Another workaround would be to edit appengine-web.xml (WEB-INF folder) and 
allow rpc 
files to be 
donwloaded.

If you are still developing your app this allows to still use manifest 
generation 
(along with automatic change of version which quite nice) and avoids you to 
edit it 
each time you compile.

Original comment by tpou...@gmail.com on 15 Jun 2009 at 9:08

GoogleCodeExporter commented 9 years ago
Looking at the GearsManifestLinker code I saw that a mechanism was already in 
place 
to filter some resources thanks to the @filter annotation within the manifest 
template. I tried it and it works fine !

But I finally added these two simple lines to the GearsManifestLinker code, 
just 
after the line "Set<Pattern> filters = extractFilters(logger, out);" in the 
"emitManifest(...)" method :

Pattern rpcFilterPattern = Pattern.compile(".*rpc");
filters.add(rpcFilterPattern);

So now I get those files filtered along any other filtered files with filters 
extracted from the manifest template. And I can reconfigure app engine to 
forbid rpc 
files serving.

Original comment by tpou...@gmail.com on 15 Jun 2009 at 11:05

GoogleCodeExporter commented 9 years ago
Uploaded a patch that filters out .gwt.rpc files. 
  http://galgwt-reviews.appspot.com/36601/show

Another workaround is to create a manifest template and add
// @filter .*\.gwt\.rpc

Original comment by galgwt.reviews@gmail.com on 15 Jun 2009 at 2:26

GoogleCodeExporter commented 9 years ago
This issue was closed by r1509.

Original comment by galgwt.reviews@gmail.com on 22 Jun 2009 at 1:20

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 22 Jun 2009 at 1:22

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 22 Jun 2009 at 1:23

GoogleCodeExporter commented 9 years ago
Updating account names

Original comment by zundel@google.com on 21 Dec 2009 at 2:00

GoogleCodeExporter commented 9 years ago

Original comment by piotr.sw...@gmail.com on 14 May 2010 at 9:36