Giter Site home page Giter Site logo

Comments (6)

gaul avatar gaul commented on June 11, 2024

Duplicate of #473. You can work around this by setting jclouds.version to 2.6.0-SNAPSHOT.

from s3proxy.

juangburgos avatar juangburgos commented on June 11, 2024

Sorry, did not know it was a dupe, not knowledgeable in Java, how/where would I change this parameter? I guess in s3proxy.conf? I will try tonight. Thanks!

from s3proxy.

gaul avatar gaul commented on June 11, 2024

You need to edit pom.xml and compile S3Proxy with mvn package.

from s3proxy.

juangburgos avatar juangburgos commented on June 11, 2024

Thanks, that worked, tests are fialing though, had to run with:

mvn package -DskipTests

from s3proxy.

juangburgos avatar juangburgos commented on June 11, 2024

Now the problem is on Windows, the returned sub-folders have the trailing \, for example:

<?xml version="1.0" encoding="UTF-8"?>
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
  <Name>converted</Name>
  <Prefix/>
  <KeyCount>2</KeyCount>
  <MaxKeys>1000</MaxKeys>
  <ContinuationToken/>
  <StartAfter/>
  <Delimiter>/</Delimiter>
  <IsTruncated>false</IsTruncated>
  <Contents>
    <Key>some-file.txt</Key>
    <LastModified>2020-05-01T23:37:35Z</LastModified>
    <Size>693</Size>
    <StorageClass>STANDARD</StorageClass>
  </Contents>
  <CommonPrefixes>
    <Prefix>some-folder\</Prefix>
  </CommonPrefixes>
</ListBucketResult>

Which then an S3 client wil try to use to query the subfolder, and everything breaks from then on.

from s3proxy.

juangburgos avatar juangburgos commented on June 11, 2024

I have managed to make it work by adding the following to my reverse proxy configuration:

AddOutputFilterByType SUBSTITUTE application/xml
Substitute "s|\|/|n"

Basically substitute \ for / for XML responses. And now is usable 👍

from s3proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.