Of the 4 browsers (Chrome, Firefox, Safari and Internet Explorer), IE has a URL
limit of 2,083 characters. If a user has many datalayers, particularly with
long titles or even more likely is using the Filter Builder tool where the
filter is added to the URL, the URL can grow larger than 2,083. In that case
we are warning the user at the time the Permalink button is pushed. The user
then has a change to change the filter or datalayer list and try again. If the
URL is too large IE will cut it off and it will not work at all.
Compressing the URL was briefly looked into without success. TinyURL does not
solve the problem because it gives back the original long URL when prompted
with the tiny URL.
However, an alternative that would allow longer URLs would be to use the WFS-T
option of GeoServer to store the URLs in a database table. (perhaps
GISDATA.PERMALINKS). These would need to be kept for some period of time
(perhaps forever if it doesn't grow too large, that would be most convenient
for web pages that provide links). The permalink would be the id of that
record. A 2 column table - a random id and other one giant text column that
has permalink content - store it and get back some random id. (These are notes
from a Saul and Charlton conversation, idea is not completely fleshed out).
Original issue reported on code.google.com by Aleda.Fr...@state.ma.us on 20 Jun 2012 at 5:59
Original issue reported on code.google.com by
Aleda.Fr...@state.ma.us
on 20 Jun 2012 at 5:59