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

Editing of preferences causes parsing error and prevents application of some preferences #1157

Closed
confluence opened this issue Jul 6, 2022 · 3 comments · Fixed by #1158
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@confluence
Copy link
Collaborator

I have recently noticed that whenever I edit any preference through the frontend dialog, I get this error in the Firefox console:

XML Parsing Error: not well-formed
Location: http://192.168.0.98:3003/api/database/preferences
Line Number 1, Column 1:

Additionally, while some preferences are applied as normal (e.g. turning event logging on and off), some (e.g. overlay settings) have no effect. They are saved correctly, and are applied the next time I open CARTA.

I have reproduced this on Ubuntu Focal using both the carta and carta-beta packages, after clearing my user directory so that a brand new one is created (so the issue is not an old preferences file). I have also reproduced this in the latest dev backend + frontend built from source.

In Chromium I do not see any error output in the browser console, but I see the same symptoms when I try to change the overlay settings.

@kswang1029
Copy link
Contributor

Might be helpful if you can attached example json files (a working normally one and an edited problematic one).

@confluence
Copy link
Collaborator Author

@kswang1029 this isn't being caused by a corrupted file -- it happens even when I remove the user directory and a new one is created.

@veggiesaurus veggiesaurus self-assigned this Jul 20, 2022
@veggiesaurus
Copy link
Collaborator

may be related to not setting content type to JSON

@veggiesaurus veggiesaurus added the bug Something isn't working label Jul 20, 2022
@veggiesaurus veggiesaurus transferred this issue from CARTAvis/carta-frontend Jul 25, 2022
@veggiesaurus veggiesaurus added this to the v3.0-stable milestone Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants