Skip to content

fix(sb-blob-store): `getPermanentFileName` method - do NOT add slash between...

Andrii Bezuglyi requested to merge fix/s3_relPath into master

fix(sb-blob-store): getPermanentFileName method - do NOT add slash between relPath and fName, because relPath already contains it

AWS S3 probably tolerates this, at least it works. But some other S3-compatible services - do not.

Here is a log fragment:

  " debug 	<-  X-Accel-Redirect: /ub/s3/ub-bucket//dfxDoc-docImage3000000438514f326.pdf
  " http  	213.225.34.60 <- 200

This double slash causes the following error in localstack:

2024-12-23T13:32:35.078 DEBUG --- [et.reactor-0] rolo.gateway.wsgi          : GET localstack:4566/ub-bucket//dfxDoc-docImage3000000438514f326.pdf
...
2024-12-23T13:32:35.081  INFO --- [et.reactor-0] localstack.request.aws     : AWS s3.GetObject => 404 (NoSuchKey);....

Merge request reports

Loading