nextcloud-desktop/src/libsync
Kevin Ottens 4d1ff01654 Properly handle denormalized href
In case of denormalized paths in the dav href (presence of . or .. in
the path) simple string startsWith comparison wasn't enough to know if
said href ended up in the right namespace. That's why we're now using
QUrl (pretending local file since we don't have a full URL in the href)
to normalize the path before comparison.

This could happen with broken proxies for instance where we would
wrongly validate the dav information resulting in potentially surprising
syncing and name collisions.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-05-18 19:33:34 +02:00
..
creds fix comment typo in httpcredentials.cpp 2019-08-26 20:03:15 +02:00
abstractnetworkjob.cpp Fix: Apply http2 patch from owncloud #1573 - only with Qt >= 5.8 2019-11-14 02:39:06 +01:00
abstractnetworkjob.h Fix: Apply http2 patch from owncloud #1573 - only with Qt >= 5.8 2019-11-14 02:39:06 +01:00
accessmanager.cpp Fix build with older Qt: Disable http2 for now due to Qt bug, add env var (upstream) 2020-03-02 01:47:00 +01:00
accessmanager.h libsync: run clang-tidy modernize-use-nullptr 2018-11-12 18:46:39 +01:00
account.cpp Add support for the directEditing capability 2020-01-18 15:07:51 +01:00
account.h Code cleanup 2020-02-14 03:00:20 +01:00
accountfwd.h License: Adjust license of GPLv2 source files to GPLv2+ 2016-10-25 11:06:54 +02:00
bandwidthmanager.cpp libsync: run clang-tidy modernize-use-nullptr 2018-11-12 18:46:39 +01:00
bandwidthmanager.h bandwidthmanager: Fix unregistering devices on delete 2017-09-25 12:56:20 +02:00
capabilities.cpp Add support for the directEditing capability 2020-01-18 15:07:51 +01:00
capabilities.h Add support for the directEditing capability 2020-01-18 15:07:51 +01:00
clientsideencryption.cpp Fix typos. 2020-05-04 18:11:36 +00:00
clientsideencryption.h Added a nice UI for the E2E-enabled account first connect 2019-05-09 00:37:24 +02:00
clientsideencryptionjobs.cpp Fixed e2e key transmission issue after generation (forgotten content type on sendrequest()) 2019-09-15 11:53:57 +02:00
clientsideencryptionjobs.h libsync: run clang-tidy modernize-use-nullptr 2018-11-12 18:46:39 +01:00
CMakeLists.txt Cleanup/Removal/Adaption/Update to resource files and crresponding code, esp. regarding svg usage 2020-01-18 17:47:17 +01:00
configfile.cpp Updater UI: Implement auto-update option and update button 2020-03-09 02:34:55 +01:00
configfile.h Updater UI: Implement auto-update option and update button 2020-03-09 02:34:55 +01:00
cookiejar.cpp Prepend "nextcloud" for all logging categories 2017-12-28 17:33:10 -02:00
cookiejar.h libsync: run clang-tidy modernize-use-nullptr 2018-11-12 18:46:39 +01:00
discoveryphase.cpp Correct wrong variable 2020-01-15 23:07:14 +01:00
discoveryphase.h libsync: run clang-tidy modernize-use-nullptr 2018-11-12 18:46:39 +01:00
filesystem.cpp Remove unused c_path 2018-01-13 13:58:17 +01:00
filesystem.h Move non-csync-dependent parts of FileSystem to src/common 2017-09-18 14:00:52 +02:00
libsync.md Structure developer documentation 2015-06-29 18:43:21 +02:00
logger.cpp Don't silently kill debug messages 2020-05-12 17:33:13 +02:00
logger.h libsync: run clang-tidy modernize-use-nullptr 2018-11-12 18:46:39 +01:00
networkjobs.cpp Properly handle denormalized href 2020-05-18 19:33:34 +02:00
networkjobs.h JsonApiJob: Add method usePOST to allow anonymous POST requests 2020-01-18 15:03:21 +01:00
nextcloudtheme.cpp No need to overwrite customMedia in the theme 2019-01-31 11:28:46 +01:00
nextcloudtheme.h No need to overwrite customMedia in the theme 2019-01-31 11:28:46 +01:00
owncloudpropagator.cpp Code maintenance - correct some syntax, fix some warnings. 2020-01-18 10:30:34 +01:00
owncloudpropagator.h Harmonizing sorting algorithm (again) 2019-09-28 09:17:12 +02:00
owncloudpropagator_p.h Add error category for http file lock error status 423. 2019-06-11 23:32:10 +02:00
progressdispatcher.cpp Add error category for http file lock error status 423. 2019-06-11 23:32:10 +02:00
progressdispatcher.h libsync: run clang-tidy modernize-use-nullptr 2018-11-12 18:46:39 +01:00
propagatedownload.cpp apply http2 qt resend patch from owncloud 2019-12-25 13:59:15 +08:00
propagatedownload.h libsync: run clang-tidy modernize-use-nullptr 2018-11-12 18:46:39 +01:00
propagatedownloadencrypted.cpp propage*encrypted Q_UNUSED 2018-07-02 12:45:44 +02:00
propagatedownloadencrypted.h Fix sync status running when encryption data is missing 2018-04-09 13:23:52 +02:00
propagateremotedelete.cpp Logging: Avoid the word "Error" 2018-06-06 20:24:32 +02:00
propagateremotedelete.h libsync: run clang-tidy modernize-use-nullptr 2018-11-12 18:46:39 +01:00
propagateremotedeleteencrypted.cpp Properly remove encryption data from JSON of deleted file 2018-04-09 13:23:52 +02:00
propagateremotedeleteencrypted.h Properly remove encryption data from JSON of deleted file 2018-04-09 13:23:52 +02:00
propagateremotemkdir.cpp Prepend "nextcloud" for all logging categories 2017-12-28 17:33:10 -02:00
propagateremotemkdir.h libsync: search'n'replace "Q_DECL_OVERRIDE" with "override" 2018-11-12 18:39:50 +01:00
propagateremotemove.cpp Logging: Avoid the word "Error" 2018-06-06 20:24:32 +02:00
propagateremotemove.h libsync: run clang-tidy modernize-use-nullptr 2018-11-12 18:46:39 +01:00
propagateupload.cpp Fix for #1382 "linux client crashes for no discernable reason" 2019-09-18 18:18:12 +02:00
propagateupload.h Fix memory leak with device pointer 2019-05-08 19:41:48 +02:00
propagateuploadencrypted.cpp Fix typos. 2020-05-04 18:11:36 +00:00
propagateuploadencrypted.h Make sure bool _currentLockingInProgress is first defined to false 2018-04-09 13:23:52 +02:00
propagateuploadng.cpp Fix wrong encoding when specifying extra header with if-match path 2020-02-02 13:35:16 +01:00
propagateuploadv1.cpp Fix memory leak with device pointer 2019-05-08 19:41:48 +02:00
propagatorjobs.cpp Merge pull request #299 from nextcloud/upstream/pr/6349 2018-05-30 08:03:04 +02:00
propagatorjobs.h libsync: search'n'replace "Q_DECL_OVERRIDE" with "override" 2018-11-12 18:39:50 +01:00
syncengine.cpp Qt 5.5 compatibility #ifdef 2020-04-23 20:22:30 +02:00
syncengine.h Rename local discovery option for clarity 2018-06-11 14:50:01 +02:00
syncfileitem.cpp Remove table for e2e and add an e2eMangledName column (#169) 2018-02-12 12:50:51 +01:00
syncfileitem.h Add error category for http file lock error status 423. 2019-06-11 23:32:10 +02:00
syncfilestatus.cpp Revert "Revert "Discovery: consider also the "shared by me" as shared"" 2017-07-25 12:11:33 +02:00
syncfilestatus.h Revert "Revert "Discovery: consider also the "shared by me" as shared"" 2017-07-25 12:11:33 +02:00
syncfilestatustracker.cpp Add error category for http file lock error status 423. 2019-06-11 23:32:10 +02:00
syncfilestatustracker.h Move SyncJournalDB to src/common 2017-09-18 14:00:52 +02:00
syncoptions.h Use std::chrono::milliseconds to represent milliseconds 2018-06-06 17:26:53 +02:00
syncresult.cpp Add error category for http file lock error status 423. 2019-06-11 23:32:10 +02:00
syncresult.h Add error category for http file lock error status 423. 2019-06-11 23:32:10 +02:00
theme.cpp Settings dialog About section: Show minimal version info 2020-03-07 06:38:09 +01:00
theme.h Settings dialog About section: Show minimal version info 2020-03-07 06:38:09 +01:00
wordlist.cpp Fix sync status running when encryption data is missing 2018-04-09 13:23:52 +02:00
wordlist.h [cse] new method, getUnifiedString 2017-10-18 21:51:38 +02:00