Skip to content
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

JAXBException while updating an existing dashboard #10805

Open
1 task done
allyoucanmap opened this issue Feb 11, 2025 · 2 comments
Open
1 task done

JAXBException while updating an existing dashboard #10805

allyoucanmap opened this issue Feb 11, 2025 · 2 comments

Comments

@allyoucanmap
Copy link
Contributor

allyoucanmap commented Feb 11, 2025

Description

There is an error while trying to update an existing

Request to update an existing dashboard:

curl 'https://dev-mapstore.geosolutionsgroup.com/mapstore/rest/geostore/resources/resource/21694' \
  -X 'PUT' \
  --data-raw $'<Resource><description><\u0021[CDATA[Filtering Capabilities]]></description><metadata></metadata><name><\u0021[CDATA[3 - Demo Dashboard]]></name><advertised>true</advertised><Attributes><attribute><name>detailsSettings</name><value>{"showAsModal":false,"showAtStartup":false}</value><type>STRING</type></attribute><attribute><name>details</name><value>rest/geostore/data/47320</value><type>STRING</type></attribute><attribute><name>featured</name><value>true</value><type>STRING</type></attribute><attribute><name>thumbnail</name><value>rest/geostore/data/21716/raw?decode=datauri&v=c363c6a0-990e-11eb-ba73-0fc9473ccf1f</value><type>STRING</type></attribute></Attributes></Resource>'

400 Error:

JAXBException occurred : Unexpected character '=' (code 61); expected a semi-colon after the reference for entity 'v'
 at [row,col {unknown-source}]: [1,573]. 

How to reproduce

  • login as admin
  • open this dashboard
  • open the resource metadata details
  • edit tags
  • save

Expected Result

The save process completes without errors

Current Result

There is a 400 Error on the backend

Image

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

found in this review #10796 (review)

@axl8713
Copy link

axl8713 commented Feb 11, 2025

I suspect the error could be a missed encoding for the & character here:

<value>rest/geostore/data/21716/raw?decode=datauri&v=c363c6a0-990e-11eb-ba73-0fc9473ccf1f</value>

@allyoucanmap
Copy link
Contributor Author

thanks @axl8713, I'll check later

@allyoucanmap allyoucanmap assigned allyoucanmap and unassigned axl8713 Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants