-
Notifications
You must be signed in to change notification settings - Fork 187
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
[Prioritized] Encoded body fragments are decoded appropriately within multipart/mixed payloads #2900
Comments
As part of this, we should apply the default sanitizers to the individual sections of the content, e.g. Authorization headers should be sanitized. |
Recently I was looking at rerecording some of our tables tests for this PR: Azure/azure-sdk-for-js#22562. They were originally recorded before this issue arose. Many of the recordings in the suite ( It looks like we can work around the issue in the medium term by skipping recording the request body, but unfortunately, we don't have support for that yet in JS, although I do have a PR in the works. Longer term, it would be great to take another look at this issue so we can get multipart/mixed sanitization working again. |
Chiming in on Python's part: batch operations in Tables work in playback today because tests were recorded when multipart/mixed body sanitization was functional. However, now that the Storage team is migrating their tests, sanitizing the random UUID boundaries in The solution to this seemed to be: ignore the All that is to say that for the time being, the Python Storage team will have to either make these tests live-only or manually sanitize recordings in order to use the test proxy for batch operation tests. |
Ok @mccoyp please have users fall back on live-only for now. (or delay merge of the PR that transitions those tests) I will have a fix for this out the door soon. |
Follow-up issue to #2784 and it's PR #2863
multipart/mixed body payloads look like:
The only gap here is if the content itself is base64encoded (like in the case of binary streams, and the like). We probably need to account for this and do a "second order decode" per body fragment.
This issue will include re-enabling the multipart/mixed sanitization. We have decided to back it out until this issue is resolved.
The text was updated successfully, but these errors were encountered: