Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
9b71ee27
Commit
9b71ee27
authored
8 years ago
by
Roeland Jago Douma
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2727 from nextcloud/fix-colon-issue
[downstream] Fix colon issue
parents
4f79d2ff
ad725de9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
3rdparty
+1
-1
1 addition, 1 deletion
3rdparty
build/integration/features/bootstrap/WebDav.php
+9
-0
9 additions, 0 deletions
build/integration/features/bootstrap/WebDav.php
build/integration/features/webdav-related.feature
+16
-0
16 additions, 0 deletions
build/integration/features/webdav-related.feature
with
26 additions
and
1 deletion
3rdparty
@
32f3284a
Compare
f2974c2e
...
32f3284a
Subproject commit
f2974c2e72b2ad5ab7ae745936c4d866405d2b61
Subproject commit
32f3284a5ca0e372baaf458dc22aed89e257178a
This diff is collapsed.
Click to expand it.
build/integration/features/bootstrap/WebDav.php
+
9
−
0
View file @
9b71ee27
...
...
@@ -31,6 +31,7 @@
use
GuzzleHttp\Client
as
GClient
;
use
GuzzleHttp\Message\ResponseInterface
;
use
Sabre\DAV\Client
as
SClient
;
use
Sabre\DAV\Xml\Property\ResourceType
;
require
__DIR__
.
'/../../vendor/autoload.php'
;
...
...
@@ -328,6 +329,14 @@ trait WebDav {
}
$value
=
$keys
[
$key
];
if
(
$value
instanceof
ResourceType
)
{
$value
=
$value
->
getValue
();
if
(
empty
(
$value
))
{
$value
=
''
;
}
else
{
$value
=
$value
[
0
];
}
}
if
(
$value
!=
$expectedValue
)
{
throw
new
\Exception
(
"Property
\"
$key
\"
found with value
\"
$value
\"
, expected
\"
$expectedValue
\"
"
);
}
...
...
This diff is collapsed.
Click to expand it.
build/integration/features/webdav-related.feature
+
16
−
0
View file @
9b71ee27
...
...
@@ -447,3 +447,19 @@ Feature: webdav-related
And
As an
"user1"
When
User
"user1"
deletes file
"/testfolder/asdf.txt"
Then
the HTTP status code should be
"204"
Scenario
:
Creating a folder
Given
using old dav path
And
user
"user0"
exists
And
user
"user0"
created a folder
"/test_folder"
When
as
"user0"
gets properties of folder
"/test_folder"
with
|
{DAV:}resourcetype
|
Then
the
single
response
should
contain
a
property
"{DAV:}resourcetype"
with
value
"{DAV:}collection"
Scenario
:
Creating a folder with special chars
Given
using old dav path
And
user
"user0"
exists
And user "user0" created a folder "/test_folder
:
5"
When as "user0" gets properties of folder "/test_folder
:
5"
with
|
{DAV:}resourcetype
|
Then
the
single
response
should
contain
a
property
"{DAV:}resourcetype"
with
value
"{DAV:}collection"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment