Arn parsing doesn't properly parse the qualifier #5877
Labels
bug
This issue is a bug.
needs-review
This issue or PR needs review from the team.
p2
This is a standard priority issue
Describe the bug
When I am doing
Arn.fromString("arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-dynamic-ports:1")
, the resulting arn doesn't properly recognize the qualifier part.The
resource
field should beconsole-sample-app-dynamic-ports
andqualifier
should be1
.The Arn parsing was working properly in AWS Java SDK v1.
Regression Issue
Expected Behavior
According to the javadoc, Arn class should properly handle the
arn:<partition>:<service>:<region>:<account>:<resourcetype>/resource:qualifier
format arn.Arn.fromString("arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-dynamic-ports:1")
should yieldCurrent Behavior
See description above.
Reproduction Steps
Just run
Arn.fromString("arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-dynamic-ports:1")
.Possible Solution
Arn parsing should properly recognize the qualifier when the arn format is
arn:<partition>:<service>:<region>:<account>:<resourcetype>/resource:qualifier
Additional Information/Context
No response
AWS Java SDK version used
2.30.17
JDK version used
21.0.6
Operating System and version
Amazon Linux 2
The text was updated successfully, but these errors were encountered: