nextcloud-desktop.git
11 years agoLsColXMLParser: More testing 2
Markus Goetz [Tue, 14 Apr 2015 12:56:25 +0000 (14:56 +0200)]
LsColXMLParser: More testing 2

11 years agoLsColXMLParser: More testing
Markus Goetz [Tue, 14 Apr 2015 12:41:48 +0000 (14:41 +0200)]
LsColXMLParser: More testing

11 years agotest xmlparser: Verify call to parse()
Klaas Freitag [Tue, 14 Apr 2015 11:45:09 +0000 (13:45 +0200)]
test xmlparser: Verify call to parse()

11 years agoAdded unit test for XML Parser class.
Klaas Freitag [Tue, 14 Apr 2015 06:37:06 +0000 (08:37 +0200)]
Added unit test for XML Parser class.

11 years agoLsColJob: Create a XML parser object for better unit testability.
Klaas Freitag [Tue, 14 Apr 2015 06:36:17 +0000 (08:36 +0200)]
LsColJob: Create a XML parser object for better unit testability.

11 years agoLsColXMLParser: let parse return bool.
Klaas Freitag [Tue, 14 Apr 2015 11:41:51 +0000 (13:41 +0200)]
LsColXMLParser: let parse return bool.

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Tue, 14 Apr 2015 06:18:33 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoTranslations: Try to add Serbian #3083
Markus Goetz [Mon, 13 Apr 2015 16:27:28 +0000 (18:27 +0200)]
Translations: Try to add Serbian #3083

11 years agoDiscovery: Explicitly check for XML parser errors
Markus Goetz [Mon, 13 Apr 2015 14:04:24 +0000 (16:04 +0200)]
Discovery: Explicitly check for XML parser errors

..instead of relying that our state machine does not do anything in that case.

11 years agoDiscovery: Initialize error with EIO in constructor
Markus Goetz [Mon, 13 Apr 2015 13:49:33 +0000 (15:49 +0200)]
Discovery: Initialize error with EIO in constructor

This is safer, initializing it in remote_vio_opendir_hook was enough though.

11 years agoDiscovery: Initialize error with EIO
Markus Goetz [Mon, 13 Apr 2015 13:36:07 +0000 (15:36 +0200)]
Discovery: Initialize error with EIO

11 years agoDiscovery: Add a sanity check when results are parsed
Markus Goetz [Mon, 13 Apr 2015 13:10:04 +0000 (15:10 +0200)]
Discovery: Add a sanity check when results are parsed

11 years agoCSync: Log if file_id is too long
Markus Goetz [Mon, 13 Apr 2015 12:58:25 +0000 (14:58 +0200)]
CSync: Log if file_id is too long

11 years agoRestore submodule
Olivier Goffart [Mon, 13 Apr 2015 11:03:46 +0000 (13:03 +0200)]
Restore submodule

11 years agoowncloudcmd: Filter out empty lines in selectivesync
Klaas Freitag [Sun, 12 Apr 2015 10:59:25 +0000 (12:59 +0200)]
owncloudcmd: Filter out empty lines in selectivesync

11 years agoNetworkjobs: Only log a subset of the account url.
Klaas Freitag [Sun, 12 Apr 2015 10:35:40 +0000 (12:35 +0200)]
Networkjobs: Only log a subset of the account url.

This avoids disclosing of user and password in the logfile which can
happen in some cases.

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Sun, 12 Apr 2015 06:18:27 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Sat, 11 Apr 2015 06:18:26 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoProtocolWidget: Fix adding of seconds. #2535
Christian Kamm [Fri, 10 Apr 2015 10:11:35 +0000 (12:11 +0200)]
ProtocolWidget: Fix adding of seconds. #2535

11 years agoAuthRedirect: Use the configured DAV path. #3082
Christian Kamm [Fri, 10 Apr 2015 07:24:25 +0000 (09:24 +0200)]
AuthRedirect: Use the configured DAV path. #3082

11 years agoHandle redirect of auth request. #3082
Christian Kamm [Thu, 9 Apr 2015 11:38:52 +0000 (13:38 +0200)]
Handle redirect of auth request. #3082

11 years agoReconcile: Fix clang warning
Olivier Goffart [Thu, 9 Apr 2015 13:06:48 +0000 (15:06 +0200)]
Reconcile: Fix clang warning

csync_reconcile.c:159:26: warning: address of array 'tmp->path' will always evaluate to 'true' [-Wpointer-bool-conversion]
                if( tmp->path ) {
                ~~  ~~~~~^~~~

csync_file_stat_s::path is an array so it is never null
What was meant here is to check if the string was not empty

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Thu, 9 Apr 2015 06:18:32 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoDiscovery: Speed up initial run. #2796
Christian Kamm [Wed, 8 Apr 2015 13:30:07 +0000 (15:30 +0200)]
Discovery: Speed up initial run. #2796

11 years agoSync: Fix sync of deletions during 503. #2894
Christian Kamm [Wed, 8 Apr 2015 08:50:08 +0000 (10:50 +0200)]
Sync: Fix sync of deletions during 503. #2894

11 years agoOnly show share dialog if we are connected.
Roeland Jago Douma [Mon, 16 Mar 2015 15:26:35 +0000 (16:26 +0100)]
Only show share dialog if we are connected.

11 years agoSyncEngine: Fix a crash in csync_vio_file_stat_copy #3051
Jocelyn Turcotte [Tue, 7 Apr 2015 14:55:04 +0000 (16:55 +0200)]
SyncEngine: Fix a crash in csync_vio_file_stat_copy #3051

In some cryptic cases where the getetag property wasn't returned by
the server, we might be trying to c_strdup a null pointer in
csync_vio_file_stat_copy.

At least avoid crashing in this case by looking for
CSYNC_VIO_FILE_STAT_FIELDS_ETAG, like csync_vio_file_stat_destroy
does.

11 years agoSyncEngine: Fix a crash caused by an invalid DiscoveryDirectoryResult::iterator ...
Jocelyn Turcotte [Thu, 2 Apr 2015 13:16:33 +0000 (15:16 +0200)]
SyncEngine: Fix a crash caused by an invalid DiscoveryDirectoryResult::iterator #3051

The default constructor of the iterator points to NULL, which makes
it != end() but invalid to dereference.

Use an integer index instead to keep 0 as a valid default value that
can always correctly be checked against size().

Also make sure that no data is shared between threads by making the
csync_vio_file_stat_t copyable and passing it as const.

11 years agoSharedialog: Fix compiler warnings.
Christian Kamm [Wed, 8 Apr 2015 06:59:36 +0000 (08:59 +0200)]
Sharedialog: Fix compiler warnings.

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Wed, 8 Apr 2015 06:18:30 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoMore GUI refinements.
Klaas Freitag [Thu, 26 Mar 2015 17:08:06 +0000 (18:08 +0100)]
More GUI refinements.

11 years agoShareDialog: handle resize properly with elided text
Klaas Freitag [Thu, 26 Mar 2015 16:23:29 +0000 (17:23 +0100)]
ShareDialog: handle resize properly with elided text

11 years agoShareDialog: Some GUI rework requested by Jan.
Klaas Freitag [Thu, 26 Mar 2015 15:51:31 +0000 (16:51 +0100)]
ShareDialog: Some GUI rework requested by Jan.

11 years agoMerge remote-tracking branch into 1.8
Olivier Goffart [Tue, 7 Apr 2015 08:42:27 +0000 (10:42 +0200)]
Merge remote-tracking branch into 1.8

11 years agoPropfindJob: fix xml parsing
Olivier Goffart [Tue, 7 Apr 2015 08:35:27 +0000 (10:35 +0200)]
PropfindJob:  fix xml parsing

It would only find the first property

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Tue, 7 Apr 2015 06:18:46 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoMerge remote-tracking branch into 1.8
Olivier Goffart [Tue, 7 Apr 2015 06:02:55 +0000 (08:02 +0200)]
Merge remote-tracking branch into 1.8

11 years agoAbstractSslErrorHandler: Also give QSslConfiguration
Markus Goetz [Mon, 6 Apr 2015 19:46:03 +0000 (21:46 +0200)]
AbstractSslErrorHandler: Also give QSslConfiguration

11 years agoAccountState: Fix uninitialized memory access spotted by valgrind
Olivier Goffart [Mon, 6 Apr 2015 14:20:28 +0000 (16:20 +0200)]
AccountState: Fix uninitialized memory access spotted by valgrind

QuotaInfo's constructor uses the AccountState's _state which is
initialized after

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Sat, 4 Apr 2015 06:18:40 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agotheme: fix compilation of libsync without QtGui
Olivier Goffart [Fri, 3 Apr 2015 09:27:06 +0000 (11:27 +0200)]
theme: fix compilation of libsync without QtGui

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Fri, 3 Apr 2015 06:18:33 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoDiscovery: Add warning if returned etag is 0
Markus Goetz [Thu, 2 Apr 2015 14:52:53 +0000 (16:52 +0200)]
Discovery: Add warning if returned etag is 0

There will be another bugfix which fixes
https://gist.github.com/jturcotte/3d5a7874d26bc27b1be9
directory.

11 years agoSyncEngine: Show more timing measurements #3064
Markus Goetz [Thu, 2 Apr 2015 13:18:19 +0000 (15:18 +0200)]
SyncEngine: Show more timing measurements #3064

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Thu, 2 Apr 2015 06:18:44 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoClean up remains of SOCKETAPI_TCP
Jocelyn Turcotte [Wed, 1 Apr 2015 12:45:05 +0000 (14:45 +0200)]
Clean up remains of SOCKETAPI_TCP

11 years agoFix a crash on shutdown in ~SocketApi #3057
Jocelyn Turcotte [Wed, 1 Apr 2015 12:40:34 +0000 (14:40 +0200)]
Fix a crash on shutdown in ~SocketApi #3057

Deleting the QLocalSocket while iterating the QList with qDeleteAll
would trigger onLostConnection, which would modify the list mid-air
and leave dangling pointers in it.

11 years agoWindows: Add version information for owncloud.exe
Jocelyn Turcotte [Wed, 1 Apr 2015 11:45:04 +0000 (13:45 +0200)]
Windows: Add version information for owncloud.exe

This should help us know what version or build number a crash report was generated with.

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Wed, 1 Apr 2015 06:18:37 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Tue, 31 Mar 2015 06:18:45 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoUpdater: Give context as to which app is about to be updated
Daniel Molkentin [Mon, 30 Mar 2015 12:38:19 +0000 (14:38 +0200)]
Updater: Give context as to which app is about to be updated

Fixes #3040

11 years agoPropagator: Fix compile
Markus Goetz [Mon, 30 Mar 2015 06:41:37 +0000 (08:41 +0200)]
Propagator: Fix compile

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Sun, 29 Mar 2015 06:18:47 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Sun, 29 Mar 2015 05:15:23 +0000 (01:15 -0400)]
[tx-robot] updated from transifex

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Sat, 28 Mar 2015 06:18:42 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoRemove unused HttpConfigFile.
Christian Kamm [Fri, 27 Mar 2015 12:19:17 +0000 (13:19 +0100)]
Remove unused HttpConfigFile.

11 years agoPropagator: Debug output regarding OC-ETag
Markus Goetz [Fri, 27 Mar 2015 12:16:11 +0000 (13:16 +0100)]
Propagator: Debug output regarding OC-ETag

We can remove this in some time, but currently it is interesting
to see for what server setup is no ETag but an OC-ETag.

11 years agoowncloudcmd: Always trail path with /
Markus Goetz [Fri, 27 Mar 2015 12:15:43 +0000 (13:15 +0100)]
owncloudcmd: Always trail path with /

Else the csync code vs the Qt code get confused.

11 years agoProxy: More debug, always set returned system proxy
Markus Goetz [Fri, 27 Mar 2015 10:53:58 +0000 (11:53 +0100)]
Proxy: More debug, always set returned system proxy

11 years agoProtocolWidget: Always add seconds to the DateTime locale. #2535
Christian Kamm [Fri, 27 Mar 2015 08:07:21 +0000 (09:07 +0100)]
ProtocolWidget: Always add seconds to the DateTime locale. #2535

11 years agoFix clang warnings about deleting incomplete 'Account'.
Christian Kamm [Fri, 27 Mar 2015 10:11:44 +0000 (11:11 +0100)]
Fix clang warnings about deleting incomplete 'Account'.

11 years agoProxy: Fix compile harder
Markus Goetz [Fri, 27 Mar 2015 09:36:34 +0000 (10:36 +0100)]
Proxy: Fix compile harder

11 years agoCookieJar: Don't accidentally overwrite cookies. #2808
Christian Kamm [Fri, 27 Mar 2015 09:49:24 +0000 (10:49 +0100)]
CookieJar: Don't accidentally overwrite cookies. #2808

Calling save() in the CookieJar destructor was problematic. For instance
we sometimes create a new QNAM with a new CookieJar and then call
setCookieJar() on it to assign some other jar. That destroy the fresh
jar and potentially overwrite cookies.

Also explicitly saving the account's cookies when the account is saved
is more explicit and thus more reliable than counting on the Account
destructor to do it.

11 years agoAccount: Destroy on exit.
Christian Kamm [Fri, 27 Mar 2015 09:30:35 +0000 (10:30 +0100)]
Account: Destroy on exit.

During shutdown we want the account object to be deleted and
therefore we need to be able to remove the strong reference
in AccountManager.

11 years agoConValidator: Delete instance if no credentials.
Christian Kamm [Fri, 27 Mar 2015 09:24:09 +0000 (10:24 +0100)]
ConValidator: Delete instance if no credentials.

11 years agoHttpCreds: Delete password from old location. #2186
Christian Kamm [Thu, 26 Mar 2015 10:15:24 +0000 (11:15 +0100)]
HttpCreds: Delete password from old location. #2186

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Fri, 27 Mar 2015 06:18:47 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoProxy: Fix compile
Markus Goetz [Thu, 26 Mar 2015 17:36:37 +0000 (18:36 +0100)]
Proxy: Fix compile

11 years agoQt4: Fix compile
Markus Goetz [Thu, 26 Mar 2015 14:17:02 +0000 (15:17 +0100)]
Qt4: Fix compile

11 years agoOn creation of a share always retrieve the share
Roeland Jago Douma [Thu, 19 Mar 2015 08:05:57 +0000 (09:05 +0100)]
On creation of a share always retrieve the share

This makes sure that if a default expiration date is set this is reflected in
the dialog. #2889

11 years agoHttpCreds: Fill pw dialog with previous password. #2848 #2879
Christian Kamm [Wed, 25 Mar 2015 12:27:40 +0000 (13:27 +0100)]
HttpCreds: Fill pw dialog with previous password. #2848 #2879

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Thu, 26 Mar 2015 06:18:43 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoSslButton: Make menu creation lazy
Markus Goetz [Wed, 25 Mar 2015 14:39:53 +0000 (15:39 +0100)]
SslButton: Make menu creation lazy

Saves ~200msec on my not-so-old MBP on OS X.
For #3007 #2990

11 years agoThemes: Cache icons instead of rebuilding a lot.
Christian Kamm [Wed, 25 Mar 2015 13:57:23 +0000 (14:57 +0100)]
Themes: Cache icons instead of rebuilding a lot.

11 years agoProxy: Fix issues with previous patch
Markus Goetz [Wed, 25 Mar 2015 11:25:18 +0000 (12:25 +0100)]
Proxy: Fix issues with previous patch

This is for #2993 and #2802

11 years agoProxy: Look up system proxy from different thread
Markus Goetz [Tue, 24 Mar 2015 20:30:42 +0000 (21:30 +0100)]
Proxy: Look up system proxy from different thread

We should actually upstream this into QNAM.

This is for #2993 and #2802

11 years agoAccount: Unusued variable
Markus Goetz [Tue, 24 Mar 2015 10:01:06 +0000 (11:01 +0100)]
Account: Unusued variable

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Wed, 25 Mar 2015 06:18:53 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoAdd user id param
Daniel Molkentin [Tue, 24 Mar 2015 21:05:40 +0000 (22:05 +0100)]
Add user id param

11 years agoSync engine: Check the blacklist for the right tree
Olivier Goffart [Tue, 24 Mar 2015 11:17:48 +0000 (12:17 +0100)]
Sync engine: Check the blacklist for the right tree

When the operation is download, we have a INSTRUCTION_NONE for the local
tree, but we should not check the blacklist just yet.

11 years agoRevert "Switch back to an existing sha"
Jocelyn Turcotte [Tue, 24 Mar 2015 09:23:49 +0000 (10:23 +0100)]
Revert "Switch back to an existing sha"

This reverts commit 48c92225787336e3b2400c1ee174cc1f93a58cf0.
The submodule repository now has the required commit.

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Tue, 24 Mar 2015 06:18:42 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoSwitch back to an existing sha
Daniel Molkentin [Mon, 23 Mar 2015 21:40:57 +0000 (22:40 +0100)]
Switch back to an existing sha

11 years agoAdd docker buildscript for win32
Daniel Molkentin [Mon, 23 Mar 2015 21:22:54 +0000 (22:22 +0100)]
Add docker buildscript for win32

11 years agoMerge pull request #3008 from owncloud/passman
Carla Schroder [Mon, 23 Mar 2015 17:55:24 +0000 (10:55 -0700)]
Merge pull request #3008 from owncloud/passman

add note re password managers

