nodeSolidServer / nodeSolidServer/node-solid-server
Unrecognised relations in Content-Type interferes with content negotiation
Open
Nobody has claimed this yet.
retest
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
curl -iH'Accept: application/ld+json' https://csarven.solid.community/public/
HTTP/1.1 200 OK
Content-Type: application/ld+json
curl -iH'Accept: application/ld+json; profile="https://www.w3.org/ns/activitystreams"' https://csarven.solid.community/public/
HTTP/1.1 200 OK
Content-Type: text/turtle
See also:
curl -iH'Accept: application/ld+json; profile=""' https://csarven.solid.community/public/
Content-Type: application/ld+json
curl -iH'Accept: application/ld+json; profile="x"' https://csarven.solid.community/public/
Content-Type: text/turtle
curl -iH'Accept: application/ld+json; x=""' https://csarven.solid.community/public/
Content-Type: application/ld+json
curl -iH'Accept: application/ld+json; x="y"' https://csarven.solid.community/public/
Content-Type: text/turtle
The server should at the very least ignore the relations it can't handle and return application/ld+json, or return 406.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the curl examples against the server and compare content negotiation for unsupported and empty media-type parameters. Trace the request handling that selects the response representation; done means unsupported relations are ignored with application/ld+json returned, or the request receives 406.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100