Bypass upgrade page when occ controller is requested#25356
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.
shouldn't occ be part of the regexp?
There was a problem hiding this comment.
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