[Users] IE8 truncated URL in print JSON

Espen Isaksen espen.isaksen at gmail.com
Wed Aug 1 12:25:33 CEST 2012


Hi!

I have a problem when using IE8 and doing printing. The problem arise
when adding a legend to the map.  IE8 truncates the URL for the icons.
Here is how I set up the print:

printProvider.print(mapPanel, printPage, {"legend": legendPanel});

In other browser this will be sent to the server when printing:

"legends": [{
        "name": "Eiendomsgrenser",
        "classes": [{
            "name": "",
            "icons":
["http://gpi01utv.ad.skogoglandskap.no/geoserver/gpi/wms?TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&CQL_FILTER=transaction_id%3D19689%20and%20(ownership%3D%27F%27%20or%20ownership%3D%27M%27)&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=property_border&FORMAT=image%2Fgif&SCALE=25000"]
        }]
    }, {
        "name": "Markslag (AR5) 13 klasser",
        "classes": [{
            "name": "",
            "icons":
["http://gpi01utv.ad.skogoglandskap.no/geoserver/gpi/wms?TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&CQL_FILTER=transaction_id%3D19689%20and%20layer_attribute_id%3D1%20and%20(ownership%3D%27F%27%20or%20ownership%3D%27M%27)&EXCEPTIONS=application%2Fvnd.ogc.se_xml&LAYER=gpi%3Agpi_plots_ar5_13&STYLE=gpi_plots_ar5_13&FORMAT=image%2Fgif&SCALE=25000"]
        }]
    }]




When using IE8 however, this is sent:

"legends": [{
        "name": "Eiendomsgrenser",
        "classes": [{
            "name": "",
            "icons":
["http://gpi01utv.ad.skogoglandskap.no/geoserver/gpi/wms?TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&CQL_FILTER=transaction_id%3D19689%20and%20(ownership%3D"]
        }]
    }, {
        "name": "Markslag (AR5) 13 klasser",
        "classes": [{
            "name": "",
            "icons":
["http://gpi01utv.ad.skogoglandskap.no/geoserver/gpi/wms?TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&CQL_FILTER=transaction_id%3D19689%20and%20layer_attribute_id%3D1%20and%20(ownership%3D"]
        }]
    }]


Any ideas how to fix this?

Espen


More information about the Users mailing list