-
Notifications
You must be signed in to change notification settings - Fork 39
Refinements #32
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
Refinements #32
Conversation
|
How to test:
|
|
Also closing the browser should work fine. The only disadvantage then is that you need to generate a new secret and write it to the config.php, because that was done by the "Open updater" button logic and was newer shown to the user. The updater then resumes at the step that was finished before. |
|
The last commit addresses nextcloud/server#660 😉 |
|
|
||
| /** @var array $CONFIG */ | ||
| $configFileName = __DIR__ . '/../config/config.php'; | ||
| require $configFileName; |
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.
Add a check if the config file really exists, doesn't have to be the case with NEXTCLOUD_CONFIG_DIR.
| $charactersLength = strlen($characters); | ||
| $randomString = ''; | ||
| for ($i = 0; $i < 10; $i++) { | ||
| $randomString .= $characters[rand(0, $charactersLength - 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.
I don't want people complaining about that. Can we just use http://php.net/manual/en/function.random-int.php?
Also you might want to add $_SERVER['UNIQUE_ID'] which is used by http://httpd.apache.org/docs/current/mod/mod_unique_id.html
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.
It's for making the log more readable.
index.php
Outdated
| } else { | ||
| text = 'The following extra files have been found:<ul>'; | ||
| response['response'].forEach(function(file) { | ||
| text += '<li>' + file + '</li>'; |
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.
Also worth escaping.
index.php
Outdated
| text += '</ul>'; | ||
| var text = ''; | ||
| if (typeof response['response'] === 'string') { | ||
| text = response['response']; |
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.
Let's escape that.
index.php
Outdated
| } else { | ||
| text = 'The following places can not be written to:<ul>'; | ||
| response['response'].forEach(function(file) { | ||
| text += '<li>' + file + '</li>'; |
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.
Should be escaped.
index.php
Outdated
| text += '</ul>'; | ||
| var text = ''; | ||
| if (typeof response['response'] === 'string') { | ||
| text = response['response']; |
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.
Should be escaped.
|
@LukasReschke I addressed your comments |
|
Thanks, @MorrisJobke :) |
|
Together with nextcloud/server#1499 (and it's backports) this is what we need for our updater to work flawlessly - cc @nickvergessen @LukasReschke |
|
Tested:
Expected: List of additional files should be empty Same "error" happens with "check write permissions". |
|
Other then that it worked fine. |
|
👍 |
Good point. This should usually not be possible or otherwise better clear the current state of the UI. |
Fixed.
I fixed this properly. There is now a "Retry" button, that removes the warning of the last step and reruns it. The buttons are only shown, when they are actually needed. |
|
@LukasReschke @nickvergessen Could you have a look at the latest changes? thanks |
|
I just tested it with an 9.0.53 and this updater on IE11 and it works there fine too. |
|
🎉 |
|
RCs with the updater are built and available at: => https://download.nextcloud.com/server/prereleases/nextcloud-10.0.1RC2.tar.bz2 |
|
Upgraded my instance to the 10.0.1RC2, worked fine. |
cc @LukasReschke @nickvergessen