LinusU / LinusU/node-append-field

Null field in form-data thrown exception

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.