Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-09-29Don't hold ref to value returned from function.Harald Eilertsen
Signed-off-by: Harald Eilertsen <haraldei@anduin.net>
2020-09-29gui/accountstate: Replace foreach (#2219)Harald Eilertsen
Most instances have been converted to range based for, but std::find_if has been used where it made sense. Signed-off-by: Harald Eilertsen <haraldei@anduin.net>
2020-08-04Remove extra check for talk app on server in AccountState.Camila
- Remove repeated hard coded "spreed" string. Signed-off-by: Camila <hello@camila.codes>
2020-05-25Use = default for trivial ctors and dtorsKevin Ottens
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-05-20Use auto to avoiding repeating type namesKevin Ottens
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-02-14Add UserInfo class and fetch quota via API instead of PropfindJobMichael Schuster
The PropfindJob quota includes the size of shares and thus leads to confusion in regard of the real space available, as shown in the UI. This commit aims to streamline the behaviour with the Android and iOS apps, which also utilize the API. Details: - Refactor the QuotaInfo class into UserInfo - Use JsonApiJob (ocs/v1.php/cloud/user) instead of PropfindJob - Let ConnectionValidator use the new UserInfo class to fetch the user and the avatar image (to avoid code duplication) - Allow updating the avatar image upon AccountSettings visibility, using UserInfo's quota fetching Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-01-17AccountState: Add helper to find navigation AppMichael Schuster
Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-01-17Notifications bug fix: Don't init ETag response header with *Michael Schuster
Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-01-15Remove debug outputMichael Schuster
Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-01-15Remove setTalkCapability() from AccountState and filter for Talk upon App ↵Michael Schuster
list building Since the per Account App list is now being built in AccountState's slotNavigationAppsFetched it's easy to filter for the availability of the Talk app on the server by its ID property upon App list building, thus eliminating the need for an extra fetch job. Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-01-15Fetch server Apps in AccountState (moved from ownCloudGui)Michael Schuster
- Add a new class AccountApp to keep them in an AccountAppList and also save properties like ID and Icon URL. - Clear the app list upon re-fetch to avoid endlessly growing lists like in the previous implementation in ownCloudGui. Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-01-03Gigantic ton of changes and deletions: ActivityListModel, tray GUI, Account ↵Dominique Fuchs
logic. Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
2019-10-17Once client gets 401/403 from the server, check if remote wipe was requested.Camila San
- When the the users logs because of 401 or 403 errors, it checks if the server requested the remote wipe. If yes, locally deletes account and folders connected to the account and notify the server. If no, proceeds to ask the user to login again. - The app password is restored in the keychain. - WIP: The change also includes a test class for RemoteWipe. Signed-off-by: Camila San <hello@camila.codes>
2018-11-11GUI: run clang-tidy modernize-use-nullptrJ-P Nurmi
2018-09-09OAuth2: Try to refresh the token even if the credentials weren't ready.Olivier Goffart
This can happen when the client is started and the internet connection was not enabled. Then we would fetch the credentials, but we would no do the refresh token step (because network is down). So next time we try to connect, we would also not refresh the token because the credentials are not marked as 'ready' Reported in https://github.com/owncloud/client/issues/6522#issuecomment-396845167
2018-07-02gui Q_UNUSEDRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-06-06Use std::chrono::milliseconds to represent millisecondsOlivier Goffart
2018-05-31ConnectionValidator::Status use Q_ENUMOlivier Goffart
So no need to have a manual conversion to QString This is only used in debug message anyway.
2018-05-07Adds methods to set/get navigation apps etag response header.Camila San
Signed-off-by: Camila San <hello@camila.codes>
2018-04-10Merge branch 'master' into clientSideEncryptionV4Tomaz Canabrava
2018-03-02Saves notifications ETag response header to use to request only new ↵Camila San
notifications. Signed-off-by: Camila San <hello@camila.codes>
2018-01-29Merge branch 'master' into clientSideEncryptionV3Tomaz Canabrava
2018-01-04Proxy: Hostname validation and reconnection on setting changeChristian Kamm
Where 'validation' currently just means "check whether it's empty". Code adapted from wiggiBe's original PR #6140
2017-12-28Prepend "nextcloud" for all logging categoriesDaniel Nicoletti
Thus making easier to exclude logging from kio, qt and only enable "nextcloud.*"
2017-10-06Use display-name from the ocs call in the settings dialogThomas Müller
2017-09-21Port to new signal-slot syntax what cannot be done automaticallyOlivier Goffart
Some slot were protected or private but needed to be public. Some needed a static_cast (can't use qOverload because it is in Qt 5.7) This is not only a partial change.
2017-09-21Use the Qt5 connection syntax (automated with clazy)Olivier Goffart
This is motivated by the fact that QMetaObject::noralizeSignature takes 7.35% CPU of the LargeSyncBench. (Mostly from ABstractNetworkJob::setupConnections and PropagateUploadFileV1::startNextChunk). It could be fixed by using normalized signature in the connection statement, but i tought it was a good oportunity to modernize the code. This commit only contains calls that were automatically converted with clazy.
2017-09-05Move Utility to a new common static libraryJocelyn Turcotte
Now that csync builds as C++, this will avoid having to implement functionalities needed by csync mandatorily in csync itself. This library is built as part of libocsync and symbols exported through it. This requires a relicense of Utility as LGPL. All classes moved into this library from src/libsync will need to be relicensed as well.
2017-07-26AccountState: reset _waitingForNewCredentials when signin inOlivier Goffart
Just to force the logic to re-ask the credenticals, in case we were already asking them when singin off. Issue: https://github.com/owncloud/client/issues/5893#issuecomment-316949686
2017-07-25OAuth: Fix refresh of token after expirationOlivier Goffart
Before commit d3b00532b1dd9f44cc606e6738b53345c37582cf, fetchFromKeychain was called everytime we detect that the creds are invalid (in AccountState::slotInvalidCredentials) But since that commit, AccountState was calling askFromUser directly, breaking the refresh of the token. So I made sure AccountState::slotInvalidCredentials still calls refreshAccessToken. Another change that was made was too be sure to clear the cookies in HttpCredentials::invalidateToken even when we are only clearing the access_token. That's because the session with a cookie may stay valid longer than the access_token
2017-07-13OAuth2: Have a link to the browser in the owncloud UIOlivier Goffart
When the browser is open, ad a link in the ui to re-open the browser. Issue #5893
2017-07-04AccountState: Add a 1-5min reconnection delay #5872Christian Kamm
This only applies when the server was explicitly in maintenance mode or when it was 503-unavailable.
2017-05-29Don't call QElapsedTimer::restart on uninitialized timerOlivier Goffart
That's an undefined behavior. Since we don't use the return value anyway, we should just use start()
2017-05-22Credentials: Simplify credential flow #5728Christian Kamm
And as a side effect: don't ask for user password when we can't connect to the server in the first place.
2017-05-17Apply clang-formatChristian Kamm
2017-05-11Upgrade some qCDebug to qCInfo or qCWarningJocelyn Turcotte
Use qCInfo for anything that has general value for support and development. Use qCWarning for any recoverable error and qCCritical for anything that could result in data loss or would identify a serious issue with the code. Issue #5647
2017-05-11Use Qt logging categories for loggingJocelyn Turcotte
This gives more insight about the logs and allow setting fine-tuned logging rules. The categories are set to only output Info by default so this allows us to provide more concise logging while keeping the ability to extract more information for a specific category when developping or debugging customer issues. Issue #5647
2017-05-11Detect maintenance mode #4485Christian Kamm
When we first detect a 503 (probably from a PROPFIND) and enter the ServiceUnavailable state, we new trigger a status.php query that will switch the state to MaintenanceMode if necessary.
2017-03-28AccountState: Attempt to fix a crashOlivier Goffart
Backtrace from the crash reporter: Crash: EXCEPTION_ACCESS_VIOLATION_READ at 0x21 File "qcoreapplication.cpp", line 1281, in QCoreApplication::postEvent File "qobject.cpp", line 2125, in QObject::deleteLater File "connectionvalidator.cpp", line 240, in OCC::ConnectionValidator::reportResult File "connectionvalidator.cpp", line 206, in OCC::ConnectionValidator::slotAuthFailed File "moc_connectionvalidator.cpp", line 127, in OCC::ConnectionValidator::qt_static_metacall File "qobject.cpp", line 3716, in QMetaObject::activate File "moc_networkjobs.cpp", line 653, in OCC::PropfindJob::finishedWithError File "networkjobs.cpp", line 570, in OCC::PropfindJob::finished I believe the problem is caused because 'this' was deleted in ConnectionValidator::reportResult as the signal connectionResult gets emited. The AccountState::slotConnectionValidatorResult slot does indeed call slotInvalidCredentials which might call {Shibboleth,Http}Credentials::fetchFromKeychain which might emit fetched directly, which will call AccountState::slotCredentialsFetched which deletes the _connectionValidator So use deleteLater when deleting the _connectionValidator, hoping this helps
2016-11-18Merge pull request #5272 from owncloud/licensefix-pendingckamm
License: Adjust license of GPLv2 source files to GPLv2+
2016-10-25Move concatUrl and settingsWithGroup to UtilityChristian Kamm
There was little reason to keep them cluttering Account.
2016-10-25License: Adjust license of GPLv2 source files to GPLv2+Christian Kamm
See #5180
2016-05-31QNAM: Try to workaround missing Qt patches #4720 #3888 #4051Markus Goetz
We try this on all platforms now so we have more consistent behaviour.
2016-05-30Connectivity: Delete job on timeout #4275Markus Goetz
This was not done if there was no reply
2016-05-03[osx] Fix missing overlay icons on client startupJocelyn Turcotte
Since the statuses are cached and that we can't invalidate the cache, sending NOP would need to be overwritten by the default OK status once the client successfully connected. But instead of remembering which files we NOPed, rather wait until we are ready to sync before sending the REGISTER_PATH message to the socket API client. It will also prevent the client from sending unnecessary RETRIEVE_FILE_STATUS requests. Also remove AccountState::canSync, since it does the same as isConnected and syncing is not an account responsibility.
2016-03-01AccountState: Allow storing state in settingsChristian Kamm
This will be useful if we ever want to store account-level gui state. I built this originally because I thought a paused account would be this kind of state.
2016-03-01Add 'pause all' tray menu entry #3829Christian Kamm
2016-01-22Bring back the automatic authentication popupsJocelyn Turcotte
Users have complained that they don't see the notification when it is shown and are not aware that their files aren't syncing. Remove the non-interactive credentials fetch logic and add make sure that the shibboleth popup will flash in the taskbar instead. This will still not allow the popup to show in front in all cases, but this is a compromise that we have to chose. This reverts commit dcb687929f1323e9fea8a9e4bd48cdd3fa8312d9. Issue https://github.com/owncloud/enterprise/issues/990
2015-12-10Log: Remove scary messages :)Christian Kamm
2015-12-09Creds: Forget password on explicit sign-out #4241Christian Kamm