Skip to content

Conversation

@georgehrke
Copy link
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
Copy link
Member Author

georgehrke commented Jun 8, 2017

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
@georgehrke georgehrke force-pushed the bugfix/4885/calendar_shares_url_special_char_issue branch from a699259 to 35781ae Compare June 12, 2017 19:01
@codecov
Copy link

codecov bot commented Jun 12, 2017

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 Files Coverage Δ Complexity Δ
apps/dav/lib/CardDAV/CardDavBackend.php 0% <0%> (-85.69%) 88 <0> (ø)
apps/dav/lib/CalDAV/CalDavBackend.php 0% <0%> (-86.01%) 218 <0> (ø)
apps/files_sharing/lib/AppInfo/Application.php 0% <0%> (-100%) 3% <0%> (-1%)
lib/private/Files/Mount/CacheMountProvider.php 0% <0%> (-100%) 4% <0%> (ø)
lib/private/TagManager.php 0% <0%> (-100%) 4% <0%> (ø)
lib/public/Comments/CommentsEvent.php 0% <0%> (-100%) 3% <0%> (ø)
lib/private/DB/OCSqlitePlatform.php 0% <0%> (-100%) 5% <0%> (ø)
lib/private/Files/Mount/LocalHomeMountProvider.php 0% <0%> (-100%) 1% <0%> (ø)
apps/user_ldap/lib/Mapping/UserMapping.php 0% <0%> (-100%) 1% <0%> (ø)
apps/user_ldap/lib/Migration/UUIDFixUser.php 0% <0%> (-100%) 1% <0%> (ø)
... and 368 more

@georgehrke
Copy link
Member Author

Fixed the tests

@nickvergessen
Copy link
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 master Jun 15, 2017
@MorrisJobke MorrisJobke deleted the bugfix/4885/calendar_shares_url_special_char_issue branch June 15, 2017 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting 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