bryancall commented on PR #12802:
URL: https://github.com/apache/trafficserver/pull/12802#issuecomment-3774760834

   Good question about partially-encoded URLs like 
`/app/(channel)/%5B%5Bparts%5D%5D/page.js`.
   
   To generate a matching signature, we need to canonicalize the URI the same 
way AWS does. Our approach decodes then re-encodes to produce a consistent 
canonical form:
   
   ```
   Input (any of these):
     /app/(channel)/%5B%5Bparts%5D%5D/page.js     (partial)
     /app/%28channel%29/%5B%5Bparts%5D%5D/page.js (full)
     /app/(channel)/%5b%5bparts%5d%5d/page.js     (lowercase hex)
   
   Canonical form (always):
     /app/%28channel%29/%5B%5Bparts%5D%5D/page.js
   ```
   
   This ensures our signature matches AWS regardless of how the client encoded 
the request.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to