RemotePermissions: Fix empty vs null
authorChristian Kamm <mail@ckamm.de>
Wed, 15 Aug 2018 10:16:46 +0000 (12:16 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:03 +0000 (10:58 +0100)
commitbe0fa72fcb07f6c70113b5b9c00e15a51596168d
tree693feb9a79c89f886bf037e56a4cde311b61028c
parent4837bc8d60603eb4d8c8b6da8168abe4b852328d
RemotePermissions: Fix empty vs null

Fixes two bugs that appeared since the introduction of the struct:
- when reading permissions from the journal, null ("") was read as
  empty-not-null
- when reading permissinos from the server, empty ("") was read as null

Addresses #4608
src/common/remotepermissions.cpp
src/common/remotepermissions.h
src/common/syncjournaldb.cpp
src/libsync/discoveryphase.cpp
test/testpermissions.cpp
test/testsyncjournaldb.cpp