nodeSolidServer / nodeSolidServer/node-solid-server

Adding Support for ACL mime-types.

Open
#922 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
JavaScript
Stars
1.8k
Forks
308
PR merge metrics
No merged PRs in 30d

Description

I noticed there is no support for uploading acl files since there is no well-defined mime-type. Because of this, if I try and POST an acl file into a container it will automatically add an unwanted file extension. This may be a one-line fix by adding the line

extensions['text/acl'] = ['acl']

to the top of ./lib/handlers/post.js.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in lib/handlers/post.js, where the issue identifies the MIME extension mappings. Check the existing upload handling and nearby conventions for extension entries. Done means ACL uploads retain the .acl filename without an unwanted extension; manually verify the POST behavior if no referenced test is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.