Re: [google-appengine] Strange behavior with static .png file

2013-05-12 Thread Google Tasks Backup Moderator
I believe the problem is because GAE is returning Content-Type: image/x-png(according to curl, see below), and some browsers may not interpreting x-png as png (and hence downloading, as suggested by timh). I do not know why GAE is serving the file as x-png. On my system (Chrome on Windows), it see

[google-appengine] Re: Strange behavior with static .png file

2013-05-12 Thread john
Using curl: Content-Type: image/x-png On Sunday, May 12, 2013 11:22:14 PM UTC-4, timh wrote: > > Use headers plugin in chrome or wget to examine headers. If it's being > served with a content type of application/octet-stream it would normally be > downloaded. > > T > > On Monday, May 13, 2013

[google-appengine] Re: Strange behavior with static .png file

2013-05-12 Thread timh
Use headers plugin in chrome or wget to examine headers. If it's being served with a content type of application/octet-stream it would normally be downloaded. T On Monday, May 13, 2013 9:22:40 AM UTC+8, john wrote: > > I have some .png files in a directory that is configured as a static file

[google-appengine] Strange behavior with static .png file

2013-05-12 Thread john
I have some .png files in a directory that is configured as a static file handler. When I point my browser to the URL for any of the images, the result is not what I expect: - On Windows/Chrome, the image file is not displayed, but instead it is automatically downloaded. - On OSX/Chrom

[google-appengine] Strange behavior with static .png file

2013-05-12 Thread john
I have some .png files in a directory that is configured as a static file handler. When I point my browser to the URL for any of the images, the result is not what I expect: - On Windows/Chrome, the image file is not displayed, but instead it is automatically downloaded. - On OSX/Chrom

[google-appengine] Queries not working correctly in GAE unit tests

2013-05-12 Thread Sekhar
I'm using LocalDatastoreServiceTestConfig on GAE in some GWT unit tests. I have some named queries in a JPA entity (tried both JPA 1.0 and 2.0), but they don't seem to work when they have a WHERE clause. E.g., "SELECT FROM State" yields results, but not SELECT FROM State WHERE userId=:userId"