Reply To: Rewrite is changing escaped url to not escaped

Splash Forums Rewrite Users Rewrite is changing escaped url to not escaped Reply To: Rewrite is changing escaped url to not escaped

#27063

Janario Oliveira
Participant

This is not under my control. As I said the links are generated by external api, AWS S3, to them ‘dev/file.png’ is not like an http path but it is as a keyname of a file that’s why they escaped

AmazonS3 conn = new AmazonS3Client(new BasicAWSCredentials(accessKey, secretKey));
conn.setEndpoint("s3-zone.amazonaws.com");

String link=conn.generatePresignedUrl(new GeneratePresignedUrlRequest("mybucket", "dev/file.png")).toExternalForm();
//link is with %2F

So after redirect it with rewrite, it changes and the link stop to work with an error in “Signature”