Skip to content

urldecode group principals in Cal- and CardDAV backend - #5298

Merged
MorrisJobke merged 1 commit into
masterfrom
bugfix/4885/calendar_shares_url_special_char_issue
Jun 15, 2017
Merged

urldecode group principals in Cal- and CardDAV backend#5298
MorrisJobke merged 1 commit into
masterfrom
bugfix/4885/calendar_shares_url_special_char_issue

Conversation

@georgehrke

Copy link
Copy Markdown
Member

fixes#4885

before:

array(4) {
["admin"]=>
string(23) "principals/groups/admin"
["x y"]=>
string(21) "principals/groups/x+y"
["x&y"]=>
string(23) "principals/groups/x%26y"
["x/y"]=>
string(23) "principals/groups/x%2Fy"
}

after:

array(4) {
["admin"]=>
string(23) "principals/groups/admin"
["x y"]=>
string(21) "principals/groups/x y"
["x&y"]=>
string(21) "principals/groups/x&y"
["x/y"]=>
string(21) "principals/groups/x/y"
}

There are absolutely no group-share related tests neither the Cal- nor the CardDav backend tests ...
We should maybe add them sometime soonish

@georgehrke

georgehrke commented Jun 8, 2017

Copy link
Copy Markdown
MemberAuthor

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
@georgehrke
georgehrkeforce-pushed the bugfix/4885/calendar_shares_url_special_char_issue branch from a699259 to 35781aeCompareJune 12, 2017 19:01
@codecov

codecovBot commented Jun 12, 2017

Copy link
Copy Markdown

Codecov Report

Merging #5298 into master will decrease coverage by 22.87%.
The diff coverage is 0%.

@@ Coverage Diff @@## master #5298 +/- ##
=============================================
- Coverage 54.15% 31.28% -22.88% + Complexity 22317 22316 -1 
=============================================
Files 1380 1380 Lines 85432 84822 -610 Branches 1321 1321 =============================================
- Hits 46264 26533 -19731 - Misses 39168 58289 +19121
Impacted FilesCoverage ΔComplexity Δ
apps/dav/lib/CardDAV/CardDavBackend.php0% <0%> (-85.69%)88 <0> (ø)
apps/dav/lib/CalDAV/CalDavBackend.php0% <0%> (-86.01%)218 <0> (ø)
apps/files_sharing/lib/AppInfo/Application.php0% <0%> (-100%)3% <0%> (-1%)
lib/private/Files/Mount/CacheMountProvider.php0% <0%> (-100%)4% <0%> (ø)
lib/private/TagManager.php0% <0%> (-100%)4% <0%> (ø)
lib/public/Comments/CommentsEvent.php0% <0%> (-100%)3% <0%> (ø)
lib/private/DB/OCSqlitePlatform.php0% <0%> (-100%)5% <0%> (ø)
lib/private/Files/Mount/LocalHomeMountProvider.php0% <0%> (-100%)1% <0%> (ø)
apps/user_ldap/lib/Mapping/UserMapping.php0% <0%> (-100%)1% <0%> (ø)
apps/user_ldap/lib/Migration/UUIDFixUser.php0% <0%> (-100%)1% <0%> (ø)
... and 368 more

@georgehrke

Copy link
Copy Markdown
MemberAuthor

Fixed the tests

@nickvergessen

Copy link
Copy Markdown
Member

Technically speaking there was an evil mistake in there, when you have two groups with the same name apart from space vs. plus. If you shared something with space, plus had access.

@MorrisJobke
MorrisJobke merged commit ca3c69c into masterJun 15, 2017
@MorrisJobke
MorrisJobke deleted the bugfix/4885/calendar_shares_url_special_char_issue branch June 15, 2017 04:10
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nextcloud 12: cannot share calendar with a group with "&" in its name

3 participants

@georgehrke@nickvergessen@MorrisJobke