Object Store: Sub directory listing is not supported
Description of problem:
A Sub directory under a container can be created using the headers 'Content-Type: application/
However the current behaviour of object store is it just return 200 OK on a GET request on sub directory but this does not include a list of all object under that sub directory.It will be good to have this feature.
Version-Release number of selected component (if applicable):
glusterfs-
How reproducible:
Steps to Reproduce:
1. # curl -v -X PUT -H -k http://
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
> PUT /v1/AUTH_
> User-Agent: curl/7.19.7 (x86_64-
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 201 Created
< Content-Length: 0
< Content-Type: text/html; charset=UTF-8
< X-Trans-Id: txa97163f565644
< Date: Thu, 26 Dec 2013 17:43:39 GMT
<
* Connection #0 to host localhost left intact
* Closing connection #0
2. # curl -v -X PUT -H 'Content-Type: application/
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
> PUT /v1/AUTH_
> User-Agent: curl/7.19.7 (x86_64-
> Host: localhost:8080
> Accept: */*
> Content-Type: application/
> Content-Length: 0
>
< HTTP/1.1 201 Created
< Last-Modified: Thu, 26 Dec 2013 17:44:11 GMT
< Content-Length: 0
< Etag: d41d8cd98f00b20
< Content-Type: text/html; charset=UTF-8
< X-Trans-Id: tx48a4022d743c4
< Date: Thu, 26 Dec 2013 17:44:11 GMT
<
* Connection #0 to host localhost left intact
* Closing connection #0
3. # curl -v -X PUT -H 'Content-Type: application/
< HTTP/1.1 201 Created
4. # curl -v -X PUT -T install.log -k http://
< HTTP/1.1 201 Created
5. # curl -v -X PUT -T install.log -k http://
< HTTP/1.1 201 Created
6. # curl -v -X GET -k http://
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /v1/AUTH_
> User-Agent: curl/7.19.7 (x86_64-
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Length: 46
< X-Container-
< Accept-Ranges: bytes
< X-Timestamp: 1
< X-Container-
< Content-Type: text/plain; charset=utf-8
< X-Trans-Id: txa4407dd4cbce4
< Date: Thu, 26 Dec 2013 17:45:30 GMT
<
dir1
dir1/install1.txt
dir1/install2.txt
dir2
* Connection #0 to host localhost left intact
* Closing connection #0
7. # curl -v -X GET -k http://
* About to connect() to localhost port 8080 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /v1/AUTH_
> User-Agent: curl/7.19.7 (x86_64-
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Length: 0
< Accept-Ranges: bytes
< Last-Modified: Thu, 26 Dec 2013 17:44:11 GMT
< Etag: d41d8cd98f00b20
< X-Timestamp: 1388079851.42453
< Content-Type: application/
< X-Trans-Id: txe93cb06e47674
< Date: Thu, 26 Dec 2013 17:45:50 GMT
<
* Connection #0 to host localhost left intact
* Closing connection #0
Blueprint information
- Status:
- Not started
- Approver:
- Luis Pabón
- Priority:
- Undefined
- Drafter:
- pushpesh
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
-
Unknown
- Milestone target:
- None
- Started by
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
This is a much needed feature. I'll look into this.