nextcloud-desktop.git
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 10 Jan 2020 03:27:02 +0000 (03:27 +0000)]
[tx-robot] updated from transifex

6 years agoAsk for password on password protected link shares
Roeland Jago Douma [Thu, 9 Jan 2020 14:10:01 +0000 (15:10 +0100)]
Ask for password on password protected link shares

Fixes #1485

This was missed when creating the new share dialog.
Now it pops up with a nice share password dialog to enter for your link
share.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 9 Jan 2020 04:16:12 +0000 (04:16 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 8 Jan 2020 04:16:49 +0000 (04:16 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 7 Jan 2020 04:17:27 +0000 (04:17 +0000)]
[tx-robot] updated from transifex

6 years agoUpdated year in legalnotice.cpp
JanDragon [Wed, 1 Jan 2020 14:26:50 +0000 (15:26 +0100)]
Updated year in legalnotice.cpp

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 6 Jan 2020 04:16:30 +0000 (04:16 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 5 Jan 2020 04:28:46 +0000 (04:28 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 4 Jan 2020 04:17:33 +0000 (04:17 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 2 Jan 2020 04:14:47 +0000 (04:14 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 1 Jan 2020 04:14:20 +0000 (04:14 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 31 Dec 2019 04:15:07 +0000 (04:15 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 30 Dec 2019 04:12:51 +0000 (04:12 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 29 Dec 2019 04:14:53 +0000 (04:14 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 28 Dec 2019 04:13:31 +0000 (04:13 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 27 Dec 2019 04:13:27 +0000 (04:13 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 26 Dec 2019 04:11:34 +0000 (04:11 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 25 Dec 2019 04:13:59 +0000 (04:13 +0000)]
[tx-robot] updated from transifex

6 years agoKeychainChunk: Fix error handling in ReadJob::slotReadJobDone
Michael Schuster [Tue, 24 Dec 2019 11:17:43 +0000 (12:17 +0100)]
KeychainChunk: Fix error handling in ReadJob::slotReadJobDone

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFix date in ActivityWidget and remove unnecessary string conversion
Michael Schuster [Tue, 24 Dec 2019 07:26:16 +0000 (08:26 +0100)]
Fix date in ActivityWidget and remove unnecessary string conversion

The local date and time value was converted into a string, just to be converted
into another string, to be converted to a value once again, returning zero as
the result. This caused the widget to always display "now".

Looks like this was a simply copy and paste mistake from this line in
ActivityListModel::slotActivitiesReceived:

a._dateTime = QDateTime::fromString(json.value("date").toString(), Qt::ISODate);

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoHeavy refactoring: Windows workaround for >= 4k (4096 bit) client-cert SSL keys and...
Michael Schuster [Tue, 24 Dec 2019 06:12:54 +0000 (07:12 +0100)]
Heavy refactoring: Windows workaround for >= 4k (4096 bit) client-cert SSL keys and large certs

With QtKeychain on Windows, storing larger keys or certs in one keychain entry causes the
following error due to limits in the Windows APIs:
    Error: "Credential size exceeds maximum size of 2560"

This fix implements the new wrapper class KeychainChunk with wrapper jobs ReadJob and WriteJob
to encapsulate the QKeychain handling of ReadPasswordJob and WritePasswordJob with binaryData
but split every supplied keychain entry's data into 2048 byte chunks, on Windows only.

The wrapper is used for all keychain operations in WebFlowCredentials, except for the server password.

All finished keychain jobs now get deleted properly, to avoid memory leaks.

For reference also see previous fixes:
- https://github.com/nextcloud/desktop/pull/1389
- https://github.com/nextcloud/desktop/pull/1394

This should finally fix the re-opened issue:
- https://github.com/nextcloud/desktop/issues/863

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFlow2AuthWidget: Minor fixes and improvements
Michael Schuster [Mon, 23 Dec 2019 14:45:05 +0000 (15:45 +0100)]
Flow2AuthWidget: Minor fixes and improvements

- Improve status messages

- Add a counter to make sure that "Link copied to clipboard." is visible for
  three seconds and to not enable the buttons too early

- Add more space between buttons and status

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFlow2: Refactor UI into Flow2AuthWidget only and improve Flow2Auth
Michael Schuster [Mon, 23 Dec 2019 05:51:46 +0000 (06:51 +0100)]
Flow2: Refactor UI into Flow2AuthWidget only and improve Flow2Auth

- Flow2AuthCredsPage:
  - Remove .ui file and embed Flow2AuthWidget into layout

- Flow2AuthWidget:
  - Make use generic for Flow2AuthCredsPage and WebFlowCredentialsDialog
  - Fix _errorLabel to render HTML tags instead of dumping them as plain text

- Flow2Auth:
  - Explicitly start auth with startAuth(account) instead of using constructor
  - Take control of copying the auth link to clipboard
  - Request a new auth link on copying, to avoid expiry invalidation
  - Use signals statusChanged() and result() to be more verbose (status, errors)
  - Change timer invocation and add safety bool's to avoid weird behaviour when
    the user triggers multiple link-copy calls (fetchNewToken)

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoAdd new HeaderBanner class for WebFlowCredentialsDialog
Michael Schuster [Mon, 23 Dec 2019 05:01:00 +0000 (06:01 +0100)]
Add new HeaderBanner class for WebFlowCredentialsDialog

New widget on top of the layout, based on Qt's own modern wizard header banner.

This should improve the user's perception of the dialog.

Encapsulate the existing layout into a container layout to allow the banner taking
the full width of the dialog.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoMake WebFlowCredentialsDialog cancellation- and deletion-safe
Michael Schuster [Mon, 23 Dec 2019 04:14:21 +0000 (05:14 +0100)]
Make WebFlowCredentialsDialog cancellation- and deletion-safe

- Add new signal to let WebFlowCredentials know and emit asked() to also
  tell AccountState that the user won't authenticate, and triggering
  log-out state in the settings window.

- Use deleteLater() to safely delete WebFlowCredentialsDialog, so
  that Qt can free it at the right time and without crashes.
  Do the same with it's _webView and _flow2AuthWidget on closeEvent().

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoWebFlowCredentialsDialog: Bring re-auth dialog to top (raise) on error
Michael Schuster [Sat, 21 Dec 2019 18:44:37 +0000 (19:44 +0100)]
WebFlowCredentialsDialog: Bring re-auth dialog to top (raise) on error

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFlow2: Make ProgressIndicator's background-aware (Dark-/Light-Mode switching)
Michael Schuster [Sat, 21 Dec 2019 03:31:45 +0000 (04:31 +0100)]
Flow2: Make ProgressIndicator's background-aware (Dark-/Light-Mode switching)

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFlow2: Add poll status text, ProgressIndicator and countdown timer
Michael Schuster [Sat, 21 Dec 2019 03:21:41 +0000 (04:21 +0100)]
Flow2: Add poll status text, ProgressIndicator and countdown timer

Also enable / disable buttons during polling.

This aims to make the authentication status more transparent and should avoid the
impression that the client is perhaps doing nothing.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoSmall fixes and code cleanup
Michael Schuster [Sat, 21 Dec 2019 03:06:37 +0000 (04:06 +0100)]
Small fixes and code cleanup

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFlow2: Poll for re-auth result upon WebFlowCredentialsDialog window activation
Michael Schuster [Sat, 21 Dec 2019 02:52:51 +0000 (03:52 +0100)]
Flow2: Poll for re-auth result upon WebFlowCredentialsDialog window activation

Since the default remote poll interval has been re-raised recently to 30 seconds,
the delay between clicking "Grant access" in the browser and fetch and showing success
in the dialog may seem erroneous to the users and tempt them to click "Re-open browser"
again, causing the whole login process to restart.

This commit implements an event handler to pass the dialog's window activation
event down to the Login Flow v2 widget, in order to allow it to poll earlier.

See previous commits for dependent implementation details.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoWebFlowCredentialsDialog: Bring re-auth dialog to top (raise) upon showing SettingsDialog
Michael Schuster [Sat, 21 Dec 2019 02:16:22 +0000 (03:16 +0100)]
WebFlowCredentialsDialog: Bring re-auth dialog to top (raise) upon showing SettingsDialog

Purpose: The floating re-auth windows of the WebFlowCredentialsDialog often get hidden behind
the SettingsDialog, and the users have to minimize a lot of other windows to find them again.

See previous commit for dependent implementation details.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoAdd helper slots and signals to catch SettingsDialog's window activation events
Michael Schuster [Sat, 21 Dec 2019 02:04:31 +0000 (03:04 +0100)]
Add helper slots and signals to catch SettingsDialog's window activation events

Signal the SettingsDialog's window activation event down to ownCloudGui and Application,
so that other classes can hook in to get notified when the SettingsDialog is being shown
again.

This approach has been chosen because we otherwise would have to deal with new instance
pointers of the current SettingsWindow - but Application is already there ;-)

Purpose: The floating re-auth windows of the WebFlowCredentialsDialog often get hidden
behind the SettingsDialog, and the users have to minimize a lot of other windows to find
them again. This commit implements the preparation for the upcoming fix commit.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFlow2: Use ownCloudGui::raiseDialog to bring account setup wizard to top (raise)...
Michael Schuster [Sat, 21 Dec 2019 01:33:53 +0000 (02:33 +0100)]
Flow2: Use ownCloudGui::raiseDialog to bring account setup wizard to top (raise) on auth result

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFlow2: Poll for auth result upon account setup wizard window activation
Michael Schuster [Fri, 20 Dec 2019 03:05:39 +0000 (04:05 +0100)]
Flow2: Poll for auth result upon account setup wizard window activation

Since the default remote poll interval has been re-raised recently to 30 seconds,
the delay between clicking "Grant access" in the browser and fetch and showing success
in the wizard may seem erroneous to the users and tempt them to click "Re-open browser"
again, causing the whole login process to restart.

This commit implements an event handler to pass the wizard's window activation
event down to the Login Flow v2 page, in order to allow it to poll earlier.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFlow2: Bring account setup wizard to top (raise) on auth result
Michael Schuster [Fri, 20 Dec 2019 03:01:54 +0000 (04:01 +0100)]
Flow2: Bring account setup wizard to top (raise) on auth result

Show and raise the wizard on success / error in the Login Flow v2 auth.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFix issue #1237: White text on almost-white background
Michael Schuster [Mon, 23 Dec 2019 13:29:34 +0000 (14:29 +0100)]
Fix issue #1237: White text on almost-white background

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFix folder opening in ActivityListModel
Michael Schuster [Sun, 22 Dec 2019 05:16:27 +0000 (06:16 +0100)]
Fix folder opening in ActivityListModel

After fixing the crash in the previous commit, double-clicking on Activity list rows still didn't work.

This fix partly reverts commit 8546d53b05a76271e245f085d1caa5d405dadb8d in ActivityItemDelegate::PathRole
of ActivityListModel::data, but adds a new check for relPath's existence in line 74.

I'm assuming the previous change there has been done to shorten the code and avoid opening the user's home
folder upon clicking entries which file value is "App Password". The new path-check takes care of that too now.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFix crash in ActivityListModel (fixes #1693)
Michael Schuster [Sun, 22 Dec 2019 05:06:20 +0000 (06:06 +0100)]
Fix crash in ActivityListModel (fixes #1693)

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoShow date and time in activity log (fixes issue #1683)
Michael Schuster [Thu, 19 Dec 2019 21:10:37 +0000 (22:10 +0100)]
Show date and time in activity log (fixes issue #1683)

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 24 Dec 2019 04:15:27 +0000 (04:15 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 23 Dec 2019 04:17:38 +0000 (04:17 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 22 Dec 2019 04:20:47 +0000 (04:20 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 21 Dec 2019 03:50:38 +0000 (03:50 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 20 Dec 2019 03:50:25 +0000 (03:50 +0000)]
[tx-robot] updated from transifex

6 years agoFix build (missing refactoring)
Michael Schuster [Thu, 19 Dec 2019 20:53:01 +0000 (21:53 +0100)]
Fix build (missing refactoring)

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoMac and high-dpi displays: Add workaround in ActivityItemDelegate to show full uncrop...
Michael Schuster [Thu, 19 Dec 2019 19:41:48 +0000 (20:41 +0100)]
Mac and high-dpi displays: Add workaround in ActivityItemDelegate to show full uncropped activity's actionText and timeText

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoMake all ProgressIndicator's background-aware (Dark-/Light-Mode switching)
Michael Schuster [Thu, 19 Dec 2019 19:28:26 +0000 (20:28 +0100)]
Make all ProgressIndicator's background-aware (Dark-/Light-Mode switching)

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoMake OwncloudWizard and its pages background-aware (Dark-/Light-Mode switching)
Michael Schuster [Thu, 19 Dec 2019 19:26:27 +0000 (20:26 +0100)]
Make OwncloudWizard and its pages background-aware (Dark-/Light-Mode switching)

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoRemove unnecessary string translation and copy in ActivityItemDelegate
Michael Schuster [Thu, 19 Dec 2019 19:20:11 +0000 (20:20 +0100)]
Remove unnecessary string translation and copy in ActivityItemDelegate

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoRemove unnecessary breaks in ActivityListModel
Michael Schuster [Thu, 19 Dec 2019 19:15:40 +0000 (20:15 +0100)]
Remove unnecessary breaks in ActivityListModel

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoMake ActivityItemDelegate background- and selection-aware (Dark-/Light-Mode switching)
Michael Schuster [Thu, 19 Dec 2019 19:07:14 +0000 (20:07 +0100)]
Make ActivityItemDelegate background- and selection-aware (Dark-/Light-Mode switching)

Also implement cached member icons in ActivityListModel and return their enums to
ActivityItemDelegate instead of always recreating them for each call to paint().

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoRefactor ActivitySettings: Rename member variable ui to _ui
Michael Schuster [Thu, 19 Dec 2019 18:53:48 +0000 (19:53 +0100)]
Refactor ActivitySettings: Rename member variable ui to _ui

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoMake AccountSettings and ActivitySettings background-aware (Dark-/Light-Mode switching)
Michael Schuster [Thu, 19 Dec 2019 18:50:21 +0000 (19:50 +0100)]
Make AccountSettings and ActivitySettings background-aware (Dark-/Light-Mode switching)

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoChange error link colour in AccountSettings::showConnectionLabel
Michael Schuster [Thu, 19 Dec 2019 18:31:42 +0000 (19:31 +0100)]
Change error link colour in AccountSettings::showConnectionLabel

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoAdd new Theme helper method to custom-colourize links
Michael Schuster [Thu, 19 Dec 2019 18:30:35 +0000 (19:30 +0100)]
Add new Theme helper method to custom-colourize links

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoChange Dark Mode link colour
Michael Schuster [Thu, 19 Dec 2019 18:24:45 +0000 (19:24 +0100)]
Change Dark Mode link colour

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 19 Dec 2019 03:51:44 +0000 (03:51 +0000)]
[tx-robot] updated from transifex

6 years agoFix Activity List: Add check to avoid first empty entry
Michael Schuster [Wed, 18 Dec 2019 02:01:27 +0000 (03:01 +0100)]
Fix Activity List: Add check to avoid first empty entry

Add checks to ActivityListModel::combineActivityLists in order to avoid adding
empty Activity entries to the _finalList.

The previous implementation always added an empty entry to the top of the list because
_notificationIgnoredFiles was appended without checking (_listOfIgnoredFiles.size() > 0).

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 17 Dec 2019 03:51:18 +0000 (03:51 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 15 Dec 2019 03:50:26 +0000 (03:50 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 14 Dec 2019 03:50:17 +0000 (03:50 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 13 Dec 2019 03:50:26 +0000 (03:50 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 12 Dec 2019 03:50:18 +0000 (03:50 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 11 Dec 2019 03:10:56 +0000 (03:10 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 10 Dec 2019 03:14:17 +0000 (03:14 +0000)]
[tx-robot] updated from transifex

6 years agomacOS: Rename 'Explorer' appropriately on non-Windows
Michael Schuster [Mon, 9 Dec 2019 20:00:34 +0000 (21:00 +0100)]
macOS: Rename 'Explorer' appropriately on non-Windows

- Rename it to 'Finder' on macOS.
- This way we also avoid having the whole string re-translated on Transifex.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoMake the ShareDialog background-aware (Dark-/Light-Mode switching)
Michael Schuster [Mon, 9 Dec 2019 19:59:10 +0000 (20:59 +0100)]
Make the ShareDialog background-aware (Dark-/Light-Mode switching)

Use customizeStyle() to change link colours, icons and pixmaps in the ShareDialog and notify
it's widgets via slots.

TODO - known issue (macOS):
- The background and font colours in the ShareUserLine widget still stay the same.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoMake SettingsDialog background-aware (Dark-/Light-Mode switching)
Michael Schuster [Mon, 9 Dec 2019 19:47:42 +0000 (20:47 +0100)]
Make SettingsDialog background-aware (Dark-/Light-Mode switching)

Use customizeStyle() to change link colours in the SettingsDialog and notify it's widgets via slots.

Also modify the background colour of the errors messages in AccountSettings::showConnectionLabel
to always use an appropiate colour for it's custom-defined background.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoImplement and move some colour-aware helper methods into the Theme class
Michael Schuster [Mon, 9 Dec 2019 19:34:27 +0000 (20:34 +0100)]
Implement and move some colour-aware helper methods into the Theme class

This introduces a new method to change the colours in the links in QLabel's.
Utilizes a custom crafted RegEx function to replace already-coloured links.

Moved code is based on stuff from the SettingsDialog class.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoPick from upstream: Fix too low contrast when tab is selected
Michael Schuster [Sun, 1 Dec 2019 19:33:10 +0000 (20:33 +0100)]
Pick from upstream: Fix too low contrast when tab is selected

The low contrast is also a problem with the Dark Mode on macOS.

For reference please see:
- Commit: https://github.com/owncloud/client/commit/413ef5e96d098f45694c261bbc409fcf21e0cb65
- Issue: https://github.com/owncloud/client/issues/7512

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFix SSL-button's info background color for Dark Mode
Michael Schuster [Sun, 1 Dec 2019 15:07:16 +0000 (16:07 +0100)]
Fix SSL-button's info background color for Dark Mode

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoRemove submodule qtmacgoodies and the MacSettingsDialog class
Michael Schuster [Sun, 1 Dec 2019 01:45:19 +0000 (02:45 +0100)]
Remove submodule qtmacgoodies and the MacSettingsDialog class

Reverts back to the SettingsDialog class because of bugs and glitches with
more recent Qt versions (Qt 5.12) and with the macOS Dark Mode.

See upstream: https://github.com/owncloud/client/pull/7492

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 9 Dec 2019 03:11:08 +0000 (03:11 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 8 Dec 2019 03:12:35 +0000 (03:12 +0000)]
[tx-robot] updated from transifex

6 years agoFix deleteKeychainEntries: Stay consistent with job->setInsecureFallback(false)
Michael Schuster [Sun, 8 Dec 2019 00:59:50 +0000 (01:59 +0100)]
Fix deleteKeychainEntries: Stay consistent with job->setInsecureFallback(false)

We never fall back to the insecure variant in the whole codebase, so don't do it here.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFix Windows key-chunk deletion (too paranoid)
Michael Schuster [Sun, 8 Dec 2019 00:56:15 +0000 (01:56 +0100)]
Fix Windows key-chunk deletion (too paranoid)

Clear the key chunk buffer, but don't set _clientSslKeyChunkCount to zero because we need it later for deleteKeychainEntries

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFix member variable name from last refactoring (Windows code)
Michael Schuster [Sat, 7 Dec 2019 23:30:50 +0000 (00:30 +0100)]
Fix member variable name from last refactoring (Windows code)

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFix Remote Wipe keychain storage
Michael Schuster [Sat, 7 Dec 2019 23:02:11 +0000 (00:02 +0100)]
Fix Remote Wipe keychain storage

In certain cases don't write the app password in Account::writeAppPasswordOnce:
- id() is empty: This always happend once the Account Wizard showed the folder selection
- appPassword is empty: Caused by Logout -> Relaunch, preventing remote wipe on relaunch

Implement some logging to ease debugging in the future.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoRemote Wipe: Implement hack to allow deleting all keychain entries (SSL certs & keys)
Michael Schuster [Sat, 7 Dec 2019 23:00:02 +0000 (00:00 +0100)]
Remote Wipe: Implement hack to allow deleting all keychain entries (SSL certs & keys)

Client SSL certificates and keys cannot be deleted at this time because there is
no UI for selecting them on re-login.

We introduce this dirty hack here, to allow deleting them upon Remote Wipe.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoRefactoring: Windows workaround for >= 4k (4096 bit) client-cert SSL keys
Michael Schuster [Sat, 7 Dec 2019 22:27:57 +0000 (23:27 +0100)]
Refactoring: Windows workaround for >= 4k (4096 bit) client-cert SSL keys

WebFlowCredentials:
- Remove _clientSslCaKeyWriteQueue and simply use _clientSslKeyChunkBufferPEM
- Store key's sub-chunks in slots with "." (dot) suffix
- Implement deletion of the key chunks in WebFlowCredentials::deleteKeychainEntries
- Remove spaces in log messages
- Improve code readability

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoWindows: Workaround for storing >= 4k (4096 bit) client-cert SSL keys
Michael Schuster [Sat, 7 Dec 2019 04:27:50 +0000 (05:27 +0100)]
Windows: Workaround for storing >= 4k (4096 bit) client-cert SSL keys

With QtKeychain on Windows, storing larger keys in one keychain entry causes the
following error due to limits in the Windows APIs:
  Error: "Credential size exceeds maximum size of 2560"

To avoid overhead on the other platforms and balance code duplication, this
approach puts some read- and write-parts into Windows-only defines.

For reference also see previous fixes:
- https://github.com/nextcloud/desktop/pull/1389
- https://github.com/nextcloud/desktop/pull/1394

This (again) fixes the re-opened issue:
- https://github.com/nextcloud/desktop/issues/863

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 7 Dec 2019 03:13:09 +0000 (03:13 +0000)]
[tx-robot] updated from transifex

6 years agoFall back to old login flow on GS as this is not yet ready (#2: re-auth)
Michael Schuster [Fri, 6 Dec 2019 19:14:18 +0000 (20:14 +0100)]
Fall back to old login flow on GS as this is not yet ready (#2: re-auth)

This commit ensures that the check also occurs on re-authorization in case
the user gets logged out.

See: https://github.com/nextcloud/desktop/pull/1644

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFall back to old login flow on GS as this is not yet ready
Roeland Jago Douma [Tue, 26 Nov 2019 13:13:15 +0000 (14:13 +0100)]
Fall back to old login flow on GS as this is not yet ready

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years agoCompare QDateTime objects more efficient
David Kahles [Fri, 8 Nov 2019 10:55:21 +0000 (11:55 +0100)]
Compare QDateTime objects more efficient

There is no need to call toMSecsSinceEpoch() as QDateTime implements an
comparison operator itself. This is more efficient, because the
QDateTime comparison operator doesn't call localtime() in all cases. Thus, we
don't read /etc/localtime for every comparison. This improves
performance in some cases.

Signed-off-by: David Kahles <david.kahles96@gmail.com>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 6 Dec 2019 03:13:10 +0000 (03:13 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 5 Dec 2019 03:11:15 +0000 (03:11 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 4 Dec 2019 10:22:14 +0000 (10:22 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 4 Dec 2019 03:10:59 +0000 (03:10 +0000)]
[tx-robot] updated from transifex

6 years agoUse … instead of 3 dots
Joas Schilling [Thu, 14 Nov 2019 22:23:43 +0000 (23:23 +0100)]
Use … instead of 3 dots

Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years agoFix some translations
Joas Schilling [Thu, 14 Nov 2019 22:15:49 +0000 (23:15 +0100)]
Fix some translations

Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years agoImprove the translation of "Share via …"
Joas Schilling [Thu, 14 Nov 2019 21:29:30 +0000 (22:29 +0100)]
Improve the translation of "Share via …"

Signed-off-by: Joas Schilling <coding@schilljs.com>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 2 Dec 2019 03:10:52 +0000 (03:10 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 30 Nov 2019 03:10:58 +0000 (03:10 +0000)]
[tx-robot] updated from transifex

6 years agoFix copyright year in MacOSXBundleInfo.plist.in for 2019
Michael Schuster [Fri, 29 Nov 2019 16:04:22 +0000 (17:04 +0100)]
Fix copyright year in MacOSXBundleInfo.plist.in for 2019

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoUse ReadPasswordJob::finished for ReadPasswordJob
Michael Schuster [Fri, 29 Nov 2019 03:47:40 +0000 (04:47 +0100)]
Use ReadPasswordJob::finished for ReadPasswordJob

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years agoFix remote wipe keychain storage (issue #1592)
Michael Schuster [Fri, 29 Nov 2019 03:28:50 +0000 (04:28 +0100)]
Fix remote wipe keychain storage (issue #1592)

The app password for the remote wipe was constantly being written in
WebFlowCredentials::slotFinished to the keychain, leading to unnecessary
write and log overhead on the system.

This fix introduces a check to only store the app password once in
a lifetime of the Account class. Also the method used to store the
password will be renamed from setAppPassword to writeAppPasswordOnce
to be more expressive.

Signed-off-by: Michael Schuster <michael@schuster.ms>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 29 Nov 2019 03:10:32 +0000 (03:10 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 28 Nov 2019 03:12:08 +0000 (03:12 +0000)]
[tx-robot] updated from transifex

6 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 27 Nov 2019 03:07:47 +0000 (03:07 +0000)]
[tx-robot] updated from transifex