Bug #4131
Fix shared listing for implicitly shared objects
Status: | Resolved | Start date: | 07/16/2013 | |
---|---|---|---|---|
Priority: | Medium | Due date: | ||
Assignee: | Sofia Papagiannaki | % Done: | 0% |
|
Category: | Pithos | Spent time: | - | |
Target version: | 0.15 |
Associated revisions
pithos: Fix shared listing for implicitly shared objects
Provide also the appropriate tests
Refs: #4131
pithos: Fix shared listing for implicitly shared objects
Provide also the appropriate tests
Refs: #4131
Conflicts:
snf-pithos-app/pithos/api/test/__init__.py
snf-pithos-app/pithos/api/tests.py
pithos: Fix shared listing for implicitly shared objects
Provide also the appropriate tests
Refs: #4131
History
#1 Updated by Sofia Papagiannaki about 10 years ago
- Category set to Pithos
- Status changed from New to Assigned
- Assignee set to Sofia Papagiannaki
- Target version set to 0.15
The error occurs when listing the shared container objects under another account (shared with me)
with prefix a path that inherits (but not owns) a permission.
To reproduce:
$ kamaki file list pithos -l
f1
by: c18088be-16b1-4263-8180-043c54e22903
bytes: 0
hash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
modified: 2013-07-16T13:33:50.982518+00:00
sharing: read=*
timestamp: 1373981630.98
type: application/directory
uuid: 00ae0fb1-0222-4615-8756-0be2ccfd3f15
version: 103599
f1/f2
by: c18088be-16b1-4263-8180-043c54e22903
bytes: 0
hash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
modified: 2013-07-16T13:33:58.012425+00:00
timestamp: 1373981638.01
type: application/directory
uuid: ad98ed0a-bb2f-4ddd-97e0-d52217eecd51
version: 103600
f1/f2/obj
by: c18088be-16b1-4263-8180-043c54e22903
bytes: 0 (0B)
hash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
modified: 2013-07-16T13:34:23.190812+00:00
timestamp: 1373981663.19
type: application/octet-stream
uuid: 39ada626-578c-48fd-bdcf-169a546a9981
version: 103601
$ kamaki file list pithos --cloud=local2 --account=c18088be-16b1-4263-8180-043c54e22903
D f1/
D f1/f2/
0B f1/f2/obj
$ kamaki file list pithos --cloud=local2 --account=c18088be-16b1-4263-8180-043c54e22903 --prefix=/f1/f2
(403) FORBIDDEN forbidden (Not allowed)
| Check if service is up
| Traceback (most recent call last):
File "/Users/butters/src/synnefo/snf-django-lib/snf_django/lib/api/__init__.py", line 117, in wrapper
response = func(request, *args, **kwargs)
File "/Users/butters/src/synnefo/snf-pithos-app/pithos/api/util.py", line 1098, in wrapper
response = func(request, *args, **kwargs)
File "/Users/butters/src/synnefo/snf-pithos-app/pithos/api/functions.py", line 722, in object_list
raise faults.Forbidden('Not allowed')
Forbidden: ('Not allowed', '', 'forbidden', 403)
#2 Updated by Sofia Papagiannaki about 10 years ago
- Status changed from Assigned to Resolved