CyberSource / CyberSource/cybersource-rest-samples-java
Clear digest header before call any get request
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 35
- Forks
- 84
- Avg merge
- 37m
- Merged PRs (30d)
- 1
Description
In my case, I was getting bad request when calling getInstrumentIdentifierWithHttpInfo after postInstrumentIdentifierWithHttpInfo calls and I ended up finding that GET was sending the created Digest to the POST. So I had to explicitly clear it whenever I need to call the getInstrumentIdentifierWithHttpInfo.
Could you clear the field by default always before the call?
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 by tracing getInstrumentIdentifierWithHttpInfo and postInstrumentIdentifierWithHttpInfo to see where the Digest field is retained between requests. Reproduce the sequence described in the issue, then verify that a GET no longer sends the POST's Digest and that existing request behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100