Issue Type: Improvement Improvement
Affects Versions: 2.2.0
Assignee: Unassigned
Attachments: AppSchemaResolverPatch.txt
Components: app-schema plugin
Created: 07/Jun/12 2:52 AM
Description:

The patch addresses a limitation in AppSchemaResolver.java's getSimpleHttpResourcePath(...) method. It used to always assume that it was ok to ignore the query string component of a GET request when generating the path to the cached item. This means that the cache would always return the same response for any given resource no matter what the query string was.

I've addressed this problem by adding an overload to the method (and its related methods) that that accepts a boolean flag to indicate that the query component must be integrated into the item's cache location. To avoid filesystem limitations such as illegal characters and length constraints this is achieved by appending an MD5 hash of the query string to the filename.

New tests for AppSchemaResolverTest also accompany this change.

Project: GeoTools
Priority: Minor Minor
Reporter: Adam Brown
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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to