Comments (2)
Note #71 will address incorrect status and status codes.
There is an additional issue - attempting to create a bucket with a name such as ditto-test-.test
returns a 200 response which suggests that everything is fine and the bucket is created.
The bucket is not created however and the logs look like this:
2018-11-29 16:37:34,473 ditto-web-api DEBUG Called create-bucket handler
DEBUG:ditto-web-api:Called create-bucket handler
2018-11-29 16:37:34,476 ditto-web-api DEBUG Bucket "ditto-twentyninth.-135678asdf" does not exist
DEBUG:ditto-web-api:Bucket "ditto-twentyninth.-135678asdf" does not exist
2018-11-29 16:37:34,483 ditto-web-api ERROR S3ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>/ditto-twentyninth.-135678asdf/</Resource><RequestId>156BA5ABC59D794F</RequestId><HostId>3L137</HostId></Error>
ERROR:ditto-web-api:S3ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidBucketName</Code><Message>The specified bucket is not valid.</Message><Resource>/ditto-twentyninth.-135678asdf/</Resource><RequestId>156BA5ABC59D794F</RequestId><HostId>3L137</HostId></Error>
2018-11-29 16:37:34,483 ditto-web-api DEBUG Could not create bucket "ditto-twentyninth.-135678asdf"
DEBUG:ditto-web-api:Could not create bucket "ditto-twentyninth.-135678asdf"
The reason for this seems to be that adjacent full stops and hyphens are not allowed by S3. The error is not affecting the API response
from ditto.
The status code issues and -.
bucket issue have been resolved since the last comment. The bucket creation process has changed with #67 and #82 so the functionality will be tested for those stories
from ditto.
Related Issues (20)
- LICENSE.md
- Web app can retrieve objects
- Investigate S3 bucket locations HOT 3
- Make bucket name part of URL
- Catching S3 bucket error
- Bug in copydir
- Attempting to access non-existant bucket causes Internal Server Error HOT 1
- API is overly fussy HOT 1
- Better handling of errors when files are unreadable
- Adding "user" to POST data
- Web service transfers a single file to S3 interface
- Creating a bucket is purely an admin method HOT 1
- Web service returns list of all ditto buckets
- Web service reports usage by user
- Return failed status and code 400 for unsuccessful requests HOT 2
- BucketConfigService to link each bucket to a root directory and to user group(s) HOT 1
- Implement bucket creation in bucket settings service HOT 1
- Test performance uploading large file to ECHO
- Remove server from content header
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ditto.