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

Validate input style based on source format #11

Open
chrismayer opened this issue Jun 9, 2022 · 1 comment
Open

Validate input style based on source format #11

chrismayer opened this issue Jun 9, 2022 · 1 comment

Comments

@chrismayer
Copy link
Collaborator

Currently there is only a minimal validation of the input style unrelated to the source format. This can lead to issues when having on matching parameter sourceFormat and content. For example when sending a JSON object and defining sourceFormat=SLD.

A more sophisticated validation based on sourceFormat and its content should be implemented.

@slafayIGN
Copy link
Collaborator

The described situation leads to a 400 return because the parsing of the input fails.

The only problematic situation is when the content is in a XML format and the sourceFormat is in another XML format.

For instance the input is a SLD file and the sourceFormat is set to QML. In this case the output will be an almost empty style but without any error raised (when targetFormat is different from sourceFormat). This is a really minor issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants