-
Notifications
You must be signed in to change notification settings - Fork 1.1k
AWS_CSM_ENABLED with DefaultMonitoring Does not work because Header Look Up is case-sensitive and fails to pick up a needed key #1536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @vinayan3 , |
Sorry I wasn't more clear @KaibaLopez. I'm using a slightly older version because the library hasn't been updated yet in the source tree. In terms of reproducing. I think reading the code could help you understand how this could happen.
So what's happening is the security token is being set by using the string The reason maybe my application is currently crashing is I'm developing locally and running it via GDB with break on exceptions, asserts, etc... on. If you are still having trouble with this I can write a unit test. I'm quite confident that a unit test would demonstrate the behavior that I'm observing. |
Unit test would help a lot yea. |
Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one. |
Please don't close this. I'll have to do some work with the debugger next week to figure out the exact code path which set the header. I'll also try with a prod build to see if the issue replicates. |
I still haven't gotten down to why you can't reproduce this. I put this in GDB and figured out that this is the line using the env-var to set the value: aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/http/HttpRequest.h Lines 304 to 307 in ce73e54
This is the line which is accessing the value by the header: aws-sdk-cpp/aws-cpp-sdk-core/include/aws/core/http/HttpRequest.h Lines 297 to 300 in ce73e54
As for putting up a PR I will try to go through the steps to get the repo setup and use the CMake build system. I currently use a different one for the project I am on. |
Greetings! Sorry to say but this is a very old issue that is probably not getting as much attention as it deservers. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one. |
Uh oh!
There was an error while loading. Please reload this page.
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
A clear and concise description of what the bug is.
export AWS_CSM_ENABLED=true
causes the SDK to assert.SDK version number
1.7.211
Platform/OS/Hardware/Device
What are you running the sdk on? Linux/Ubuntu 18.04 Desktop/Dell XPS 15 9500
To Reproduce (observed behavior)
Steps to reproduce the behavior (please share code)
export AWS_CSM_ENABLED=true
.Expected behavior
A clear and concise description of what you expected to happen.
No Assert
Logs/output
Stack Trace
Additional context
The reason this is happening is because the header's key is in lower case
The value being looked up is
A case insensitive look up is needed
The text was updated successfully, but these errors were encountered: