nextcloud-desktop.git
8 years agoMerge remote-tracking branch 'oc/master' into master-oc
Roeland Jago Douma [Wed, 23 Aug 2017 13:40:35 +0000 (15:40 +0200)]
Merge remote-tracking branch 'oc/master' into master-oc

8 years agoMerge pull request #5974 from owncloud/Documentation_Activity_Update
Martin [Sun, 20 Aug 2017 19:09:42 +0000 (21:09 +0200)]
Merge pull request #5974 from owncloud/Documentation_Activity_Update

Documentation improvement for #5969

8 years agoDocumentation improvement for #5969
Martin [Sun, 20 Aug 2017 16:17:58 +0000 (18:17 +0200)]
Documentation improvement for #5969

8 years agoHardcode Desktop.ini in the exclude list
Jocelyn Turcotte [Mon, 14 Aug 2017 09:42:30 +0000 (11:42 +0200)]
Hardcode Desktop.ini in the exclude list

This prevents it from being removed from the exclude list, which
would be an issue since the client itself creates this file in a way
that wouldn't match on machines with different installation paths.

8 years agoWindows: Use the application icon for the sidebar
Jocelyn Turcotte [Fri, 11 Aug 2017 15:19:02 +0000 (17:19 +0200)]
Windows: Use the application icon for the sidebar

By setting the icon in Desktop.ini of the root folder, this adds the icon
both when browsing the folder directly and to the sidebar shortcut.

To avoid overwriting any user setting that could exist in Desktop.ini,
only do this if the file doesn't exist. Editing .ini files on Windows
isn't trivial and isn't worth it given that this file won't exist most
of the time.

Fixes #2446

8 years agoCMake: Print the Qt version and path #5957 #5932
Markus Goetz [Mon, 14 Aug 2017 12:23:25 +0000 (14:23 +0200)]
CMake: Print the Qt version and path #5957 #5932

8 years agoMerge pull request #47 from nextcloud-gmbh/drone_qt5.9
Roeland Jago Douma [Sat, 5 Aug 2017 19:15:30 +0000 (21:15 +0200)]
Merge pull request #47 from nextcloud-gmbh/drone_qt5.9

Add Qt5.9  to drone

8 years agoAdd Qt5.9 to drone
Roeland Jago Douma [Sat, 5 Aug 2017 19:08:45 +0000 (21:08 +0200)]
Add Qt5.9  to drone

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years agoMerge pull request #46 from nextcloud-gmbh/drone_57_58
Roeland Jago Douma [Sat, 5 Aug 2017 12:37:26 +0000 (14:37 +0200)]
Merge pull request #46 from nextcloud-gmbh/drone_57_58

Add qt5.7 and qt5.8 CI tests

8 years agoAdd qt5.7 and qt5.8 CI tests
Roeland Jago Douma [Sat, 5 Aug 2017 12:29:13 +0000 (14:29 +0200)]
Add qt5.7 and qt5.8 CI tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years agoSync Folder: Add file manager favorite also in folder wizard #455
Markus Goetz [Thu, 3 Aug 2017 17:54:20 +0000 (19:54 +0200)]
Sync Folder: Add file manager favorite also in folder wizard #455

Not only in the account wizard.

8 years agoUpload: Log the checksum / file hash
Markus Goetz [Fri, 4 Aug 2017 13:42:11 +0000 (15:42 +0200)]
Upload: Log the checksum / file hash

8 years agoChangeLog: More 2.4.0 stuff
Markus Goetz [Fri, 4 Aug 2017 13:23:44 +0000 (15:23 +0200)]
ChangeLog: More 2.4.0 stuff

8 years agoMerge pull request #43 from nextcloud-gmbh/drone
Roeland Jago Douma [Fri, 4 Aug 2017 08:55:06 +0000 (10:55 +0200)]
Merge pull request #43 from nextcloud-gmbh/drone

Get drone up and running

8 years agoAdd drone test for Qt-5.6
Roeland Jago Douma [Tue, 18 Jul 2017 12:59:37 +0000 (14:59 +0200)]
Add drone test for Qt-5.6

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years agoMerge pull request #5762 from owncloud/update-docs-to-2.3.2
Matthew Setter [Thu, 3 Aug 2017 11:56:39 +0000 (13:56 +0200)]
Merge pull request #5762 from owncloud/update-docs-to-2.3.2

Update client docs version string to 2.3.2

8 years agoUpdate client docs version string to 2.4.0
Matthew Setter [Wed, 10 May 2017 07:46:57 +0000 (09:46 +0200)]
Update client docs version string to 2.4.0

Need to update this to match the latest version.

8 years agoMerge pull request #5929 from owncloud/doc-cleanup
Matthew Setter [Tue, 1 Aug 2017 09:52:05 +0000 (11:52 +0200)]
Merge pull request #5929 from owncloud/doc-cleanup

Clean up the client docs removing old, outdated, content

8 years agomacos: Add a sidebar icon
Jocelyn Turcotte [Fri, 28 Jul 2017 15:51:52 +0000 (17:51 +0200)]
macos: Add a sidebar icon

In the process, use an iconset to generate the icns using iconutil.
Also add some missing icon resolutions according to the guidelines.

Issue #296

8 years agoClean up the client docs removing old, outdated, content
Matthew Setter [Mon, 31 Jul 2017 12:04:02 +0000 (14:04 +0200)]
Clean up the client docs removing old, outdated, content

This makes changes as suggested by @michaelstingl in
https://github.com/owncloud/documentation/issues/3240.

8 years agoFolderWizard: fix crash in FolderWizardRemotePath::slotHandleLsColNetworkError
Olivier Goffart [Fri, 28 Jul 2017 08:13:07 +0000 (10:13 +0200)]
FolderWizard: fix crash in FolderWizardRemotePath::slotHandleLsColNetworkError

The Job is a LsColJob, not a MkColJob!

Reproduce by entering a name with invalid character that cause an error 400
in the folder wizard's remote path line edit.

(Relates issue #5924)

8 years agoGeneral settings: Put all advanced checkboxes in a layout
Jocelyn Turcotte [Thu, 27 Jul 2017 08:53:17 +0000 (10:53 +0200)]
General settings: Put all advanced checkboxes in a layout

The mac style has the concept of Layout Item Rectangle that bleeds
widgets margins into parent margins. This unfortunately doesn't work
when the parent layout doesn't have any margin, like we do when we
have the hierarchy:
 Vertical(normal margin)
   / Horizontal(no margin, uses parent layout spacing)
     /Widget

I guess Qt should propagate remaining uneaten margins to grand-parent
layouts and so on to have this work properly, but nobody seems to
have touched that code since Qt 4.4.
So just try to make the problem less worse by making sure that
all checkboxes we want to align are either in the same layout, or
in a loyout of their own.

Issue #5492

8 years agoFix the selective sync notification folder list being cropped
Jocelyn Turcotte [Thu, 27 Jul 2017 08:46:46 +0000 (10:46 +0200)]
Fix the selective sync notification folder list being cropped

The maximumHeight would stay at the last animated value.

Issue #5492

8 years agoAccountState: reset _waitingForNewCredentials when signin in
Olivier Goffart [Fri, 21 Jul 2017 13:54:47 +0000 (15:54 +0200)]
AccountState: reset _waitingForNewCredentials when signin in

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

8 years agoencoding_tests: No more iconv
Markus Goetz [Wed, 26 Jul 2017 09:46:18 +0000 (11:46 +0200)]
encoding_tests: No more iconv

8 years agoOAuth: clear refresh token when the server claim not to support oauth
Olivier Goffart [Mon, 24 Jul 2017 10:00:29 +0000 (12:00 +0200)]
OAuth: clear refresh token when the server claim not to support oauth

Allow upgrade path when the server removes support for oauth
Relates: https://github.com/owncloud/client/issues/5848#issuecomment-317353049

We also need to force the account to commit the config to the disk,
otherwise we may not register we are no longer using owncloud and we
risk sending the password as the token to the token refresh API call

8 years agoOAuth: Fix refresh of token after expiration
Olivier Goffart [Tue, 18 Jul 2017 12:53:41 +0000 (14:53 +0200)]
OAuth: Fix refresh of token after expiration

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

8 years agoRevert "Revert "Discovery: consider also the "shared by me" as shared""
Olivier Goffart [Fri, 21 Jul 2017 09:28:15 +0000 (11:28 +0200)]
Revert "Revert "Discovery: consider also the "shared by me" as shared""

This reverts commit efa7821dd28491ad0b93fec53be6d4ad0f94f19f.

This reverts the revert, but also add a check that the server version
is bigger than 10.0

Issue #4788

8 years agoDon't keep the list of touched files for the whole sync
Jocelyn Turcotte [Mon, 24 Jul 2017 06:03:05 +0000 (08:03 +0200)]
Don't keep the list of touched files for the whole sync

We only want to know if they were touched within the last 15 seconds,
so change the data structure to use a QMultiMap, and sort them by
QElapsedTimer. This allows us to iterate over old entries ordered by
time and to stop once we find a recent entry.

This makes the look-up slower but in most cases the folder watcher
will report any change within milliseconds, and we start from the
most recent. What this really makes slower are actual user file
changes while a fast sync is underways which will need to iterate
over the whole map to find out the file isn't there.

This reduces the growth of the memory usage when downloading a large
amount of files.

8 years agowindows: Fix a memory leak in FileSystem::longWinPath
Jocelyn Turcotte [Mon, 24 Jul 2017 13:11:30 +0000 (15:11 +0200)]
windows: Fix a memory leak in FileSystem::longWinPath

Also use c_path_to_UNC directly instead of doing an extra
UTF-8->wchar conversion.

8 years agobuildint.rst: Put back reference to openssl on windows
Olivier Goffart [Fri, 21 Jul 2017 06:54:06 +0000 (08:54 +0200)]
buildint.rst: Put back reference to openssl on windows

OpenSSL might no longer be needed to build the client, but we still need
it to run it.

That reverts part of commit 6e57b0219edd7dcc99509620277bb53478d958a6 for
this file.

Fix #5858
Reported in https://central.owncloud.org/t/locally-built-client-error-creating-ssl-context/8264

8 years agoPropagator: fix a qMax which should have been a qMin
Olivier Goffart [Tue, 18 Jul 2017 06:58:07 +0000 (08:58 +0200)]
Propagator: fix a qMax which should have been a qMin

8 years agoOAuth: Add the user in the authorize call
Olivier Goffart [Fri, 14 Jul 2017 13:56:32 +0000 (15:56 +0200)]
OAuth: Add the user in the authorize call

Issues: #5897, https://github.com/owncloud/oauth2/issues/48

8 years agoPropagateUpload: Remove the Qt workaround against data corruption
Olivier Goffart [Sat, 15 Jul 2017 07:36:24 +0000 (09:36 +0200)]
PropagateUpload: Remove the Qt workaround against data corruption

This was only for Qt <= 5.4, which we don't really support anymore.
And even then, the data corruption is happens very seldomly anyway.

8 years agoMerge pull request #5905 from kaustubh-welankar/issue_5692_pull
Olivier Goffart [Mon, 17 Jul 2017 06:38:57 +0000 (08:38 +0200)]
Merge pull request #5905 from kaustubh-welankar/issue_5692_pull

Fix for issue number #5692 :

Abort owncloudcmd if the capabilities call fails.

8 years agoAccessManager: Disable HTTP/2 without TLS
Olivier Goffart [Tue, 13 Jun 2017 13:29:01 +0000 (15:29 +0200)]
AccessManager: Disable HTTP/2 without TLS

Qt would otherwise still try to do HTTP/2 connection even over "http://".
And that does not work with server that does not support it

8 years agoHTTP/2 Support
Olivier Goffart [Mon, 22 May 2017 12:41:06 +0000 (14:41 +0200)]
HTTP/2 Support

We need Qt 5.9 for HTTP2 because, even if Qt 5.8 already has support
for it, there is some critical bug in the HTTP2 implementation which
make it unusable [ https://codereview.qt-project.org/186050 and
https://codereview.qt-project.org/186066 ]

When using HTTP2, we can use many more parallel network request, this
is especially good for small file handling

Lower the priority of the GET and PUT propagation jobs, so the quota
or selective sync ui PROPFIND will not be blocked by them

8 years agoMerge pull request #5326 from owncloud/cleanup_tests
Olivier Goffart [Sat, 15 Jul 2017 12:48:25 +0000 (14:48 +0200)]
Merge pull request #5326 from owncloud/cleanup_tests

Use OWNCLOUD_BIN_DIR directly in C++ code.

8 years agoChange error message. Removed Qt5 if check
Kaustubh Welankar [Sat, 15 Jul 2017 11:20:40 +0000 (16:50 +0530)]
Change error message. Removed Qt5 if check

8 years agocsync_vio: Better log for stat errors
Markus Goetz [Fri, 14 Jul 2017 13:37:05 +0000 (15:37 +0200)]
csync_vio: Better log for stat errors

8 years agoFix for issue number 5692
Kaustubh Welankar [Fri, 14 Jul 2017 11:20:49 +0000 (16:50 +0530)]
Fix for issue number 5692

8 years agoOAuth: Better message when loggin in with the wrong username
Olivier Goffart [Thu, 13 Jul 2017 13:58:07 +0000 (15:58 +0200)]
OAuth: Better message when loggin in with the wrong username

Since the user is already in the browser, put the error message in the
browser with a message to log out and then log in as the right user.

Issue #5895

8 years agoX-Request-ID: Send per request not per account #5853
Markus Goetz [Thu, 13 Jul 2017 18:24:44 +0000 (20:24 +0200)]
X-Request-ID: Send per request not per account #5853

8 years agoEnsure qsrand is called
Christian Kamm [Thu, 13 Jul 2017 09:06:04 +0000 (11:06 +0200)]
Ensure qsrand is called

8 years agoAccount: Send a X-Request-ID header #5853
Christian Kamm [Thu, 13 Jul 2017 08:53:16 +0000 (10:53 +0200)]
Account: Send a X-Request-ID header #5853

8 years agoOAuth2: Have a link to the browser in the owncloud UI
Olivier Goffart [Thu, 13 Jul 2017 09:27:02 +0000 (11:27 +0200)]
OAuth2: Have a link to the browser in the owncloud UI

When the browser is open, ad a link in the ui to re-open
the browser.

Issue #5893

8 years agoBroken URL fixed in Dockerfile
Kashyap Prajapati [Thu, 13 Jul 2017 10:32:19 +0000 (16:02 +0530)]
Broken URL fixed in Dockerfile

Url to mingw repo fixed.

8 years agoAccountSettings: Draw a box to indicate pending conflicts
Christian Kamm [Wed, 12 Jul 2017 12:50:51 +0000 (14:50 +0200)]
AccountSettings: Draw a box to indicate pending conflicts

8 years agoConflicts: Detect and show in issues tab
Christian Kamm [Wed, 12 Jul 2017 08:57:41 +0000 (10:57 +0200)]
Conflicts: Detect and show in issues tab

Incidentally fixes a potential issue where conflicts were silently-
ignored and thus deleted if the parent folder was deleted.

8 years agocheck_vio_ext: Align with new UTF8 behaviour on macOS
Markus Goetz [Tue, 4 Jul 2017 13:03:16 +0000 (15:03 +0200)]
check_vio_ext: Align with new UTF8 behaviour on macOS

8 years agocsync: Use Qt for encodeing/decoding filesystem strings
Olivier Goffart [Tue, 4 Jul 2017 10:20:59 +0000 (12:20 +0200)]
csync: Use Qt for encodeing/decoding filesystem strings

Issues:
 - #5661   On mac, iconv did not support all of unicode and some
           files with emoji in the filename could not be uploaded

 - #5719 , #5676  On linux, we will now support non utf-8 locale

8 years agocsync: Move the locale<->utf8 conversion to a different file
Olivier Goffart [Tue, 4 Jul 2017 09:29:24 +0000 (11:29 +0200)]
csync: Move the locale<->utf8 conversion to a different file

It's a C++ file so we will be able to use Qt from it

8 years agocsync: Remove iconv depedency
Olivier Goffart [Mon, 3 Jul 2017 14:15:42 +0000 (16:15 +0200)]
csync: Remove iconv depedency

We use iconv to normalize the string on mac. But the iconv version
on mac does not support full unicode.
So we will use Qt to normalize the string

8 years agoIssuesWidget: Fix insertion of sync errors before item errors
Christian Kamm [Wed, 12 Jul 2017 07:45:10 +0000 (09:45 +0200)]
IssuesWidget: Fix insertion of sync errors before item errors

8 years agoSyncEngineTest: _size now correct for uploads #5855
Christian Kamm [Wed, 12 Jul 2017 08:09:04 +0000 (10:09 +0200)]
SyncEngineTest: _size now correct for uploads #5855

8 years agoMerge remote-tracking branch 'origin/2.3'
Christian Kamm [Wed, 12 Jul 2017 08:06:04 +0000 (10:06 +0200)]
Merge remote-tracking branch 'origin/2.3'

8 years agoIssuesWidget: Add button to retry 507 errors #5537
Christian Kamm [Tue, 11 Jul 2017 13:54:01 +0000 (15:54 +0200)]
IssuesWidget: Add button to retry 507 errors #5537

Since these errors are blacklisted, it can take up to 24h to retry items
that had a 507 error for a while. This way users can intervene and cause
an upload attempt immediately.

8 years agoIssuesWidget: Hide folder column when possible
Christian Kamm [Tue, 11 Jul 2017 13:53:36 +0000 (15:53 +0200)]
IssuesWidget: Hide folder column when possible

8 years agoAdd ElidedLabel
Christian Kamm [Tue, 11 Jul 2017 13:50:56 +0000 (15:50 +0200)]
Add ElidedLabel

A label that adjusts its text based on Qt::TextElideMode.

8 years agoPropagateUpload: Better messaging for 507 #5537
Christian Kamm [Fri, 7 Jul 2017 13:11:00 +0000 (15:11 +0200)]
PropagateUpload: Better messaging for 507 #5537

It now produces a summary error message indicating the problem.

Adjust blacklist database table to contain 'errorCategory'. This is
useful for two things:
  - Reestablishing summary messages based on blacklisted errors. For
    example if we don't retry a 507ed file, we still want to show the
    message about space on the server
  - Selectively wiping the blacklist: When we have ui for something like
    "I deleted some files, please retry all files now!", we want to
    delete all blacklist entries of a specific category only.

8 years agoPropagateUpload: Put upload error handling in one function
Christian Kamm [Fri, 7 Jul 2017 12:12:10 +0000 (14:12 +0200)]
PropagateUpload: Put upload error handling in one function

8 years agoProgressInfo: Carry a sync status
Christian Kamm [Tue, 11 Jul 2017 10:52:40 +0000 (12:52 +0200)]
ProgressInfo: Carry a sync status

* A bunch of code was determining sync status by ad-hoc comparing some
  progress info fields. It can now just check the status, making it
  easier to comprehend.
* There's a clear indication for "a new sync is starting", which helps
  wiping the issues tab at the right time.

8 years agoSyncEngine: Introduce overall errors that are not tied to a file #5746
Christian Kamm [Wed, 28 Jun 2017 10:45:54 +0000 (12:45 +0200)]
SyncEngine: Introduce overall errors that are not tied to a file #5746

For now we use them for:
* csync errors: This allows them to appear in the sync issues tab
* insufficient local disk space, as a summary of individual file errors

Insufficient remote space will use them too, as might other issues that
are bigger than a single sync item.

8 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Wed, 12 Jul 2017 00:18:29 +0000 (02:18 +0200)]
[tx-robot] updated from transifex

8 years agoMore refs. to corresponding issue/PR on 2.3.3 changelog
Samuel Alfageme [Tue, 11 Jul 2017 15:29:49 +0000 (17:29 +0200)]
More refs. to corresponding issue/PR on 2.3.3 changelog

8 years agoChangeLog: 2.3.3
Markus Goetz [Tue, 11 Jul 2017 15:14:49 +0000 (17:14 +0200)]
ChangeLog: 2.3.3

8 years agoOAuth: Redirects to the server in case of sucessfull login
Olivier Goffart [Mon, 3 Jul 2017 12:51:20 +0000 (14:51 +0200)]
OAuth: Redirects to the server in case of sucessfull login

Requires https://github.com/owncloud/oauth2/pull/45

This commit moves the reply after we got the token reply from
the server, that allows to reply with an error to the browser
if the login does not work.

8 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Tue, 11 Jul 2017 00:18:29 +0000 (02:18 +0200)]
[tx-robot] updated from transifex

8 years agoIssuesTab: Hide filters if they wouldn't be useful
Christian Kamm [Thu, 6 Jul 2017 12:03:22 +0000 (14:03 +0200)]
IssuesTab: Hide filters if they wouldn't be useful

As suggested by @dragotin

8 years agoFolderMan: Add missing folderListChanged emits
Christian Kamm [Thu, 6 Jul 2017 12:02:21 +0000 (14:02 +0200)]
FolderMan: Add missing folderListChanged emits

She signal of a folder list change was not emitted when folders were
deleted from the list.

8 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Mon, 10 Jul 2017 00:18:29 +0000 (02:18 +0200)]
[tx-robot] updated from transifex

8 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Sun, 9 Jul 2017 00:18:29 +0000 (02:18 +0200)]
[tx-robot] updated from transifex

8 years agoAccount/Credentials: Have identical lifetimes
Christian Kamm [Fri, 7 Jul 2017 09:09:11 +0000 (11:09 +0200)]
Account/Credentials: Have identical lifetimes

The QNAM may continue to outlive both.

Rename Credentials::getQNAM() to createQNAM() while we're at it - it's
used to make a new QNAM that will subsequently be owned by the Account
object.

See d01065b9a12e69ca493a232f3a8e8f3d416fed52 for rationale.

Relates to
d40c56eda561e3a541bf1b23f70fa8d659d3037e
147cf798a6f13c9b53a9f1fb2db1ef26c8c63273

8 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Sat, 8 Jul 2017 00:18:29 +0000 (02:18 +0200)]
[tx-robot] updated from transifex

8 years agoshell/windows Build 46: Private links context menu
Jocelyn Turcotte [Fri, 7 Jul 2017 16:10:48 +0000 (18:10 +0200)]
shell/windows Build 46: Private links context menu

8 years agoUpdate building.rst
Jürgen Weigert [Fri, 7 Jul 2017 14:01:20 +0000 (16:01 +0200)]
Update building.rst

8 years agoLink share: Remove direct download if unavailable #5837
Christian Kamm [Thu, 15 Jun 2017 14:03:24 +0000 (16:03 +0200)]
Link share: Remove direct download if unavailable #5837

It would have been much nicer to keep the menu assigned to the
QToolButton, but if one switches away from InstantPopup (to adjust the
entries before they're displayed), the button always gets a menu
indicator that can't be removed.

8 years agoLink shares: Add "show file listing" option #5837
Christian Kamm [Thu, 15 Jun 2017 13:38:22 +0000 (15:38 +0200)]
Link shares: Add "show file listing" option #5837

8 years agoshell integrations: Change share menu title to "Share..."
Christian Kamm [Thu, 6 Jul 2017 09:33:38 +0000 (11:33 +0200)]
shell integrations: Change share menu title to "Share..."

Since the appname is in the context submenu title already.

Also drop APPNAME string.

8 years agoSocketAPI: Change strings to a consistent _MENU_TITLE postfix
Christian Kamm [Thu, 6 Jul 2017 09:32:58 +0000 (11:32 +0200)]
SocketAPI: Change strings to a consistent _MENU_TITLE postfix

8 years agoshell/macos: Remove legacy (< 10.10) overlay icons
Jocelyn Turcotte [Tue, 4 Jul 2017 17:26:57 +0000 (13:26 -0400)]
shell/macos: Remove legacy (< 10.10) overlay icons

Having to update the plugins to add a submenu in the context menu,
it's more cost-effective to remove support for legacy macOS versions
than implementing and testing this setup.

8 years agoshell/macos: Use a submenu to include private link actions
Jocelyn Turcotte [Tue, 4 Jul 2017 15:34:51 +0000 (11:34 -0400)]
shell/macos: Use a submenu to include private link actions

8 years agoshell/windows: Use a submenu to include private link actions
Jocelyn Turcotte [Tue, 4 Jul 2017 14:58:55 +0000 (16:58 +0200)]
shell/windows: Use a submenu to include private link actions

Refactor things a bit to be able to reuse some code and
clean things up.

8 years agoSocketApi: Add GET_STRINGS:BEGIN and END
Jocelyn Turcotte [Tue, 4 Jul 2017 14:45:48 +0000 (16:45 +0200)]
SocketApi: Add GET_STRINGS:BEGIN and END

The Windows shell extension relied on the response of
SHARE_MENU_TITLE to advance its state machine, but in order
to use the new GET_STRINGS instead, we need to know when the
last string was received. Also add BEGIN for consistency.

8 years agoSocketApi: Adjust the format of the mailto: URL
Jocelyn Turcotte [Tue, 4 Jul 2017 14:43:17 +0000 (16:43 +0200)]
SocketApi: Adjust the format of the mailto: URL

Minor tweaks that weren't actually an issue, but just in case.

8 years agoSocketApi: Improve logging
Jocelyn Turcotte [Tue, 4 Jul 2017 14:41:40 +0000 (16:41 +0200)]
SocketApi: Improve logging

8 years agoIntroduce private link sharing #5023
Christian Kamm [Wed, 10 May 2017 07:37:10 +0000 (09:37 +0200)]
Introduce private link sharing #5023

* SocketAPI has COPL_LOCAL_LINK / EMAIL_LOCAL_LINK commands
* The nautilus and dolphing shell integrations show a submenu from which
  one can share as well as access the private link.
* The SocketAPI provides a new GET_STRINGS command to access localized
  strings.
* The private link can also be accessed from the user/group sharing
  dialog.
* The numeric file id is extracted from the full id to create the
  private link url.

8 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Fri, 7 Jul 2017 00:18:31 +0000 (02:18 +0200)]
[tx-robot] updated from transifex

8 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Thu, 6 Jul 2017 23:15:16 +0000 (01:15 +0200)]
[tx-robot] updated from transifex

8 years agoFix crash on account deletion
Christian Kamm [Thu, 6 Jul 2017 11:43:34 +0000 (13:43 +0200)]
Fix crash on account deletion

Calling forgetSensitiveData() on account deletion leads to a timer for
clearQNAMCache() being queued. Then the Account object is deleted. The
Credentials object stays alive for now because it has a deleteLater
deleter.

If the timer calls into a slot on the Credentials object, the _account
pointer will be invalid at this time.

As a workaround, move the target slot to Account - that way it will not
be called as the account object is already destroyed.

However since Account and Credentials are mutually dependent, it would
be much preferable if their lifetimes were linked, avoiding this
category of bugs.

The current behavior was introduced in
d40c56eda561e3a541bf1b23f70fa8d659d3037e and I currently don't
understand why - maybe there's another way of dealing with the problem
that existed then.

8 years agoUse OWNCLOUD_BIN_DIR directly in C++ code.
Hefee [Thu, 6 Jul 2017 06:41:02 +0000 (08:41 +0200)]
Use OWNCLOUD_BIN_DIR directly in C++ code.

No need to do a STR replacement and the macro changing the path.
It actually broke test execution for Debian.

See https://bugs.debian.org/844937

8 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Thu, 6 Jul 2017 00:18:28 +0000 (02:18 +0200)]
[tx-robot] updated from transifex

8 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Wed, 5 Jul 2017 00:18:35 +0000 (02:18 +0200)]
[tx-robot] updated from transifex

8 years agoAdd a more functional error view #5516 (#5861)
ckamm [Tue, 4 Jul 2017 12:08:41 +0000 (14:08 +0200)]
Add a more functional error view #5516 (#5861)

* Add a more functional error view #5516

* Allow filtering of ignores and warnings to see only important bits.
* Navigate from the folder view to the error view by clicking on the
  error list with the red background.
* Move the error list into its own ui file to allow easier extension.
* Fix issue around tab id handling in ActivitySettings.
* Rename "Action" column to "Issue".
* Change mouse cursor to hand over button and new error list area

Several OSX fixes provided by guruz.

8 years agoAccountState: Add a 1-5min reconnection delay #5872
Christian Kamm [Tue, 4 Jul 2017 10:23:23 +0000 (12:23 +0200)]
AccountState: Add a 1-5min reconnection delay #5872

This only applies when the server was explicitly in maintenance mode or
when it was 503-unavailable.

8 years agoBlacklist: Don't let errors become warnings #5516
Christian Kamm [Tue, 27 Jun 2017 12:17:26 +0000 (14:17 +0200)]
Blacklist: Don't let errors become warnings #5516

Before, blacklisted errors were set to FileIgnored status and hence
displayed as warnings. Now, they have their own BlacklistedError
category which allows them to appear as errors in the issues list and in
the shell integration icons.

8 years agomain.cpp: Fix a compiler warning
Olivier Goffart [Tue, 4 Jul 2017 08:55:41 +0000 (10:55 +0200)]
main.cpp: Fix a compiler warning

 src/gui/main.cpp:112:9: warning: bool literal returned from 'main' [-Wmain]

Used 1 to keep previous behaviour. I supposed the code was meant
to return success (0), but it does not really matter anyway.

8 years agoSyncEngine: Keep local size in SyncItem #5855
Markus Goetz [Fri, 23 Jun 2017 14:53:23 +0000 (16:53 +0200)]
SyncEngine: Keep local size in SyncItem #5855

8 years agoSyncEngineTest: Fix test reliability
Christian Kamm [Tue, 4 Jul 2017 07:57:22 +0000 (09:57 +0200)]
SyncEngineTest: Fix test reliability

There was a rounding issue in the mtimes which sometimes resulted in an
off-by-one error. Caused by storing a full QDateTime in the FileInfo but
the mtime saved to the disk being truncated to seconds.

8 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Tue, 4 Jul 2017 00:18:29 +0000 (02:18 +0200)]
[tx-robot] updated from transifex