Open tdipisa opened 4 years ago
The problem is due to the info.json
service:
http://sit.comune.bolzano.it/mapstore3/pdf/info.json
That replies with mapstore2/pdf/create.json
<-- mapstore2 and not mapstore3
{
//...
"printURL":"http://sit.comune.bolzano.it/mapstore2/pdf/print.pdf","createURL":"http://sit.comune.bolzano.it/mapstore2/pdf/create.json"
}
Sending manually the requests to the correct URL does the job.
The problem is probably related to how the print find out the application name. Proxying mapstore3 to mapstore2 causes this issue, so maybe renaming can mitigate the printing problem on test env from external.
@offtherailz I've checked the printing in the new deploy and the issue seems still present.
Failing request:
curl 'https://sit.comune.bolzano.it/mapstore3/pdf/create.json' \ -H 'Connection: keep-alive' \ -H 'Accept: application/json, text/plain, */*' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36' \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Origin: https://sit.comune.bolzano.it' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Referer: https://sit.comune.bolzano.it/mapstore3/' \ -H 'Accept-Language: en,fr;q=0.9,it-IT;q=0.8,it;q=0.7,fi;q=0.6,de;q=0.5,en-US;q=0.4' \ --data-binary '{"units":"m","srs":"EPSG:3857","layout":"A3_2_pages_legend_landscape","dpi":96,"outputFilename":"mapstore-print","geodetic":true,"mapTitle":"e3","comment":"dwqd3w","layers":[{"baseURL":"https://sit.comune.bolzano.it/geoserver2/wms?","opacity":1,"singleTile":false,"type":"WMS","layers":["Ambiente:quartieri"],"format":"image/png","styles":[""],"customParams":{"TRANSPARENT":true,"TILED":true,"EXCEPTIONS":"application/vnd.ogc.se_inimage","scaleMethod":"accurate","ENV":"mapstore_language:it","ms2-authkey":"d3995d3d-1dae-45e5-865b-627280a51961"}},{"baseURL":"https://sit.comune.bolzano.it/geoserver2/wms?","opacity":1,"singleTile":false,"type":"WMS","layers":["Ambiente:Edifici"],"format":"image/png","styles":[""],"customParams":{"TRANSPARENT":true,"TILED":true,"EXCEPTIONS":"application/vnd.ogc.se_inimage","scaleMethod":"accurate","ENV":"mapstore_language:it","ms2-authkey":"d3995d3d-1dae-45e5-865b-627280a51961"}},{"type":"Vector","name":"Annotations","opacity":1,"styleProperty":"ms_style","styles":{"1":{"fillColor":"#ff0000","strokeColor":"#ff0000"},"Polygon":{"fillColor":"#ff0000","strokeColor":"#ff0000"},"LineString":{"fillColor":"#ff0000","strokeColor":"#ff0000"},"Point":{"fillColor":"#ff0000","strokeColor":"#ff0000"},"FeatureCollection":{"fillColor":"#ff0000","strokeColor":"#ff0000"}},"geoJson":{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"coordinates":[1258963.863574317,5860886.322827798],"type":"Point"},"properties":{"id":"e67f86b0-99e1-11ea-8d2f-fffbb8e747a8","ms_style":{"graphicWidth":36,"graphicHeight":46,"externalGraphic":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAuCAYAAABAm7v+AAAIkUlEQVRYR9WYe3BU1R3Hv/exz2ST3ewS2N0sJoDSFBhB0NqZqlUHFDSkaJ3hEQoJbRHRTh9CkVZjrShSBwcFtbS8SoAWqgKRPlAHwc5kWgJDqFKQEiFhN4/dJLvZ7Gb37t17O7+bvetC9iXyh72ZM+dm77nn9znf3+93HpfBV+xivmI8+P8HenfZLkso0DMVklTB6/lySZS1ohhvB5h2Q4mp+Tuv17V/GdW/kELvLNo0IxqJzYhFhNsRl8pZlhsFgJMkySuz8PB6/rhOr39fq+cbqzYvDV8LWF5AB36weYG/u+/nTCQ+ycDqoNfqoeU0YMEoPpcgIyaJiEQjiEgCYrzstYy0PFO99dE3vyhUVqD6+nq28pxl86A3uKTEUIzigiIFRJZlKH+yPGSPYYbgGAZxKY7gYAjeUC+YQr6p2G6rrX5jybl8wTICffCTvc6LZ869p5P4yjKLHXqNFkJchCRLWfsmzbQcj5gUR5ffiz6hX3KMHz3nwTe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rDadAlhoVXPz28ThAFNS4GEgaDAOieoNRaVYWUU1I9EfAUdjmBSC0KaoohAqGPnFTbSk0ltjrXHT8VooNoErq2NrW30M6fjBEEFVJABUpmUQKCQFKzLpmQuSZGNe2LAJQmAptiyUqunDfhvhlGTmvccrqxIaEAqaBCkFrkGvqNgpoAVTXUPQ1BkY3kd8JcQESuxhGpRIVgKKYMiWEpE1rCsKqQkjHpYiTxTsYPlfkAqW6jWCIImpMKaJVIjEwdfTaI7F9KU2bQfIFU1xEUgZBqVOh3dR1SJ76r4yNvGOL6HwXMnKS59vOXAAAAAElFTkSuQmCC","graphicXOffset":-18,"graphicYOffset":-46,"display":false}}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[1257938.9133084498,5859010.141118403],[1260648.952712998,5858002.562268238],[1260683.6967107335,5859861.3713955935]]},"properties":{"id":"0d5081e0-99e2-11ea-8d2f-fffbb8e747a8","ms_style":{"strokeColor":"#ffcc33","strokeOpacity":0.57,"strokeWidth":7,"strokeDashstyle":"6 6"}}},{"type":"Feature","geometry":{"type":"Point","coordinates":[1257938.9133084498,5859010.141118403]},"properties":{"id":"0d5081e0-99e2-11ea-8d2f-fffbb8e747a8","ms_style":{"graphicWidth":36,"graphicHeight":46,"externalGraphic":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAuCAYAAABAm7v+AAAI3klEQVRYR9WYe1BU1x3Hv3f37vsBLLvAIoLKxFcMRk3VGDOaalrHmpAxk2nTR9SJZpxpaxtBDKaKGm2ThoROgp1mILXjdMYMMyY1mUzjc4IpigZfqcYmvkAEFmQX9sne3b33dn7XvesuLLuL/Se9cOZcLuec3+f+Xud3LoPv2MV8x3jw/w9U90xd9tBt3wJBFIvVWraE53mVIKArEhRuWS26ll9+XuX4X7Q+Jg29/tjrCyPBUDnnDy4SwyhSKBX5EKEQRNElMkK32qBuNpj0Ryu+qDrIgBHvBywjoLqldSsHepwVYU94gUpUQctqwSpZMCIDhmEgQgQv8hgKBRFGCIye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FUQM7uC/kQVHD+Y/3HtwgQSAPxLcEsUYAgAH+cdggqlE5DMlAOADuA/LLcsnm5YUu1RWORvm5IX4lEEU7OCYeyt/Gy6/K1OE2QFmT/iBcu38c0Ex2XNMrinZqA6OwsAxUS2BL7ktWCj59dYCiQoq0v0AdWr+r+zPEZndkl54wKIL+gRn9TXUv3BEONnsnAZEpqGQHJJqMahoCo5T5pW7pRHVEb6YuaV/Di0tDlP/UO9VI2premrw0k0Bu9JxB6Rr2sFdKcFOpRhye3SwtE2iKnJh8ikIJoby3NKp1UgpK19FEioo981NrXSlFFwgiCWjxQLIqiEAQSH3WxgEyXGOWwNwPIizo2+VIumfL7+YuXqxi1+ZDjcGNUA6QFWStkDjINPSOnJkBZG3JNQ1AkI7ZzpwMictmPSEvUCIZ8Shd9LdlnSLCsISlikvlIdM6opUMmQLLZyJcIgnISnRbp6wMtLL99KoiMa5dMgWTTERSBkNao0XN5H5IT33D/yBiGtPdf7l67pFnc3WUAAAAASUVORK5CYII=","graphicXOffset":-18,"graphicYOffset":-46,"display":false}}},{"type":"Feature","geometry":{"type":"Point","coordinates":[1260683.6967107335,5859861.3713955935]},"properties":{"id":"0d5081e0-99e2-11ea-8d2f-fffbb8e747a8","ms_style":{"graphicWidth":36,"graphicHeight":46,"externalGraphic":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAuCAYAAABAm7v+AAAHk0lEQVRYR92Ye4xUVx3Hv3fmzuvO3DuvZWFnnWWRhApNVgrIkhJT1CmtpXV9R/8QQ7SGBMEtbKRmLeuitRAwJk1pu6FJjTGhSa3SUMUWkLS4bbcrpVKFlVq2A1uY7c77/bzX/C5zxtmdOw8INtVJTs7du+ee8znf3/d37jmXw0fsx33EePC/ATQ0NKTjXuDMiqjIN0NBe87OxWKx0vC54Xyz/mYpNPLFkcVX/jW1v5gpfkrP6cwAd1OAFIBTFLkEHu+2L2zbs+2l7UfqgVWARr420uV/c/KfXJIzO21O6HQ69RkFSrNJNf0/Bw6K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I1KJCsGQpyzlaakL2hyF1IzR8kj5mbqfm1sBYmEjLxEErUm0SNLXB+qYzb4RRMvfu1sFYqEjKAIh1ajQffYeYgvfXH+0DEPq/RvPhLmkBAS7+QAAAABJRU5ErkJggg==","graphicXOffset":-18,"graphicYOffset":-46,"display":false}}},{"type":"Feature","geometry":{"coordinates":[[[1253700.1327550297,5861355.367963561],[1256913.9618762464,5862519.295386709],[1255280.9893173364,5863301.037668426],[1253700.1327550297,5861355.367963561]]],"type":"Polygon"},"properties":{"id":"210c1500-99e2-11ea-8d2f-fffbb8e747a8","ms_style":{"strokeColor":"#ffcc33","strokeOpacity":1,"strokeWidth":3,"fillColor":"#ffffff","fillOpacity":0.2,"strokeDashstyle":"solid"}}},{"type":"Feature","geometry":{"coordinates":[1259901.9550121822,5862675.643959687],"type":"Point"},"properties":{"id":"3b9dd700-99e2-11ea-8d2f-fffbb8e747a8","ms_style":{"fontStyle":"normal","fontSize":"18","fontFamily":"Courier","fontWeight":"normal","labelAlign":"cm","fontColor":"#ffffff","fontOpacity":1,"label":"hivugvugvug","stroke":true,"strokeColor":"#000000","strokeOpacity":1,"strokeDashstyle":"solid"}}},{"type":"Feature","geometry":{"type":"Point","coordinates":[1259686.5415286953,5856300.101138972]},"properties":{"id":"db49bf81-99e7-11ea-9af6-d14496302462","ms_style":{"fontStyle":"normal","fontSize":"14","fontFamily":"Arial","fontWeight":"normal","labelAlign":"cm","fontColor":"#000000","fontOpacity":1,"label":"2308537.74 m²","stroke":true,"strokeColor":"#000000","strokeOpacity":1,"strokeDashstyle":"solid"}}},{"type":"Feature","geometry":{"coordinates":[[[1258609.4740998885,5857620.377135092],[1261614.8386515242,5858436.863414547],[1262031.7677906854,5856352.217718743],[1259686.5415286953,5856300.101138972],[1258609.4740998885,5857620.377135092]]],"type":"Polygon"},"properties":{"id":"db49bf83-99e7-11ea-9af6-d14496302462","ms_style":{"strokeColor":"#ffcc33","strokeOpacity":1,"strokeWidth":3,"fillColor":"#ffffff","fillOpacity":0.2,"strokeDashstyle":"solid"}}}]}}],"pages":[{"center":[1261443.997876319,5859334.090464655],"scale":50000,"rotation":0}],"legends":[{"name":"Quartieri","classes":[{"name":"","icons":["https://sit.comune.bolzano.it/geoserver2/wms?TRANSPARENT=true&EXCEPTIONS=application%2Fvnd.ogc.se_xml&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetLegendGraphic&LAYER=Ambiente%3Aquartieri&LANGUAGE=it&STYLE=&SCALE=50000&height=24&width=24&minSymbolSize=24&LEGEND_OPTIONS=forceLabels%3A%3BfontAntialiasing%3Atrue%3Bdpi%3A96%3BfontStyle%3A%3BfontName%3AVerdana%3BfontSize%3A8&format=image%2Fpng&ms2-authkey=d3995d3d-1dae-45e5-865b-627280a51961"]}]},{"name":"Edifici","classes":[{"name":"","icons":["https://sit.comune.bolzano.it/geoserver2/wms?TRANSPARENT=true&EXCEPTIONS=application%2Fvnd.ogc.se_xml&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetLegendGraphic&LAYER=Ambiente%3AEdifici&LANGUAGE=it&STYLE=&SCALE=50000&height=24&width=24&minSymbolSize=24&LEGEND_OPTIONS=forceLabels%3A%3BfontAntialiasing%3Atrue%3Bdpi%3A96%3BfontStyle%3A%3BfontName%3AVerdana%3BfontSize%3A8&format=image%2Fpng&ms2-authkey=d3995d3d-1dae-45e5-865b-627280a51961"]}]}]}' \ --compressed
From my experiments, the problems happens only when you include the legend at a zoom level where it is not visible. In all the other cases it seems to work as expected. For instance :
After a while, the error appears.
This is the CURL request:
curl 'http://sit.comune.bolzano.it/mapstore3/pdf/create.json' \
-H 'Connection: keep-alive' \
-H 'Accept: application/json, text/plain, */*' \
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Origin: http://sit.comune.bolzano.it' \
-H 'Referer: http://sit.comune.bolzano.it/mapstore3/' \
-H 'Accept-Language: it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,ja;q=0.6' \
--data-binary '{"units":"m","srs":"EPSG:3857","layout":"A3","dpi":96,"outputFilename":"mapstore-print","geodetic":true,"mapTitle":"","comment":"","layers":[{"baseURL":"http://sit.comune.bolzano.it/geoserver2/wms?","opacity":1,"singleTile":false,"type":"WMS","layers":["Ambiente:quartieri"],"format":"image/png","styles":[""],"customParams":{"TRANSPARENT":true,"TILED":true,"EXCEPTIONS":"application/vnd.ogc.se_inimage","scaleMethod":"accurate","ENV":"mapstore_language:it"}}],"pages":[{"center":[1262298.4028656217,5859191.425721946],"scale":500,"rotation":0}],"legends":[{"name":"Quartieri","classes":[{"name":"","icons":["http://sit.comune.bolzano.it/geoserver2/wms?TRANSPARENT=true&EXCEPTIONS=application%2Fvnd.ogc.se_xml&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetLegendGraphic&LAYER=Ambiente%3Aquartieri&LANGUAGE=it&STYLE=&SCALE=500&height=24&width=24&minSymbolSize=24&LEGEND_OPTIONS=forceLabels%3A%3BfontAntialiasing%3Atrue%3Bdpi%3A96%3BfontStyle%3A%3BfontName%3AVerdana%3BfontSize%3A8&format=image%2Fpng"]}]}]}' \
--compressed
To the level where the layer "quartieri" is not visible anymore and printing with legend included.
Looking at the mapstore.log this request fails: http://sit.comune.bolzano.it/geoserver2/wms?TRANSPARENT=true&EXCEPTIONS=application%2Fvnd.ogc.se_xml&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetLegendGraphic&LAYER=Ambiente%3Aquartieri&LANGUAGE=it&STYLE=&SCALE=500&height=24&width=24&minSymbolSize=24&LEGEND_OPTIONS=forceLabels%3A%3BfontAntialiasing%3Atrue%3Bdpi%3A96%3BfontStyle%3A%3BfontName%3AVerdana%3BfontSize%3A8&format=image%2Fpng
Produces this error
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "https://sit.comune.bolzano.it/geoserver2/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1" > <ServiceException>
java.lang.IllegalArgumentException: Width (2) and height (0) must be > 0
Width (2) and height (0) must be > 0
</ServiceException></ServiceExceptionReport>
It works if I :
ccurl --location --request POST 'http://sit.comune.bolzano.it/mapstore3/pdf/create.json' \
--header 'Connection: keep-alive' \
--header 'Accept: application/json, text/plain, */*' \
--header 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36' \
--header 'Content-Type: application/json;charset=UTF-8' \
--header 'Origin: http://sit.comune.bolzano.it' \
--header 'Referer: http://sit.comune.bolzano.it/mapstore3/' \
--header 'Accept-Language: it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,ja;q=0.6' \
--data-raw '{"units":"m","srs":"EPSG:3857","layout":"A3","dpi":96,"outputFilename":"mapstore-print","geodetic":true,"mapTitle":"","comment":"","layers":[{"baseURL":"http://sit.comune.bolzano.it/geoserver2/wms?","opacity":1,"singleTile":false,"type":"WMS","layers":["Ambiente:quartieri"],"format":"image/png","styles":[""],"customParams":{"TRANSPARENT":true,"TILED":true,"EXCEPTIONS":"application/vnd.ogc.se_inimage","scaleMethod":"accurate","ENV":"mapstore_language:it"}}],"pages":[{"center":[1262298.4028656217,5859191.425721946],"scale":500,"rotation":0}],"legends":[{"name":"Quartieri","classes":[{"name":"","icons":["http://sit.comune.bolzano.it/geoserver2/wms?&EXCEPTIONS=application%2Fvnd.ogc.se_xml&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetLegendGraphic&LAYER=Ambiente%3Aquartieri&LANGUAGE=it&STYLE=&SCALE=500&height=24&width=24&minSymbolSize=24&LEGEND_OPTIONS=forceLabels%3A%3BfontAntialiasing%3Atrue%3Bdpi%3A96%3BfontStyle%3A%3BfontName%3AVerdana%3BfontSize%3A8&format=image%2Fpng"]}]}]}'
The problem is present also in production (sit.comune.bolzano.it) and with other layers with zoom level limitations (e.g. "edifici").
I tried to replicate the same with:
with no success.
So the error seems limited to limited to the "bolzano" installation of mapstore print plugin.
I have the same error in legend, but the print anyway is successful.
The following request performed against the BZ MapStore, fails:
Request URL https://sit.comune.bolzano.it/mapstore3/pdf/create.json
POST content-type:application/json
Request Body
{"units":"m","srs":"EPSG:3857","layout":"A3_2_pages_legend_landscape","dpi":96,"outputFilename":"mapstore-print","geodetic":true,"mapTitle":"","comment":"","layers":[{"baseURL":"https://sit.comune.bolzano.it/geoserver2/wms?","opacity":1,"singleTile":false,"type":"WMS","layers":["Ambiente:quartieri"],"format":"image/png","styles":[""],"customParams":{"TRANSPARENT":true,"TILED":true,"EXCEPTIONS":"application/vnd.ogc.se_inimage","scaleMethod":"accurate","ENV":"mapstore_language:it","ms2-authkey":"ff098b00-ac7f-4da4-b26b-c94bdee30729"}},{"baseURL":"https://sit.comune.bolzano.it/geoserver2/wms?","opacity":1,"singleTile":false,"type":"WMS","layers":["Ambiente:Edifici"],"format":"image/png","styles":[""],"customParams":{"TRANSPARENT":true,"TILED":true,"EXCEPTIONS":"application/vnd.ogc.se_inimage","scaleMethod":"accurate","ENV":"mapstore_language:it","ms2-authkey":"ff098b00-ac7f-4da4-b26b-c94bdee30729"}},{"type":"Vector","name":"Annotations","opacity":1,"styleProperty":"ms_style","styles":{"1":{"fillColor":"#ff0000","strokeColor":"#ff0000"},"Polygon":{"fillColor":"#ff0000","strokeColor":"#ff0000"},"LineString":{"fillColor":"#ff0000","strokeColor":"#ff0000"},"Point":{"fillColor":"#ff0000","strokeColor":"#ff0000"},"FeatureCollection":{"fillColor":"#ff0000","strokeColor":"#ff0000"}},"geoJson":{"type":"FeatureCollection","features":[{"type":"Feature","geometry":{"coordinates":[1258963.863574317,5860886.322827798],"type":"Point"},"properties":{"id":"e67f86b0-99e1-11ea-8d2f-fffbb8e747a8","ms_style":{"graphicWidth":36,"graphicHeight":46,"externalGraphic":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAuCAYAAAB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BOLPi5Kb7c8BQCpOoVFPmiOmA2Ks6YevvXT7G6Bk8ZeVMBrOxOO3iq7oqIkThCXtxWD5b9cH5JvdVfalBSKpQIQgaIdV0zInkAiI4nhbqJ++ovdvSGdvvLBwBPa9HTKYdwdDrFOzkJhprW58bHcXi9g0n/7gnBYZAVAiqae9LqhAElUEA9Pkmmg8Q7U0LAZifmrbo2SJ/bJ7L4lC+fEiKjaFkpa2FJ9CJgEFufe7UzqcTD1R3UE1KEATVVFQQglFLToVIHT2AYgB0KrQ9PWleg0XkS0tNI5KnE4IJRILwCv34XcfRX7gDXYGECqQElSvckgCIAAilqENQQi6FVCALADuAkTfbx0+qLprw61J9MQp1RkiyrMxRlwOdOMH0/vnd8x81pyhBKqjxkWpcvU8qk2iXNstSg5qAjABUIJrg7HMrp1eNi/HTXWYHNBynpLhPz59/7fT+3WpwJgxQXFAhNfoT9wRDhX5TgcmVVPICUl3mAkBAVKyPT3zghw5ZO0rDadAlhoVXPz28ThAFNS4GEgaDAOieoNRaVYWUU1I9EfAUdjmBSC0KaoohAqGPnFTbSk0ltjrXHT8VooNoErq2NrW30M6fjBEEFVJABUpmUQKCQFKzLpmQuSZGNe2LAJQmAptiyUqunDfhvhlGTmvccrqxIaEAqaBCkFrkGvqNgpoAVTXUPQ1BkY3kd8JcQESuxhGpRIVgKKYMiWEpE1rCsKqQkjHpYiTxTsYPlfkAqW6jWCIImpMKaJVIjEwdfTaI7F9KU2bQfIFU1xEUgZBqVOh3dR1SJ76r4yNvGOL6HwXMnKS59vOXAAAAAElFTkSuQmCC","graphicXOffset":-18,"graphicYOffset":-46,"display":false}}},{"type":"Feature","geometry":{"type":"LineString","coordinates":[[1257938.9133084498,5859010.141118403],[1260648.952712998,5858002.562268238],[1260683.6967107335,5859861.3713955935]]},"properties":{"id":"0d5081e0-99e2-11ea-8d2f-fffbb8e747a8","ms_style":{"strokeColor":"#ffcc33","strokeOpacity":0.57,"strokeWidth":7,"strokeDashstyle":"6 6"}}},{"type":"Feature","geometry":{"type":"Point","coordinates":[1257938.9133084498,5859010.141118403]},"properties":{"id":"0d5081e0-99e2-11ea-8d2f-fffbb8e747a8","ms_style":{"graphicWidth":36,"graphicHeight":46,"externalGraphic":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAuCAYAAABAm7v+AAAI3klEQVRYR9WYe1BU1x3Hv3f37vsBLLvAIoLKxFcMRk3VGDOaalrHmpAxk2nTR9SJZpxpaxtBDKaKGm2ThoROgp1mILXjdMYMMyY1mUzjc4IpigZfqcYmvkAEFmQX9sne3b33dn7XvesuLLuL/Se9cOZcLuec3+f+Xud3LoPv2MV8x3jw/w9U90xd9tBt3wJBFIvVWraE53mVIKArEhRuWS26ll9+XuX4X7Q+Jg29/tjrCyPBUDnnDy4SwyhSKBX5EKEQRNElMkK32qBuNpj0Ryu+qDrIgBHvBywjoLqldSsHepwVYU94gUpUQctqwSpZMCIDhmEgQgQv8hgKBRFGCIyeac+2Z727qfmVt8cKlRKodnGtNTDoe9/X63vayBph0pmgUqoAkX7v/siXAgrplsD8QT/cnBtKs/JKfpFt7W+OV5zMFGxUoPdW1M++evHGIQ2vtdoMVqhYlSRMEIWUazNgwCpYaeyAbwDuiBvjpxf99OXjlfszgUoK1PRck+782bNuNadW5ZnzJAgSMJaLwFQKFQb9g3CLbkycVfq99R+vb0u3RlKgbQ/+rkV0iQvsOXaE+XCCadItOPz/GqUG/V4n3HAHH3qirGjVvlXOVGuMAHpr0Ztbe7527CyxFENkxLQmygSQNNXl6oK6QN26/eLORzMGql9eP7nzUsc3FjYXBo0eESGSMNdYYMQj6+aieEExTHYTWC1715FDPAL9fnS03MLpPafgc/gS5ikZpfRiXe5u2KbkvbSpeVPDaFAJGqop23pC6BUet1vsCPGhhDmz18zBnHWPQJ+rT6mUgDOAsw1tOLf3bGwcRaNaoYY74IZX6RXsU8fpN/xzA5dsoRjQnvI94zvPd9yyKCzQqLTgxQjIMekqe74Mj1U+Do1Zk4mFwHk4tNR+ga/2f5U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":-46,"display":false}}},{"type":"Feature","geometry":{"type":"Point","coordinates":[1260683.6967107335,5859861.3713955935]},"properties":{"id":"0d5081e0-99e2-11ea-8d2f-fffbb8e747a8","ms_style":{"graphicWidth":36,"graphicHeight":46,"externalGraphic":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAuCAYAAABAm7v+AAAHk0lEQVRYR92Ye4xUVx3Hv3fmzuvO3DuvZWFnnWWRhApNVgrIkhJT1CmtpXV9R/8QQ7SGBMEtbKRmLeuitRAwJk1pu6FJjTGhSa3SUMUWkLS4bbcrpVKFlVq2A1uY7c77/bzX/C5zxtmdOw8INtVJTs7du+ee8znf3/d37jmXw0fsx33EePC/ATQ0NKTjXuDMiqjIN0NBe87OxWKx0vC54Xyz/mYpNPLFkcVX/jW1v5gpfkrP6cwAd1OAFIBTFLkEHu+2L2zbs+2l7UfqgVWARr420uV/c/KfXJIzO21O6HQ69RkFSrNJNf0/Bw6KoiCZSSIhJ7Bw+aIvbT269bDWgxWgn/TsOlyYLvR1ujohKzJKinxzDcYBBp0BwXgQaVM63bGk07Xt6LbcXCgVaGTliOFywv+BWBAdVpMVRaXYdNY30kAHnTrZmdwM2he3rf3Bn3e8qgm0d+1eMRVMTNnyNslisqCklG5kvKbPqKGTFYSKIdg94j0Dow8e1QTat36fNXEp5rfmrG7BJPxXgWRZRrgYhqNb8u04ufPE/xeQbYENq+5fja7buyB2iODNvDrBUr6EdDAF/+gljB14DclAUjN8FLLWFfI3DtmKTSux8v5VENxCQ6+kQ2mcPvhXvPn06Zp2s4C8km/HqQYhi78XveYhY62Her7Zg7UDn4ZJMjU1LjXIxXMY3X8KZw+dndW+AlQKw9llbwwUuxjWBHIucuLeA31ou6WtJRjWKHIxjOe/93tEJiOV56qBpG7Rt/PUYH1TR94JaWbZ0r6l+NxP74RJbE0dNnoukcOJh47h/PPnNYEcXZJv52sNgMIElBFq0n5p3zL4Hr4xoOODBHROAygCsVvyDTYCCk0ENYGcH3fhy09/Ba7Fr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RICIRBUE0bLlKFIKhkAKTpuhUgUsYGwAHATvV9H7v3wXw8+9l5wjwVKJ6LAybuypHAH3aWB2ZMLBxUkxIEQTUVBkIwrDRViEJF+1YCoXOQWm51LV3mUTw/thsc4HU8gtkg8ubCkVcCr5CZmRqkAiuzwlIGyAJIValDUPlmCjEgJ4AOAPMBtBPgho7P/xBZbp6ZtyCFJEZjrz6SyCfoDM3CwVQgn5Aa1YOz64oyZR9pZlm1qQmIzs4MyFMGc/XO673dUbCvV18nZvnCscDxZ6t8QbMnEPIFFfqb9rV0TTBU6B6BqtlVLi0BsZB5ARAQFbegtzjXudZtTefSCHDTz0zEJi6UvUGzJqVoQDI4XRMIq5kqBMJgKmtRs5CRWmRq8hCBLCjX5CXhrva7vquTuQVHg396qDwgDUYQVKqBKllUhiCQ6qyrJGazhZGlvVT2DoGQl9wEtMK9YrnTYHecCJx8oQxEKjBVmG/oHvmJACk0BMK+GdI1jVE5VTQDInLmI1KJCsGQpyzlaakL2hyF1IzR8kj5mbqfm1sBYmEjLxEErUm0SNLXB+qYzb4RRMvfu1sFYqEjKAIh1ajQffYeYgvfXH+0DEPq/RvPhLmkBAS7+QAAAABJRU5ErkJggg==","graphicXOffset":-18,"graphicYOffset":-46,"display":false}}},{"type":"Feature","geometry":{"coordinates":[[[1253700.1327550297,5861355.367963561],[1256913.9618762464,5862519.295386709],[1255280.9893173364,5863301.037668426],[1253700.1327550297,5861355.367963561]]],"type":"Polygon"},"properties":{"id":"210c1500-99e2-11ea-8d2f-fffbb8e747a8","ms_style":{"strokeColor":"#ffcc33","strokeOpacity":1,"strokeWidth":3,"fillColor":"#ffffff","fillOpacity":0.2,"strokeDashstyle":"solid"}}},{"type":"Feature","geometry":{"coordinates":[1259901.9550121822,5862675.643959687],"type":"Point"},"properties":{"id":"3b9dd700-99e2-11ea-8d2f-fffbb8e747a8","ms_style":{"fontStyle":"normal","fontSize":"18","fontFamily":"Courier","fontWeight":"normal","labelAlign":"cm","fontColor":"#ffffff","fontOpacity":1,"label":"hivugvugvug","stroke":true,"strokeColor":"#000000","strokeOpacity":1,"strokeDashstyle":"solid"}}},{"type":"Feature","geometry":{"type":"Point","coordinates":[1259686.5415286953,5856300.101138972]},"properties":{"id":"db49bf81-99e7-11ea-9af6-d14496302462","ms_style":{"fontStyle":"normal","fontSize":"14","fontFamily":"Arial","fontWeight":"normal","labelAlign":"cm","fontColor":"#000000","fontOpacity":1,"label":"2308537.74 m²","stroke":true,"strokeColor":"#000000","strokeOpacity":1,"strokeDashstyle":"solid"}}},{"type":"Feature","geometry":{"coordinates":[[[1258609.4740998885,5857620.377135092],[1261614.8386515242,5858436.863414547],[1262031.7677906854,5856352.217718743],[1259686.5415286953,5856300.101138972],[1258609.4740998885,5857620.377135092]]],"type":"Polygon"},"properties":{"id":"db49bf83-99e7-11ea-9af6-d14496302462","ms_style":{"strokeColor":"#ffcc33","strokeOpacity":1,"strokeWidth":3,"fillColor":"#ffffff","fillOpacity":0.2,"strokeDashstyle":"solid"}}}]}}],"pages":[{"center":[1262283.5185430448,5858081.468061896],"scale":2000,"rotation":0}],"legends":[{"name":"Quartieri","classes":[{"name":"","icons":["https://sit.comune.bolzano.it/geoserver2/wms?TRANSPARENT=true&EXCEPTIONS=application%2Fvnd.ogc.se_xml&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetLegendGraphic&LAYER=Ambiente%3Aquartieri&LANGUAGE=it&STYLE=&SCALE=2000&height=24&width=24&minSymbolSize=24&LEGEND_OPTIONS=forceLabels%3A%3BfontAntialiasing%3Atrue%3Bdpi%3A96%3BfontStyle%3A%3BfontName%3AVerdana%3BfontSize%3A8&format=image%2Fpng&ms2-authkey=ff098b00-ac7f-4da4-b26b-c94bdee30729"]}]},{"name":"Edifici","classes":[{"name":"","icons":["https://sit.comune.bolzano.it/geoserver2/wms?TRANSPARENT=true&EXCEPTIONS=application%2Fvnd.ogc.se_xml&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetLegendGraphic&LAYER=Ambiente%3AEdifici&LANGUAGE=it&STYLE=&SCALE=2000&height=24&width=24&minSymbolSize=24&LEGEND_OPTIONS=forceLabels%3A%3BfontAntialiasing%3Atrue%3Bdpi%3A96%3BfontStyle%3A%3BfontName%3AVerdana%3BfontSize%3A8&format=image%2Fpng&ms2-authkey=ff098b00-ac7f-4da4-b26b-c94bdee30729"]}]}]}
The same performed against the MS DEV instance (https://dev.mapstore2.geo-solutions.it/mapstore/pdf/create.json) works, even though in both cases the GetLegendGraphic request for the layer quartieri fails as reported above by @offtherailz.
I confirm that also the production environment of Bolzano is affected by the same issue, this is a preexisting issue.
Therefore we can exclude a problem in GeoServer, to check if:
I confirm the print lib is the same. print-lib-geosolutions-2.0-20190412.084441-4.jar
All the differences between latest mapstore (2020.02.xx) and this build are jars introduced for this release and independend from this.
5a6
> aspectjrt-1.6.8.jar
6a8
> aspectjweaver-1.6.8.jar
25a28
> btf-1.3.jar
26a30
> checker-compat-qual-2.5.5.jar
27a32
> commons-beanutils-1.8.0.jar
28a34
> commons-collections-3.2.1.jar
34a41
> commons-lang-2.5.jar
47a55,56
> ehcache-core-2.4.6.jar
> ehcache-web-2.0.4.jar
48a58
> error_prone_annotations-2.3.4.jar
49a60
> failureaccess-1.0.1.jar
52,59c63,70
< geostore-model-1.4.2-SNAPSHOT.jar
< geostore-persistence-1.4.2-SNAPSHOT.jar
< geostore-rest-api-1.4.2-SNAPSHOT.jar
< geostore-rest-extjs-1.4.2-SNAPSHOT.jar
< geostore-rest-impl-1.4.2-SNAPSHOT.jar
< geostore-security-1.4.2-SNAPSHOT.jar
< geostore-services-api-1.4.2-SNAPSHOT.jar
< geostore-services-impl-1.4.2-SNAPSHOT.jar
---
> geostore-model-1.5-SNAPSHOT.jar
> geostore-persistence-1.5-SNAPSHOT.jar
> geostore-rest-api-1.5-SNAPSHOT.jar
> geostore-rest-extjs-1.5-SNAPSHOT.jar
> geostore-rest-impl-1.5-SNAPSHOT.jar
> geostore-security-1.5-SNAPSHOT.jar
> geostore-services-api-1.5-SNAPSHOT.jar
> geostore-services-impl-1.5-SNAPSHOT.jar
65a77
> guava-28.2-android.jar
73a86,90
> j2objc-annotations-1.3.jar
> jackson-annotations-2.10.2.jar
> jackson-core-2.10.2.jar
> jackson-coreutils-1.12.jar
> jackson-databind-2.10.2.jar
87a105
> json-patch-1.12.jar
89a108
> jsr305-3.0.2.jar
93a113
> listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar
96a117,118
> mapstore-backend-1.0-SNAPSHOT.jar
> msg-simple-1.2.jar
106a129
> slf4j-api-1.6.1.jar
108a132
> spring-aop-3.0.3.RELEASE.jar
112a137
> spring-context-support-3.0.5.RELEASE.jar
122a148
> spring-tx-3.0.3.RELEASE.jar
124a151
> spring-webmvc-3.0.5.RELEASE.jar
offtherailz@tifa-nali-studio ~/temp $
The print frequently fails with the following error reported in the MS UI
Error on printing: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Server error!</title> <link rev="made" href="mailto:%5bno%20address%20given%5d" /> <style type="text/css"><!--/*--><![CDATA[/*><!--*/ body { color: #000000; background-color: #FFFFFF; } a:link { color: #0000CC; } p, address {margin-left: 3em;} span {font-size: smaller;} /*]]>*/--></style> </head> <body> <h1>Server error!</h1> <p> The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. </p> <p> If you think this is a server error, please contact the <a href="mailto:%5bno%20address%20given%5d">webmaster</a>. </p> <h2>Error 500</h2> <address> <a href="/">sit.comune.bolzano.it</a><br /> <span>Apache</span> </address> </body> </html>
Rarely also the following error appears in the catalina.out
org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: var at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:136) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156) at org.apache.batik.transcoder.print.PrintTranscoder.print(PrintTranscoder.java:307) at org.mapfish.print.config.layout.ImageBlock$SvgDrawer.renderImpl(ImageBlock.java:198) at org.mapfish.print.ChunkDrawer.render(ChunkDrawer.java:55) at org.mapfish.print.ChunkDrawer.tableLayout(ChunkDrawer.java:49) at com.lowagie.text.pdf.PdfPTable.writeSelectedRows(Unknown Source) at com.lowagie.text.pdf.PdfPTable.writeSelectedRows(Unknown Source) at com.lowagie.text.pdf.ColumnText.goComposite(Unknown Source) at com.lowagie.text.pdf.ColumnText.go(Unknown Source) at com.lowagie.text.pdf.ColumnText.go(Unknown Source) at com.lowagie.text.pdf.PdfPRow.writeCells(Unknown Source) at com.lowagie.text.pdf.PdfPTable.writeSelectedRows(Unknown Source) at com.lowagie.text.pdf.PdfPTable.writeSelectedRows(Unknown Source) at com.lowagie.text.pdf.ColumnText.goComposite(Unknown Source) at com.lowagie.text.pdf.ColumnText.go(Unknown Source) at com.lowagie.text.pdf.ColumnText.go(Unknown Source) at com.lowagie.text.pdf.PdfPRow.writeCells(Unknown Source) at com.lowagie.text.pdf.PdfPTable.writeSelectedRows(Unknown Source) at com.lowagie.text.pdf.PdfPTable.writeSelectedRows(Unknown Source) at com.lowagie.text.pdf.PdfPTable.writeSelectedRows(Unknown Source) at org.mapfish.print.config.layout.ColumnsBlock$1.render(ColumnsBlock.java:67) at org.mapfish.print.PDFCustomBlocks.addAbsoluteDrawer(PDFCustomBlocks.java:183) at org.mapfish.print.config.layout.ColumnsBlock.render(ColumnsBlock.java:56) at org.mapfish.print.config.layout.Page.render(Page.java:80) at org.mapfish.print.config.layout.Layout.render(Layout.java:67) at org.mapfish.print.output.AbstractOutputFormat.doPrint(AbstractOutputFormat.java:30) at org.mapfish.print.output.PdfOutputFactory.print(PdfOutputFactory.java:62) at org.mapfish.print.MapPrinter.print(MapPrinter.java:184) at org.mapfish.print.servlet.MapPrinterServlet.doCreatePDFFile(MapPrinterServlet.java:409) at org.mapfish.print.servlet.MapPrinterServlet.createPDF(MapPrinterServlet.java:190) at org.mapfish.print.servlet.MapPrinterServlet.doPost(MapPrinterServlet.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at com.googlecode.psiprobe.Tomcat70AgentValve.invoke(Tomcat70AgentValve.java:38) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2403) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) ERROR: null Enclosed Exception: null Enclosed Exception: var