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

Layer queries and templates #1587

Open
dbauszus-glx opened this issue Oct 21, 2024 · 1 comment · May be fixed by #1588
Open

Layer queries and templates #1587

dbauszus-glx opened this issue Oct 21, 2024 · 1 comment · May be fixed by #1588
Assignees
Labels
Feature New feature requests or changes to the behaviour or look of existing application features. Security Ticket relates to either the authentication process, security headers, and or encryption.

Comments

@dbauszus-glx
Copy link
Member

Layer queries should only be possible on layers.

Layer queries should be flagged as such, eg layer=true.

This prevents misuse by sending a request to a layer query template eg. geojson without locale/layer request params.

The geojson query template for example only requieres a table, geom, and qID which can all be provided as request parameter.

/api/query?template=geojson&table=mytable&geom=geom_4326&srid=4326&qID=%27foo%27

The workspace dbs will be assumed if no locale, layer connection is available.

@dbauszus-glx dbauszus-glx self-assigned this Oct 21, 2024
@dbauszus-glx
Copy link
Member Author

dbauszus-glx commented Oct 21, 2024

It should also be possible to query layer templates. That is a layer defined as a template which is not added to the locale.layers.

@dbauszus-glx dbauszus-glx added Feature New feature requests or changes to the behaviour or look of existing application features. Security Ticket relates to either the authentication process, security headers, and or encryption. labels Oct 21, 2024
@dbauszus-glx dbauszus-glx linked a pull request Oct 21, 2024 that will close this issue
@dbauszus-glx dbauszus-glx added this to the Template Layer milestone Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature requests or changes to the behaviour or look of existing application features. Security Ticket relates to either the authentication process, security headers, and or encryption.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant