OpenFeign / OpenFeign/feign

Request ignoring "=" when empty

Open
#1,971 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation feedback provided
Dominant language
Java
Stars
9.8k
Forks
1.9k
Avg merge
1d 2h
Merged PRs (30d)
41

Description

how to send a query string that has an empty attribute but requires the "=" sign to be sent in the request?

feign removes the signal and instead of sending param1=test&param2=&parem3=test2, it sends param1=test&param2&parem3=test2.

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 by reproducing the query-string serialization described in the issue and trace the request-building entry point that removes the empty value's equals sign. Done means a request with an empty parameter is sent as param2= rather than param2; add or update a regression test if the relevant test location is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.