Skip to content

error code for non-auth with wildcards #2

Description

@crotwell

Spec says:

In the case that the user is not allowed to access a
dataset, the same error codes as in the “queryauth” method should be used (401:
unauthorized, 403: forbidden access).

Would be helpful to clarify how this works in the case of wildcard requests with some matching data is not allowed access, but some is. I think the existing services treat a wildcard request as if the restricted data did not exist, and so no error code is returned.

Concrete example would be the station web service where the user requests all stations within a lat,lon box that includes some restricted stations and some non-restricted stations. To return an error message in this case seems wrong, and it would be better to return the non-restricted stations as if the restricted ones did not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions