Commit 8de0c43
webdav: return 403 on unauthorized attempt to rename resource
Motivation:
-----------
WebDAV returns 500 on unauthorized attempt to rename
resource, like so:
Internal problem: CacheException(rc=10018;msg=Restriction Restrict[MANAGE,UPLOAD,DELETE,UPDATE_METADATA,STAGE] denied activity MANAGE on ...)
Modification:
------------
Handle CacheException in dCacheResource.moveTo method
Result:
-------
Return 403 on unauthorized attempt to rename resource, like so:
Ticket: #7879
Target: trunk
Request: 11.1, 11.0, 10.2
Acked-by: Tigran
Require-book: no
Require-notes: yes1 parent f9747cd commit 8de0c43
1 file changed
Lines changed: 5 additions & 2 deletions
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | | - | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | | - | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| |||
0 commit comments