-
Notifications
You must be signed in to change notification settings - Fork 2.1k
occ web executor #24957
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
occ web executor #24957
Conversation
|
Nice! Go for it! |
|
Reminder: Maybe also a check in core if web access to occ is possible and log this - else we never find why it is not working... Possible changes needed:
|
|
Woot index.php/occ is called, not the occ file directly? |
Probably because the ajax request needs to be translated to actual arguments. |
Well you shouldn't call it directly, because it's a bash file ;) But that is exactly what I wanted to point out. The occ file is still not needed to be accessible, so why should any rewrite rule require changing? |
|
@nickvergessen you are right. |
|
@VicDeo what's the status with this? THX |
|
Code already looks good so far |
| 'app:getpath', | ||
| 'app:list', | ||
| 'check', | ||
| 'config:list', |
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.
can we check on the parameters? --private should not be allowed, because otherwise you can get the plaintext database, mail and other passwords.
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.
@nickvergessen --private is required to read updater.secret see owncloud/updater#233
|
@PVince81 The last step is
|
|
@VicDeo when you change labels please post a comment. Changing labels doesn't trigger a github notification. So this is ready for review ? |
core/Controller/OccController.php
Outdated
| 'upgrade' | ||
| ]; | ||
|
|
||
| public function __construct($appName, IRequest $request) { |
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.
just leave this out?
|
@nickvergessen thanks, everything's addressed |
84a883b to
8f73e7b
Compare
|
OccController has no unit tests - this has to be added please |
|
@DeepDiver1975 done |
|
@VicDeo integration tests look fishy - please have a look |
| private $controller; | ||
|
|
||
| public static function setUpBeforeClass(){ | ||
| self::$oldSecret = \OC::$server->getConfig()->setSystemValue('updater.secret', ''); |
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.
@VicDeo please inject an instance of IConfig into the OccController and mock this onject for testing. THX
1b4de3b to
c93a38e
Compare
Fix broken integration test OccControllerTests do not require database access - moch them all! Kill unused sprintf
c93a38e to
ab477f9
Compare
| ->willReturnCallback( | ||
| function ($input, $output) { | ||
| /** @var Output $output */ | ||
| $output->writeln('{"installed":true,"version":"9.1.0.8","versionstring":"9.1.0 beta 2","edition":""}'); |
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.
@DeepDiver1975 I didn't go this way because it requires adjustment with any version bump.
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.
Not really relevant because we don't assert on the version.
|
👍 |
* Initial web executor * Fix PHPDoc Fix broken integration test OccControllerTests do not require database access - moch them all! Kill unused sprintf
|
stable9: #25222 |
* Initial web executor * Fix PHPDoc Fix broken integration test OccControllerTests do not require database access - moch them all! Kill unused sprintf
* Initial web executor * Fix PHPDoc Fix broken integration test OccControllerTests do not require database access - moch them all! Kill unused sprintf
|
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. |
As per #21985