Skip to content

Conversation

@VicDeo
Copy link
Member

@VicDeo VicDeo commented Jan 25, 2019

Description

Return an absolute URL for OCM WebDav discovery endpoint and change the storage to work with absolute discovery URLs

Note: It makes OCM-based sharing in 10.1 incompatible with 10.2+ without patching apps/files_sharing/lib/External/Storage.php

Related Issue

Motivation and Context

To comply with OCM 1.0.0-proposal1 spec

How Has This Been Tested?

open URL owncloud.tld/ocm-provider/

expected

{"enabled":true,"apiVersion":"1.0-proposal1",
"endPoint":"http:\/\/owncloud.tld\/index.php\/apps\/federatedfilesharing",
"shareTypes":[{"name":"file",
"protocols":{"webdav":"http:\/\/owncloud.tld\/public.php\/webdav\/"}}]}

actual

{"enabled":true,"apiVersion":"1.0-proposal1",
"endPoint":"http:\/\/owncloud.tld\/index.php\/apps\/federatedfilesharing",
"shareTypes":[{"name":"file",
"protocols":{"webdav":"\/public.php\/webdav\/"}}]}

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • Backport (if applicable set "backport-request" label and remove when the backport was done)

@VicDeo VicDeo self-assigned this Jan 25, 2019
@PVince81 PVince81 added this to the backlog milestone Feb 8, 2019
@VicDeo VicDeo force-pushed the make-webdavurl-absolute branch from 853dade to a806781 Compare February 28, 2019 16:55
@codecov
Copy link

codecov bot commented Feb 28, 2019

Codecov Report

Merging #34260 into master will decrease coverage by <.01%.
The diff coverage is 41.66%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #34260      +/-   ##
============================================
- Coverage     65.25%   65.25%   -0.01%     
- Complexity    18457    18459       +2     
============================================
  Files          1207     1207              
  Lines         69887    69897      +10     
  Branches       1280     1280              
============================================
+ Hits          45608    45611       +3     
- Misses        23907    23914       +7     
  Partials        372      372
Flag Coverage Δ Complexity Δ
#javascript 53.04% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 66.65% <41.66%> (-0.01%) 18459 <0> (+2)
Impacted Files Coverage Δ Complexity Δ
...eratedfilesharing/lib/Controller/OcmController.php 66.26% <100%> (ø) 30 <0> (ø) ⬇️
apps/files_sharing/lib/External/Storage.php 28.67% <36.36%> (+0.09%) 51 <0> (+2) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update efe7ab7...bd4b5d2. Read the comment docs.

@VicDeo VicDeo force-pushed the make-webdavurl-absolute branch from 17ed741 to bd4b5d2 Compare February 28, 2019 17:41
@owncloud owncloud deleted a comment from codecov bot Feb 28, 2019
@micbar
Copy link
Contributor

micbar commented May 3, 2019

Needs to be tested with federation behind a reverse proxy.

I will take care.

@VicDeo VicDeo changed the title Make webdav URL absolute according to spec [OCM] Make webdav URL absolute according to spec Jun 13, 2019
@DeepDiver1975
Copy link
Member

As discussed in #35777 the master branch will from now on hold the ownCloud 10 codebase.

This PR targetted ownCloud 11 which is postponed to a far distant future.

Because of that I'm closing this PR and kindly ask you to re-submit this PR in a few days.

Thanks a lot for your patience

@VicDeo VicDeo deleted the make-webdavurl-absolute branch August 15, 2019 11:31
@VicDeo
Copy link
Member Author

VicDeo commented Aug 15, 2019

resubmitted as #36043

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OCM Returned endpoint relative

5 participants