-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty Language parameter in printing legend seems to be refused by some servers. #8871
Comments
Is there a way to specify this in Mapstore config ? (-> force it to 'fre' on our platform for example) |
No. This parameter is normally ignored by GeoServer, so sending it didn't caused any problem before. We will need to change it on Maybe this error is caused by some extension, like "inspire"? Looking at GeoServer code, it looks like the error is this one. JFI: MapStore supports localization of styles and legends setting the property
assuming the implicit rule that if your current locale is This only for the layers that activated this specific checkbox, visible only if |
The fix applied looks to solve the issue on a similar environment, but in the meanwhile, the original server used for this test This looks to be a separate issue and it may require a different investigation/issue @tdipisa |
Maybe @jusabatier can also double check and a new issue, more focused on that scenario, be opened. |
Reopening due to wrong backport provided for v2024.01.00. Backport PR available at |
Description
MapStore by default sends a LANGUAGE parameter for the legend generation in print plugin. This parameter is empty if the i18n for the source is not configured.
MapStore2/web/client/utils/PrintUtils.js
Line 551 in ffc8d21
Anyway, sending and empty string for it seems to make some GeoServers rise an error.
See this mailing list for the example and the details:
https://groups.google.com/g/mapstore-users/c/PZWlYsDrEMY
How to reproduce
https://geoportail.lepuyenvelay.fr/geoserver/ows
, adding the parkings layer as for the mailing list )Expected Result
Current Result
The legend is not present
Opening the URL generated my mapstore for the legend (from
create.json
request body) you have the error reported.Not browser related
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)Other useful information
https://geoportail.lepuyenvelay.fr/geoserver/ows
has other new problems with printing that need to be investigated (see comments below Empty Language parameter in printing legend seems to be refused by some servers. #8871 (comment) )The text was updated successfully, but these errors were encountered: