Bug #3780

set permissions to a public object results to a non public object

Added by Sofia Papagiannaki about 11 years ago. Updated about 11 years ago.

Status:Closed Start date:05/21/2013
Priority:Medium Due date:05/21/2013
Assignee:Stavros Sachtouris % Done:

100%

Category:kamaki Spent time: 0.50 hour
Target version:v0.9 Estimated time:0.50 hour

Description

The following scenario reproduces the problematic bahavior:

$ kamaki file info pithos:test.py
cache-control : no-cache, no-store, must-revalidate, max-age=0
content-language : en-us
content-length : 663
content-type : text/plain; charset=UTF-8
date : Tue, 21 May 2013 13:28:16 GMT
etag :
expires : Tue, 21 May 2013 13:28:16 GMT
last-modified : Tue, 21 May 2013 13:27:56 GMT
server : WSGIServer/0.1 Python/2.6.8
vary : X-Auth-Token, Accept-Language
x-object-hash : b6a5f3b9abe649315f7efc8ac73090cf4b061c0b2444738af6205fd53de3b68d
x-object-modified-by : test
x-object-public : /public/MUy2AjELAkEAbrvAurMwt5
x-object-uuid : 8be51d59-bbc8-4d20-b38d-b4f23afc57ba
x-object-version : 46571
x-object-version-timestamp: Tue, 21 May 2013 13:27:56 GMT
$ kamaki file setpermissions pithos:test.py read=* -v

GET http://localhost:8080/im/authenticate [<kamaki.clients.RequestManager object at 0x1007804d0>]
data size:0 [<kamaki.clients.RequestManager object at 0x1007804d0>]

<
<kamaki.clients.ResponseManager object at 0x101685f10> <-- <httplib.HTTPResponse instance at 0x10168a7a0> <-- [req: <kamaki.clients.RequestManager object at 0x1007804d0>]

< 200 OK [p: <kamaki.clients.ResponseManager object at 0x101685f10>]
< content-length: 241 [p: <kamaki.clients.ResponseManager object at 0x101685f10>]
< content-language: en-us [p: <kamaki.clients.ResponseManager object at 0x101685f10>]
< expires: Tue, 21 May 2013 13:28:54 GMT [p: <kamaki.clients.ResponseManager object at 0x101685f10>]
< vary: X-Auth-Token, Accept-Language [p: <kamaki.clients.ResponseManager object at 0x101685f10>]
< server: WSGIServer/0.1 Python/2.6.8 [p: <kamaki.clients.ResponseManager object at 0x101685f10>]
< last-modified: Tue, 21 May 2013 13:28:54 GMT [p: <kamaki.clients.ResponseManager object at 0x101685f10>]
< etag: "f7429b0f770fe18dc9348a1ed022988c" [p: <kamaki.clients.ResponseManager object at 0x101685f10>]
< cache-control: no-cache, no-store, must-revalidate, max-age=0 [p: <kamaki.clients.ResponseManager object at 0x101685f10>]
< date: Tue, 21 May 2013 13:28:54 GMT [p: <kamaki.clients.ResponseManager object at 0x101685f10>]
< content-type: application/json; charset=UTF-8 [p: <kamaki.clients.ResponseManager object at 0x101685f10>]
< data size: 241 [p: <kamaki.clients.ResponseManager object at 0x101685f10>]

POST http://localhost:8000/v1/test/pithos/test.py?update&format=json [<kamaki.clients.RequestManager object at 0x1007804d0>]
X-Object-Sharing: read=* [<kamaki.clients.RequestManager object at 0x1007804d0>]
X-Object-Public: False [<kamaki.clients.RequestManager object at 0x1007804d0>]
data size:0 [<kamaki.clients.RequestManager object at 0x1007804d0>]

<
<kamaki.clients.ResponseManager object at 0x101685990> <-- <httplib.HTTPResponse instance at 0x10168a8c0> <-- [req: <kamaki.clients.RequestManager object at 0x1007804d0>]

< 202 ACCEPTED [p: <kamaki.clients.ResponseManager object at 0x101685990>]
< content-length: 0 [p: <kamaki.clients.ResponseManager object at 0x101685990>]
< content-language: en-us [p: <kamaki.clients.ResponseManager object at 0x101685990>]
< expires: Tue, 21 May 2013 13:28:54 GMT [p: <kamaki.clients.ResponseManager object at 0x101685990>]
< vary: X-Auth-Token, Accept-Language [p: <kamaki.clients.ResponseManager object at 0x101685990>]
< server: WSGIServer/0.1 Python/2.6.8 [p: <kamaki.clients.ResponseManager object at 0x101685990>]
< last-modified: Tue, 21 May 2013 13:28:54 GMT [p: <kamaki.clients.ResponseManager object at 0x101685990>]
< etag: "d41d8cd98f00b204e9800998ecf8427e" [p: <kamaki.clients.ResponseManager object at 0x101685990>]
< cache-control: no-cache, no-store, must-revalidate, max-age=0 [p: <kamaki.clients.ResponseManager object at 0x101685990>]
< date: Tue, 21 May 2013 13:28:54 GMT [p: <kamaki.clients.ResponseManager object at 0x101685990>]
< content-type: application/json; charset=UTF-8 [p: <kamaki.clients.ResponseManager object at 0x101685990>]
< data size: 0 [p: <kamaki.clients.ResponseManager object at 0x101685990>]
$

Associated revisions

Revision 6aadd6e1
Added by Stavros Sachtouris about 11 years ago

Do not unpublish by default @ pithos rest calls

Refs: #3780

History

#1 Updated by Stavros Sachtouris about 11 years ago

  • Target version set to v0.9

#2 Updated by Stavros Sachtouris about 11 years ago

  • Due date set to 05/21/2013
  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Estimated time set to 0.50

#3 Updated by Stavros Sachtouris about 11 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF