Admin putFunctionState REST API MediaType is multipart/form-data
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
**Describe the bug**
In https://github.com/apache/pulsar/blob/master/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/FunctionsBase.java#L535
MediaType is multipart/form-data, which is not expected since user won't upload file.
**Expected behavior**
MediaType should be application/json
BTW, the document about it is really poor, I can't successfully send any putFunctionState REST API request!
Contributor guide
Research direction
Start in pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/FunctionsBase.java around line 535 and inspect the putFunctionState REST endpoint declaration. Review the related API documentation mentioned in the report; done means the endpoint advertises application/json and its request usage is clear enough to send successfully without a multipart upload.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, documentation
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100