LinusU / LinusU/node-append-field
Null field in form-data thrown exception
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Hi! If you try to send in form-data key=null and attach a file, then an exception will be thrown in the parsePath(key) method with the following content: "TypeError: Cannot read properties of undefined (reading 'length')".
Contributor guide
No contributing guide indexed for this repository
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 with the parsePath(key) method mentioned in the report and reproduce the form-data case where key=null and a file is attached. Confirm the exception no longer occurs and add or update coverage for this input if the relevant test location is identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100