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

Errors with LDP-NR resources #47

Closed
acoburn opened this issue Apr 9, 2018 · 5 comments
Closed

Errors with LDP-NR resources #47

acoburn opened this issue Apr 9, 2018 · 5 comments
Labels
Milestone

Comments

@acoburn
Copy link
Contributor

acoburn commented Apr 9, 2018

Environment

Operating system: OS X

Python version: 3.6

LAKEsuperior release, branch, or commit #: 1.0.0-alpha12 from pypi

Steps to reproduce

Given a file in file.txt with the content:

this is a file.

And this request:

curl localhost:8000/ldp/ -XPOST -H"Content-Type: text/plain" -i --data-binary @file.txt

Then issue a GET request on the newly created resource.

curl -i <the resource>

Observed behavior

HTTP/1.1 500 INTERNAL SERVER ERROR
Server: gunicorn/19.7.1
Date: Mon, 09 Apr 2018 19:28:41 GMT
Connection: keep-alive
Content-Type: text/html
Content-Length: 291

Expected behavior

The file contents. Or at least logs describing the error (there was nothing of interest in the error logs or in the console of the running application).

Other notes worth mentioning

Requests to the metadata (e.g. /fcr:metadata) respond correctly with RDF.

It is also worth noting that the binary is present on the filesystem in ./data/ldpnr_store

@scossu
Copy link
Owner

scossu commented Apr 10, 2018

@acoburn I cannot reproduce this in the master or development branch.

What is the output in ./data/log/gunicorn-error.log?

@acoburn
Copy link
Contributor Author

acoburn commented Apr 10, 2018

For me there was no output in the error log. I'll try it again tomorrow with a clean environment.

@scossu
Copy link
Owner

scossu commented Apr 23, 2018

@acoburn Do you mind re-testing this with alpha 14?

@acoburn
Copy link
Contributor Author

acoburn commented Apr 25, 2018

Tried with alpha 14:

$ curl -i localhost:8000/ldp -XPOST -H"Content-Type: text/plain" --data-binary @file.txt
HTTP/1.1 500 INTERNAL SERVER ERROR
Server: gunicorn/19.7.1
Date: Wed, 25 Apr 2018 17:30:53 GMT
Connection: keep-alive
Content-Type: text/html
Content-Length: 291

Now I appear to be unable to POST the binary in the first place. (PUT continues to work fine)

@scossu scossu mentioned this issue Apr 25, 2018
@scossu scossu added the bug label Apr 27, 2018
@scossu scossu added this to the alpha.15 milestone Apr 27, 2018
@scossu scossu mentioned this issue Apr 27, 2018
@scossu
Copy link
Owner

scossu commented Apr 27, 2018

Fixed in d0a76c0

@scossu scossu closed this as completed Apr 28, 2018
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

2 participants