Closed (fixed)
Project:
Openlayers
Version:
7.x-2.x-dev
Component:
OL Layers
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2012 at 16:05 UTC
Updated:
15 Dec 2012 at 07:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
ekes commentedThe field is stored serialized in the data text field of the {openlayers_layers} table, so there is plenty of space, and no constraint other than the form field and validation. 2083 characters seems a common maximum for URLs, although though they could be longer. So suggest patch attached (or even larger?).
Comment #2
ekes commentedComment #3
ekes commentedComment #4
polThanks @ekes ! Patch committed ;-)
I had to do it manually because your patch was containing stuff from #1491314: Redundant indexes on Styles and Layers tables.
Comment #5
polComment #6
de_chris commentedHi, thanks. Can I update to the latest dev or do I have to patch?
Comment #7
de_chris commentedHi, I tried the latest dev (2012-Aug-28) but there is a new problem. The WMS Base URL field remains empty now. I've created a new issue for that (http://drupal.org/node/1761768) since it might be an other problem.
Comment #8
polHello,
Can you check again with the dev version ?
Thanks.
Comment #9
de_chris commentedHi, thanks for the fast reply. In the latest dev version the WMS Base URL field contains now the URL. So the issue with the empty field is solved. But the problem of this thread remains since I still can't insert URLs with more than 128 characters.
Comment #10
polHello @de_chris,
I just tested and it works pretty good, the base layer is not trimmed or altered.
Steps I did:
Comment #11
de_chris commentedHello @Pol,
I also tested it with a new layer and it works. The restrictions only remain when editing or cloning existing layers. Thanks a lot.
Comment #12
polWeird, I'll fix that tonight. Thanks for the report.
Comment #13
polHello @de_chris,
I wasn't able to reproduce the problem even by editing the layer.
Comment #14
de_chris commentedHi my steps to reproduce:
edited an existing layer created with an older OL-Version; replace existing url by:tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt; copied the sting in the field and got:tttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt
but thats not a great problem since I can now create new layers with more than 128 long urls.
Comment #16
japo32 commentedThanks. I used the same fix for a new XYZ Layer. :)
in
openlayers_layer_type_xyz.incComment #17
polThanks, I did it on 7.x-2.x too.