Commit Graph

22 Commits

Author SHA1 Message Date
Morris Jobke 035be23f72
Show info in updater if running PHP < 5.6
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-12-06 00:06:16 +01:00
Joas Schilling 875a3f4b28
Use new URL schema
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-10-04 13:02:05 +02:00
Joas Schilling 87cc0231a8
Use the readable version for notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-10-04 12:56:27 +02:00
Lukas Reschke 98df88950f
UpdateState is empty if no update is available
This leads to log messages such as "Undefined index: updaterEnabled at /media/psf/nextcloud/apps/updatenotification/lib/Controller/AdminController.php#116".
2016-09-28 12:30:35 +02:00
Joas Schilling 7d910437fd
Respect updater kill switch and fall back to download button
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-09-27 14:59:23 +02:00
Morris Jobke 341c3567a2
Revert "Fix tests"
This reverts commit a44c1c748c.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2016-09-26 13:47:58 +02:00
Joas Schilling a44c1c748c
Fix tests 2016-09-08 11:14:17 +02:00
Lukas Reschke 436e6c1078
Use MockBuilder instead of createMock
CI uses an older PHPUnit
2016-08-16 21:10:47 +02:00
Lukas Reschke 687f5bee94
Add unit tests 2016-08-16 21:10:41 +02:00
Joas Schilling 23b205ed48
Run the license script 2016-07-22 11:40:41 +02:00
Lukas Reschke aba539703c
Update license headers 2016-05-26 19:57:24 +02:00
Joas Schilling 338106124f
Fix failing update notifications tests 2016-05-25 12:11:51 +02:00
Joas Schilling a1e872aad6
Add a URL to the notifications 2016-05-24 11:26:54 +02:00
Joas Schilling 823e4911c9
Add tests for the Notifier 2016-05-24 11:26:53 +02:00
Joas Schilling 96691138df
Add tests for the background job 2016-05-24 11:26:53 +02:00
Joas Schilling 9ad4a89816
Move comments, systemtags and updatenotifications to PSR-4 2016-05-03 10:20:59 +02:00
Thomas Müller 5c3183cedd
Move version check code out of class Updater 2016-04-18 17:12:59 +02:00
Lukas Reschke 4caa9e18b0 Show version to update to properly
Properly shows the version that will be updated to.
2016-03-05 21:58:58 +01:00
Lukas Reschke e3a0a69c73 Add release channel selection back
Allows to select the release channels again and also shows the last check date
2016-03-04 14:37:35 +01:00
Lukas Reschke 5680743c2b Harden updater authentication
- Reset tokens after 2 hours as discussed at https://github.com/owncloud/updater/issues/220#issuecomment-182033453
- Used BCrypt for storing the password in the config.php. This makes it substantially harder in case of a leakage of the token to bruteforce it. In the future we can evaluate also an HMAC including the IP. That's a bit tricker though at the moment considering that we support reverse proxies. Didn't feel brave enough to touch that dragon now as well ;)
2016-02-10 16:31:11 +01:00
Lukas Reschke b9e3ed1468 Add SSO for updater application
Allows logging-in into the updater application by visiting the admin panel and pressing "Open updater".
2016-02-09 20:28:30 +01:00
Lukas Reschke abc675d87e Move update notification code into app
Moves the update notification code in a single app. This is required since we want to use SSO for the new updater and for this have some code running in ownCloud as well (and we don't want that in core neccessarily). This app can provide that in the future, right now it's only the update notification itself. Will continue working on the SSO right away but wanted to keep the PR small.

Furthermore also makes some more code unit-testable...
2016-02-09 18:05:51 +01:00