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

Uncaught exceptions for Digest header on creation #102

Closed
scossu opened this issue Apr 11, 2019 · 1 comment
Closed

Uncaught exceptions for Digest header on creation #102

scossu opened this issue Apr 11, 2019 · 1 comment
Labels

Comments

@scossu
Copy link
Owner

scossu commented Apr 11, 2019

An unsupported digest algorithm on creation raises a ValueError that results in a 500 error. It should produce a 400 error according to https://fcrepo.github.io/fcrepo-specification/#http-post-ldpnr

A malformed digest string containing an = sign results in a 500 error:

  File "lsup/src/lakesuperior/endpoints/ldp.py", line 287, in post_resource
    request.headers['digest'].split('=')
ValueError: too many values to unpack (expected 2)
@scossu scossu added the bug label Apr 11, 2019
scossu pushed a commit that referenced this issue Apr 17, 2019
scossu pushed a commit that referenced this issue Apr 17, 2019
@scossu
Copy link
Owner Author

scossu commented Apr 17, 2019

Fixed in #108.

@scossu scossu closed this as completed Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant