Travel legs departureDate incorrect field type (integer -> string)
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start by locating the travel legs departureDate field and tracing how its value is serialized before the Cybersource API request. Reproduce the 2024-02-01 case and verify that the resulting value preserves the leading zero and is accepted in MMDDYY format; add or update coverage if the repository provides a relevant test location.
Written by the indexing model from the issue text.
Description
The travel legs departureDate field is stored as an integer while expecting a format of MMDDYY on Cybersource backend site.
This results in bad requests for departureDates starting with a month below 10, e.g.:
Date 2024-02-01 (YYYY-MM-DD) results to integer 20124 instead of 020124.
Sending the resulting departureDate to the CyS API returns a validation error saying that the field should be in MMDDYY format.
Supported format for this field is MMDDYY.: departure_date
PR following.
- Dominant language
- Java
- Stars
- 29
- Forks
- 50
- Avg merge
- 28m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from CyberSource/cybersource-rest-client-java
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
CyberSource/cybersource-rest-client-java#241 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
CyberSource/cybersource-rest-client-java#235 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
All issues in CyberSource/cybersource-rest-client-java
Similar issues
-
Update license yearOpen0 - Backlog 1 - Ready documentation good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
cbor
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
FasterXML/jackson-dataformats-binary#844 ·
Maintainers usually reply within 1 day
-
improvement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
apache/iceberg#18351 · 1 comment ·
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
repowise-dev/repowise#2945 · 1 comment ·
Maintainers usually reply within 1 day
-
Interpolating settings.xml can lead to malformed XML when variable value contains double-hyphenOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
apache/maven#13321 · 1 comment ·
Maintainers usually reply within 1 day