11 years agoadd note re password managers
Carla Schroder [Mon, 23 Mar 2015 17:52:57 +0000 (10:52 -0700)]
add note re password managers

11 years agoSSLButton: Fix a crash
Olivier Goffart [Mon, 23 Mar 2015 17:28:51 +0000 (18:28 +0100)]
SSLButton: Fix a crash

Made with danimo.
Attempt to fix a crash seen on breakpad reports.
(cc06b990-0c10-40eb-bcec-4d3902150320)

11 years agoActivity: Correctly restore column sizes
Daniel Molkentin [Mon, 23 Mar 2015 17:22:12 +0000 (18:22 +0100)]
Activity: Correctly restore column sizes

Fixes: #3005
11 years agoAdd-folder Wizard: Select the newly created folder
Olivier Goffart [Mon, 23 Mar 2015 15:50:37 +0000 (16:50 +0100)]
Add-folder Wizard: Select the newly created folder

11 years agoAdd-folder wizard: Make sure there is a scrollbar if folder names are too long
Olivier Goffart [Mon, 23 Mar 2015 15:28:42 +0000 (16:28 +0100)]
Add-folder wizard: Make sure there is a scrollbar if folder names are too long

Fixes #2962

11 years agoFix a crash when accessing a dangling UploadDevice pointer #2984
Jocelyn Turcotte [Mon, 23 Mar 2015 15:13:52 +0000 (16:13 +0100)]
Fix a crash when accessing a dangling UploadDevice pointer #2984

This is largely a guess, but this is the only place where we use
a QIODevice to push data through QNAM and that the QIODevice isn't
a direct child of the QNetworkReply.

Fix the issue by making sure that we don't go back to the event loop
and possibly handle network events between the destruction of the
upload QIODevice and the QNetworkReply, which might lead to QNAM
dereferencing a dangling QIODevice pointer.

11 years agoapplication: --confdir option with invalid direcotry now exit
Olivier Goffart [Mon, 23 Mar 2015 13:59:29 +0000 (14:59 +0100)]
application: --confdir option with invalid direcotry now exit

Show an error and exit if an invalid directory (eg, a file) is passed to --confdir

Fixes: #2453
11 years agoDisable asserts in official builds
Jocelyn Turcotte [Mon, 23 Mar 2015 12:43:59 +0000 (13:43 +0100)]
Disable asserts in official builds

Make sure that we define NDEBUG in all configurations.
Also remove inconsistent defines:
WIN32: We don't use
_DEBUG;_WINDOWS;_USRDLL: Should be defined by the compiler if necessary
OCCONTEXTMENU_EXPORTS: We currently don't use dllimport anyway

This also update the binary submodule with an updated build.

11 years agoMerge pull request #2997 from owncloud/fix_shell-integration-python3
Daniel Molkentin [Mon, 23 Mar 2015 10:28:28 +0000 (11:28 +0100)]
Merge pull request #2997 from owncloud/fix_shell-integration-python3

fix python3 syntax errors

11 years agoMerge pull request #2998 from owncloud/remove-old-mirall-translation
Olivier Goffart [Mon, 23 Mar 2015 10:06:14 +0000 (11:06 +0100)]
Merge pull request #2998 from owncloud/remove-old-mirall-translation

Remove forgotten file.

11 years agoRemove forgotten file.
Hefee [Sun, 22 Mar 2015 17:01:25 +0000 (18:01 +0100)]
Remove forgotten file.

11 years agofix python3 syntax errors
Hefee [Sun, 22 Mar 2015 16:49:09 +0000 (17:49 +0100)]
fix python3 syntax errors

11 years ago[tx-robot] updated from transifex
Jenkins for ownCloud [Fri, 20 Mar 2015 06:18:41 +0000 (02:18 -0400)]
[tx-robot] updated from transifex

11 years agoCookieJar: Session cookies should *not* be stored in cookies.db.
Christian Kamm [Thu, 19 Mar 2015 10:57:25 +0000 (11:57 +0100)]
CookieJar: Session cookies should *not* be stored in cookies.db.

11 years agoWindows: Reset QNAM as a workaround. #2899 #2895 #2973
Christian Kamm [Thu, 19 Mar 2015 10:40:47 +0000 (11:40 +0100)]
Windows: Reset QNAM as a workaround. #2899 #2895 #2973

The QNetworkAccessManager is reset when we are disconnected, just
before attempting to fetch the server's status.php.

This may help fix the problem described in various issues where we
get 'Connection closed' or timeout errors after the OS has woken
from sleep.