An attempt to create a folder in the root causes an infinite loop #616
This commit is contained in:
parent
dc9ce6c312
commit
fdfc9a5f18
@ -108,8 +108,8 @@ libwps-tools gzip unrtf catdvi djview djview3 uuid uuid-dev xz-utils libemail-ou
|
|||||||
|
|
||||||
On CentOS use:
|
On CentOS use:
|
||||||
```
|
```
|
||||||
sudo yum install xapian-binding libxapian-dev xpdf poppler-utils antiword unzip catdoc libwpd-tools libwps-tools gzip \
|
sudo yum install xapian-core xapian-bindings-ruby libxapian-dev xpdf poppler-utils antiword unzip catdoc libwpd-tools \
|
||||||
unrtf catdvi djview djview3 uuid uuid-dev xz libemail-outlook-message-perl
|
libwps-tools gzip unrtf catdvi djview djview3 uuid uuid-dev xz libemail-outlook-message-perl
|
||||||
```
|
```
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
|
|||||||
@ -98,6 +98,11 @@ module RedmineDmsf
|
|||||||
OK
|
OK
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def make_collection
|
||||||
|
# It's not allowed to create folders on project level
|
||||||
|
MethodNotAllowed
|
||||||
|
end
|
||||||
|
|
||||||
def folder
|
def folder
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|||||||
@ -54,7 +54,7 @@ class DmsfWebdavMkcolTest < RedmineDmsf::Test::IntegrationTest
|
|||||||
|
|
||||||
def test_mkcol_fails_to_create_folder_at_root_level
|
def test_mkcol_fails_to_create_folder_at_root_level
|
||||||
xml_http_request :mkcol, '/dmsf/webdav/test1', nil, @admin
|
xml_http_request :mkcol, '/dmsf/webdav/test1', nil, @admin
|
||||||
assert_response :error # 501 - Not Implemented at this level
|
assert_response 405 # 405 - Method Not Allowed
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_should_not_succeed_on_a_non_existant_project
|
def test_should_not_succeed_on_a_non_existant_project
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user