S3 doesn't interpret URI paths with +
signs correctly vs. Akka HTTP normalizing URIs
#451
Labels
1 - triaged
Tickets that are safe to pick up for contributing in terms of likeliness of being accepted
help wanted
Identifies issues that the core team will likely not have time to work on
t:docs
Issues related to the documentation
Milestone
According to an AWS forum post, S3 mistakenly interprets
+
signs in the path portion of an URI as a space character. Instead, a file with a+
sign in its path needs to be accessed by using the percent encoded representation of the plus sign,%2b
. This is in violation of RFC 3986 which mandates that a literal plus sign or its percent encoded form are to be treated as equivalent. (Note, how this is different from the interpretation of the query portion of an http uri in which+
signs actually are to be interpreted as a space character.)Akka HTTP will never send out the
+
sign as percent encoded because it normalizes URIs on creation. This means that it isn't possible to access a file in S3 that contains a+
sign in its path using Akka HTTP's URIs.As a workaround, you can use the synthetic
Raw-Request-Uri
header to render the URI yourself and force Akka HTTP to send a plus sign in its percent encoded form like this:I put the issue here to help people who also run into this problem. To resolve it we should document the issue more prominently.
The text was updated successfully, but these errors were encountered: