-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Bypass upgrade page when occ controller is requested #25356
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
Conversation
|
@VicDeo, thanks for your PR! By analyzing the annotation information on this pull request, we identified @LukasReschke, @icewind1991 and @DeepDiver1975 to be potential reviewers |
|
@VicDeo how come this worked on 9.1 but not 9.0 ? Did we miss a backport or is this piece of code different ? |
|
Ah I see, was broken on master too. |
|
|
||
| $request = \OC::$server->getRequest(); | ||
| // Check if requested URL matches 'index.php/occ' | ||
| $isOccControllerRequested = preg_match('|/index\.php$|', $request->getScriptName()) === 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't occ be part of the regexp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
never mind, I jsut saw "getScriptName" vs "getPathInfo"
|
I was on a stable9-related branch then switched to this one. An update is due. I opened http://localhost/owncloud/index.php/occ/upgrade in the web browser but am getting an error page "Internal Server Error" @VicDeo Which method to use for that URL ? |
|
Steps:
Getting the error from above. |
|
Tested, works 👍 |
|
Second review please @DeepDiver1975 @georgehrke |
|
👍 |
|
@VicDeo please submit the backport PR for stable9. |
Yes |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Request to
domain.tld/index.php/occ/upgraderespond with apending upgradepage otherwiseTo test:
version.phpor any app versiondomain.tld/index.php/occ/upgradeExpected: Response is json with the respective command result
Actual: Response is
Your ownCloud is going to be upgradedHTML page