SageMaker CreatePresignedDomainUrlCommandInput doesn't respect case sensitive UserProfileName parameter #6514
Closed
3 of 4 tasks
Labels
bug
This issue is a bug.
closed-for-staleness
p2
This is a standard priority issue
response-requested
Waiting on additional info and feedback. Will move to \"closing-soon\" in 7 days.
Checkboxes for prior research
Describe the bug
When using the SageMaker SDK with the CreatePresignedDomainUrlCommand, case sensitivity is not respected in the UserProfileName parameter. This causes the command to fail when the username is not entirely lowercase.
Regression Issue
SDK version number
"@aws-sdk/client-sagemaker": "3.658.0"
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
node -v v18.19.1
Reproduction Steps
Given a SageMaker domain with domainId
d-12345
and a user namedPowerUser
, execute the following:Observed Behavior
Due to my client's security posture and usage of permission's boundaries, the error I receive is the following:
This is the same error as the user not being found, looking further at the resource ARN of:
arn:aws:sagemaker:us-east-1:ACCOUNT_NUMBER:user-profile/d-12345/poweruser
We can see the PascalCase userProfileName in the parameters is changed to lowercase, causing the resource to be invalid.
I repeated this with a new username of
test
, all lowercase and the exact same code in the generation was successful.Expected Behavior
A presigned URL is returned for the user
PowerUser
Possible Solution
UserProfileName parameter is not respecting the case of the input
Additional Information/Context
No response
The text was updated successfully, but these errors were encountered: