Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #26869 honor overwritewebroot and PATH_INFO #26882

wants to merge 2 commits into from


Copy link

@aheusingfeld aheusingfeld commented Dec 28, 2016


Fixes #26869: honor overwritewebroot config property and PATH_INFO in request handling so that owncloud can be run under a contextroot such as /owncloud or /cloud

Related Issue


Motivation and Context

see description.

How Has This Been Tested?

Please check the description and comments in #26869. I applied these changes to my owncloud 9.1 + nginx 1.10 installation in order to make it work under a contextroot of /cloud -> I tested this change on a production installation.

As my PHP is rather rusty and I'm not too familiar with how owncloud is tested, I didn't adjust though this is definitely necessary as I couldn't spot any tests with a contextroot!

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)


  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

I will send another pull-request with an update to so that other users don't have to read #26869 but can get the necessary information there.

Fixes owncloud#26869: honor overwritewebroot config property and PATH_INFO in request handling so that owncloud can be run under a contextroot such as /owncloud or /cloud
Copy link

@aheusingfeld, thanks for your PR! By analyzing the history of the files in this pull request, we identified @DeepDiver1975, @tanghus and @bartv2 to be potential reviewers.

Copy link

CLAassistant commented Dec 28, 2016

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

Alexander Heusingfeld seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

Hey there, any feedback is highly appreciated.

Copy link

PVince81 commented Jan 9, 2017

@DeepDiver1975 please review, this is very-core stuff

@PVince81 PVince81 added this to the 10.0 milestone Jan 9, 2017
Copy link

What could possible go wrong 😉

Copy link

ghost commented Jan 31, 2017

What could possible go wrong

It seems the PATH_INFO stuff needs to be handled with care. In NC they have even removed the PATH_INFO stuff in that file: nextcloud/server#984 as it caused constant page refresh like also reported in core: #27053

Copy link

@DeepDiver1975 @butonic @phisch @IljaN can we get this in ?

Copy link

@DeepDiver1975 @butonic @phisch ping

@PVince81 PVince81 modified the milestones: 10.0.1, 10.0 Apr 26, 2017
@PVince81 PVince81 modified the milestones: 10.0.2, 10.0.1 May 17, 2017
@PVince81 PVince81 modified the milestones: 10.0.2, 10.0.3 May 26, 2017
@PVince81 PVince81 modified the milestones: triage, development Aug 7, 2017
@PVince81 PVince81 removed this from the triage milestone May 22, 2018
Copy link

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

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

Successfully merging this pull request may close these issues.

Help needed: owncloud 9.1.3 creates redirects without index.php (after upgrade from 8.1) on nginx+subdir
6 participants