pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.69k stars 414 forks source link

Principal with name user@domain.tld not found when using LDAP authentication on Nextcloud #2329

Closed ohmer1 closed 2 years ago

ohmer1 commented 2 years ago

The url should indeed contain some UUID and not the user@domain.tld as identifier. Seem similar to #403.

I had the same problem with the official desktop client. Here is the ticket https://github.com/nextcloud/desktop/issues/3628. Maybe it can help you to see how to fix this issue?

Let me know if I can help.

pbek commented 2 years ago

Could you please provide some context of what you are talking about?

ohmer1 commented 2 years ago

I enabled nextcloud support in QOwnNotes. Everything is green in the connection status but I receive the error message Principal with name user@domain.tld not found. Nothing is synced in the app.

In the apache web server logs, I can see it's trying to use my email address as "identifier", but it should be an UUID when nextcloud is configured with LDAP/AD authentication.

1.2.3.4 - - [13/Dec/2021:02:35:58 +0000] "GET / HTTP/1.1" 302 10452 "-" "Mozilla/5.0"
1.2.3.4 - user@domain.tld [13/Dec/2021:02:35:58 +0000] "PROPFIND /remote.php/dav/calendars/user@domain.tld HTTP/1.1" 404 10830 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070330"
1.2.3.4 - user@domain.tld [13/Dec/2021:02:35:59 +0000] "GET /ocs/v1.php HTTP/1.1" 200 10768 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070330"
1.2.3.4 - user@domain.tld [13/Dec/2021:02:35:59 +0000] "GET /ocs/v1.php/cloud/capabilities HTTP/1.1" 200 12589 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070330"
1.2.3.4 - user@domain.tld [13/Dec/2021:02:35:59 +0000] "GET /index.php/apps/qownnotesapi/api/v1/note/app_info?format=json&notes_path=/Notes/ HTTP/1.1" 200 11389 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070330"

The problematic request is:

1.2.3.4 - user@domain.tld [13/Dec/2021:02:35:58 +0000] "PROPFIND /remote.php/dav/calendars/user@domain.tld HTTP/1.1" 404 10830 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070330"

As you can see, this request returns an error 404 because your code seem to build the url used to access calendars over caldav (/remote.php/dav/calendars/user@domain.tld) by hardcoding the login name in the path. When nextcloud is configured with LDAP/AD authentication, the "identifier" is not the same as username but it's an UUID.

An example of a valid request coming from the official NC file sync client, it should be similar to access calendars:


1.2.3.4 - user@domain.tld [13/Dec/2021:02:35:13 +0000] "PROPFIND /remote.php/dav/files/DF24877F-1845-4D74-C489-FA12598745C6/ HTTP/1.1" 207 9916 "-" "Mozilla/5.0 (Linux) mirall/3.3.0-20210804.143427.acf3bf095-1.0~focal1 (Nextcloud, ubuntu-5.11.0-37-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)"
ohmer1 commented 2 years ago

I found you can lookup the correct identifier with this api request:

curl -s --user "user@domain.tld:password" -H 'OCS-APIRequest: true' https://domain.tld/ocs/v1.php/cloud/user | grep '<id>'

This is what the NC developpers did in https://github.com/nextcloud/desktop/pull/3632/files. Doc can also be found here https://docs.nextcloud.com/server/latest/developer_manual/client_apis/LoginFlow/index.html#obtaining-the-login-credentials.

pbek commented 2 years ago

Nothing is synced in the app.

What "sync" are we talking about? The download of Todo items via CalDAV for the Todo Dialog? Is the button to show the remote note versions or the note trash working? How did you set the username and password? Via the Login to Nextcloud to grant access button in the Nextcloud / ownCloud settings?

ohmer1 commented 2 years ago

What "sync" are we talking about? The download of Todo items via CalDAV for the Todo Dialog? Is the button to show the remote note versions or the note trash working?

Yes I believe. This is in the Nextcloud/Owncloud section in QOwnNotes settings. As you can see, status is ok/green :

qownnotes2021-12-13_20-08

How did you set the username and password? Via the Login to Nextcloud to grant access button in the Nextcloud / ownCloud settings?

Yes I clicked the "Login to nextcloud to grant access". This created an application password. The "loginname" I use to login is my email address, like I use in the NC web gui or the NC desktop app even if my "username" is an uuid.

Extract of the NC documentation about username vs loginname. The example used describe perfectly my case:

loginname: The username that the client must use to login. Note: Keep in mind that this is the loginname and could be different from the username. For example the email address could be used to login but not for generating the webdav URL. You could fetch the actual username from the OCS API endpoint /ocs/v1.php/cloud/user.

pbek commented 2 years ago

Thank you. So Nextcloud's CalDAV is really using a different username than the rest of the APIs (when using a federated login method)?

curl -s --user "user@domain.tld:password" -H 'OCS-APIRequest: true' https://domain.tld/ocs/v1.php/cloud/user | grep ''

Does the Nextcloud Versions and Trash API of QOwnNotesAPI work with this username when you do the request?

Have you setup your Nextcloud caldav or carddav on some other device? If yes, what username are you using there?

ohmer1 commented 2 years ago

I sync my calendar on my Android phone. I used my email address to login and the app found the right "username" by itself. I deleted my account on my phone and added again to capture the server's logs.

Value I inputed in my phone:

The caldav app on my phone found by itself the correct url containing the uuid. It didn't used my email address to build the url even if this is what I inputed as login name. It didn't used the cloud/user api request either. Seem like the data is available via dav protocol too.

Server's logs while I added the caldav account on my phone:

1.2.3.4 - - [15/Dec/2021:02:01:09 +0000] "PROPFIND /.well-known/caldav HTTP/1.1" 301 9064 "-" "CalDAV-Sync/0.4.32 (LGE; phoenix_lao_com; Android 11; fr_CA; org.dmfs.caldav.lib/748; like iOS/5.0.1 (9A405) dataaccessd/1.0)"
1.2.3.4 - - [15/Dec/2021:02:01:09 +0000] "PROPFIND /remote.php/dav/ HTTP/1.1" 401 1845 "-" "CalDAV-Sync/0.4.32 (LGE; phoenix_lao_com; Android 11; fr_CA; org.dmfs.caldav.lib/748; like iOS/5.0.1 (9A405) dataaccessd/1.0)"
1.2.3.4 - email@address.tld [15/Dec/2021:02:01:10 +0000] "PROPFIND /remote.php/dav/ HTTP/1.1" 207 1237 "-" "CalDAV-Sync/0.4.32 (LGE; phoenix_lao_com; Android 11; fr_CA; org.dmfs.caldav.lib/748; like iOS/5.0.1 (9A405) dataaccessd/1.0)"
1.2.3.4 - - [15/Dec/2021:02:01:10 +0000] "PROPFIND /remote.php/dav/principals/users/DF24877F-1845-4D74-C489-FA12598745C6/ HTTP/1.1" 401 2010 "-" "CalDAV-Sync/0.4.32 (LGE; phoenix_lao_com; Android 11; fr_CA; org.dmfs.caldav.lib/748; like iOS/5.0.1 (9A405) dataaccessd/1.0)"
1.2.3.4 - email@address.tld [15/Dec/2021:02:01:10 +0000] "PROPFIND /remote.php/dav/principals/users/DF24877F-1845-4D74-C489-FA12598745C6/ HTTP/1.1" 207 1573 "-" "CalDAV-Sync/0.4.32 (LGE; phoenix_lao_com; Android 11; fr_CA; org.dmfs.caldav.lib/748; like iOS/5.0.1 (9A405) dataaccessd/1.0)"
1.2.3.4 - - [15/Dec/2021:02:01:10 +0000] "PROPFIND /remote.php/dav/calendars/DF24877F-1845-4D74-C489-FA12598745C6/ HTTP/1.1" 401 2010 "-" "CalDAV-Sync/0.4.32 (LGE; phoenix_lao_com; Android 11; fr_CA; org.dmfs.caldav.lib/748; like iOS/5.0.1 (9A405) dataaccessd/1.0)"
1.2.3.4 - email@address.tld [15/Dec/2021:02:01:10 +0000] "PROPFIND /remote.php/dav/calendars/DF24877F-1845-4D74-C489-FA12598745C6/ HTTP/1.1" 207 1909 "-" "CalDAV-Sync/0.4.32 (LGE; phoenix_lao_com; Android 11; fr_CA; org.dmfs.caldav.lib/748; like iOS/5.0.1 (9A405) dataaccessd/1.0)"
pbek commented 2 years ago

curl -s --user "user@domain.tld:password" -H 'OCS-APIRequest: true' https://domain.tld/ocs/v1.php/cloud/user | grep ''

Does the Nextcloud Versions and Trash API of QOwnNotesAPI work with this username when you do the request? I mean the same username Nextcloud CalDAV needs for the Todo Lists in QOwnNotes.

ohmer1 commented 2 years ago

Not sure to understand the question.

The loginname (what I use with the --user parameter in curl requests) is always the same, always set to my email address. Restfull NC api or dav protocols, both always use the same loginname for authentication. Never the uuid. This make sense, because this would not be user friendly to ask the user to remember some randomish uuid to authenticate.

The username used to build the url for caldav is the one returned by the <id> value of the v1.php/cloud/user api request. The username should not be confused with the loginname even if in non-ldap setups they seem to be usually equal. With my limited knowledge of NC internals, the username is not used for authentication. The username is an unique and static user identifier (I could change my email address and my username would not change).

pbek commented 2 years ago

I need something I could do in the initial "Login to grant access" process without knowing if the Nextcloud server uses LDAP auth. And it needs to result in one username and password pair that will work with both CalDAV and all other Nextcloud services like sharing of files and using the note version api and note trash api of QOwnNotesAPI.

pbek commented 2 years ago

And did you really use the "Login to grant access" button to authenticate to your Nextcloud Server?

That button uses the Login Flow v2 that should already provides a loginName.

ohmer1 commented 2 years ago

Yes I used this button. If you want, I can give you an account on my server so you can see.

pbek commented 2 years ago

If you want, I can give you an account on my server so you can see.

that would be nice, thank you

ohmer1 commented 2 years ago

I sent your credentials at the email address I found on your github profile.

pbek commented 2 years ago

curl -s --user "user@domain.tld:password" -H 'OCS-APIRequest: true' https://domain.tld/ocs/v1.php/cloud/user | grep '<id>'

I tested on your server... Bummer, it seems you cannot use the id for the usual API requests. That will make things more complicated...

pbek commented 2 years ago

And I neither was able to use the "Other CalDAV Server" setting of QON. With https://*****.cc/remote.php/dav as calendar base url, my id as username and my password as password. I still get a Calendar username and/or password incorrect.

Are you able to do that?

pbek commented 2 years ago

Calendar username and/or password incorrect

The same when I use the "id" and an app password.

ohmer1 commented 2 years ago

The end user never use the ID by itself. The "user name" made from an UUID is never used for authentication purposes. You should always use the "login name" (email address) to authenticate yourself to the service. The UUID is only used in the *dav url.

Login to NC web gui with the email address as login and go to the calendar app. Click the Import and Settings button and then the Copy caldav url for ios. Even if you logged in with the email address, the calendar app will build you the url based on the username/uuid string and not the email address.

caldav2021-12-20_15-32

pbek commented 2 years ago

Yes, I took the first url as base url. I think QON adds the username... It neither worked with the 2nd url like https://******.cc/remote.php/dav/principals/users/*******-*****-46A8-B806-24523AE41B84/

pbek commented 2 years ago

Hm, so you are saying your configuration needs the id for the CalDAV url and the EMail as username to login to caldav? Tricky... It would take a 2nd request for every request to fetch it. I don't want to do that to all users.

ohmer1 commented 2 years ago

Only when enabling the nextcloud account in QOwnNote I think. The id should not change after that.

Even, I'm still not sure this is required. I don't know how caldav sync on Android does it, but it never call the cloud/user api request and still able to discover correct calendar url. with the uuid. It seem to be able to retrieve the correct url from dav protocol only. I copied the server's logs in https://github.com/pbek/QOwnNotes/issues/2329#issuecomment-994223192 but was not able to retrieve the value myself with manual curl requests. This may be because I don't know the caldav protocol to build correct requests, I just tried some things I found after a quick google search, with no success.

pbek commented 2 years ago

This was quite some work to finally integrate... 😅

21.12.5

pbek commented 2 years ago

There now is a new release, could you please test it and report if it works for you?

ohmer1 commented 2 years ago

I was not able to update my snap package so I removed it and installed the Ubuntu PPA package instead. This installed version 21.12.6-1.

When I try to add my NC account I now get this error when clicking on the "Se connecter au serveur NC/oC".

qon2021-12-26_10-36

When monitoring the apache server's log on my NC instance, I notice there is no request sent by QON when I click the button.

The requests to generate the application password with the other button is working fine. My browser open and QON receive the credentials when I accept the request.

pbek commented 2 years ago

You need to use the login Flow Button to get an account ID stored for webdav. But the normal username password should still work for all other api requests

ohmer1 commented 2 years ago

Yes, this is what I did.

qon2021-12-26_14-35

(I forgot to add the connection name on this capture, but the problem is not there)

After clicking the first button, success message : qon2021-12-26_14-34

pbek commented 2 years ago

That's very strange. I had no issues with the account on your server. I just did the login flow and then pressed the "Connect.." button again, everything is fine (beside the last, because I don't sync with your server).

image

Is there any useful log output if you enable the log panel (see Window / Panels)? Please make sure you also enable debug logging in the log panel (by right-clicking on the panel and and selecting Debug in Options).

pbek commented 2 years ago

I was not able to update my snap package

Maybe it wasn't built yet, I can see 21.12.6 now.

ohmer1 commented 2 years ago

Yeah the snap is up to date now.

About the debug log, I got this when trying to configure my NC account:

[16:13:31] [warning] OpenType support missing for "Ubuntu", script 12
[16:13:31] [warning] OpenType support missing for "Ubuntu", script 11
[16:13:31] [warning] OpenType support missing for "Ubuntu", script 32
[16:13:31] [warning] OpenType support missing for "Ubuntu", script 13
[16:13:31] [warning] OpenType support missing for "Ubuntu", script 20
[16:13:32] [debug] cloudConnection: CloudConnection: <id>0 <name>"" <serverUrl>"" <username>"" <accountId>"" <priority>0
[16:13:42] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:42] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:42] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:42] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:42] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:42] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:42] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:43] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:43] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:44] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:45] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:45] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:46] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:46] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:46] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:46] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:46] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:46] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:47] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:47] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:47] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:48] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:48] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:49] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:49] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:49] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:13:49] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:14:06] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:14:06] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:14:07] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:14:10] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:14:10] [debug] Set proxy configuration to use NO proxy
[16:14:10] [debug] cloudConnection: CloudConnection: <id>0 <name>"" <serverUrl>"" <username>"" <accountId>"" <priority>0
[16:14:11] [debug] Reply from ""
[16:14:11] [warning] "QNetworkReply error 301 from url : " "Protocol \"\" is unknown"
[16:14:11] [debug] Reply from main server url
[16:14:11] [debug] Reply from "/ocs/v1.php/cloud/capabilities"
[16:14:11] [warning] "QNetworkReply error 301 from url /ocs/v1.php/cloud/capabilities: " "Protocol \"\" is unknown"
[16:14:11] [debug] Reply from capabilities page
[16:14:11] [debug] Reply from "/ocs/v1.php"
[16:14:11] [warning] "QNetworkReply error 301 from url /ocs/v1.php: " "Protocol \"\" is unknown"
[16:14:11] [debug] Reply from ownCloud test page
[16:14:11] [debug] Reply from "/index.php/apps/qownnotesapi/api/v1/note/app_info"
[16:14:11] [warning] "QNetworkReply error 301 from url /index.php/apps/qownnotesapi/api/v1/note/app_info?format=json&notes_path=/Notes/: " "Protocol \"\" is unknown"
[16:14:11] [debug] Reply from app info
[16:14:13] [warning] store : QSqlError("", "Parameter count mismatch", "")
[16:14:13] [debug] Set proxy configuration to use NO proxy
[16:14:13] [debug] initShortcuts - 'menuBarIsVisible': true
[16:14:13] [debug] cloudConnection: CloudConnection: <id>0 <name>"" <serverUrl>"" <username>"" <accountId>"" <priority>0
[16:14:13] [debug] loadNoteDirectoryList
[16:14:13] [debug] reloadTagTree
[16:14:13] [debug] reloadTagTree - 'noteSubFolderIds': QVector()
[16:14:13] [debug] reloadNoteSubFolderTree
[16:14:13] [debug] loadNoteDirectoryList
[16:14:13] [debug] reloadTagTree
[16:14:13] [debug] reloadTagTree - 'noteSubFolderIds': QVector(0)
ohmer1 commented 2 years ago

QOwnNotes Debug Information

General Info

Current Date: lun. déc. 27 16:24:09 2021 Version: 21.12.6 Build date: Dec 26 2021 Build number: 928 Platform: linux Operating System: Ubuntu 20.04.2 LTS Build architecture: x86_64 Current architecture: x86_64 Release: Launchpad PPA Qt Version (build): 5.12.8 Qt Version (runtime): 5.12.8 Portable mode: no Settings path / key: /home/user/.config/PBE/QOwnNotes.conf Application database path: /home/user/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite Application arguments: QOwnNotes Qt Debug: 0 Locale (system): fr_CA Locale (interface): empty Primary screen resolution: 1920x1080 Screen resolution(s): 1920x1080, 1920x1080, 1920x1080 Icon theme: Yaru Notes in current note folder: 1 Calendar items: 0 Enabled scripts: 0

Server Info

serverUrl: empty appIsValid: no notesPathExists: unknown connectionErrorMessage: Le protocole "" est inconnu

Spellchecking

Enabled: true Selected language: auto Language codes: en_US, fr, fr_BE, fr_CA, fr_CH, fr_FR, fr_LU, fr_MC Language names: American English (United States), français, français (Belgique), français canadien (Canada), français suisse (Suisse), français (France), français (Luxembourg), français (Monaco) Application dictionaries path: /home/user/.local/share/PBE/QOwnNotes/dicts

Note folders

currentNoteFolderId: 1

Note folder par défaut

id: 1 isCurrent: yes activeTagId: 0 localPath: /home/user/Nextcloud/Notes remotePath: Notes cloudConnectionId: 1 isShowSubfolders: yes isUseGit: no allowDifferentNoteFileName: no activeNoteSubFolder name: empty database file: /home/user/Nextcloud/Notes/notes.sqlite

Cloud connections

Enabled scripts

Settings

ActiveNoteHistoryItem (NoteHistoryItem): <binary data> Debug/fakeOldVersionNumber (bool): false Debug/fileLogging (bool): false Editor/CurrentSchemaKey (QString): EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb Editor/autoBracketClosing (bool): true Editor/autoBracketRemoval (bool): true Editor/disableCursorBlinking (bool): false Editor/editorWidthInDFMOnly (bool): true Editor/highlightCurrentLine (bool): true Editor/indentSize (int): 4 Editor/removeTrailingSpaces (bool): false Editor/showLineNumbers (bool): false Editor/useTabIndent (bool): false Editor/vimMode (bool): false LastUpdateCheck (QDateTime): 2021-12-27T16:23:29.909 MainWindow/geometry (QByteArray): <binary data> MainWindow/mainToolBar.iconSize (int): 24 MainWindow/menuBarGeometry (QByteArray): <binary data> MainWindow/noteTextEdit.code.font (QString): monospace,11,-1,2,50,0,0,0,0,0 MainWindow/noteTextEdit.font (QString): Ubuntu,11,-1,5,50,0,0,0,0,0 MainWindow/noteTextView.code.font (QString): monospace,11,-1,2,50,0,0,0,0,0 MainWindow/noteTextView.font (QString): Ubuntu,11,-1,5,50,0,0,0,0,0 MainWindow/noteTextView.ignoreCodeFontSize (bool): true MainWindow/noteTextView.rtl (bool): false MainWindow/noteTextView.underline (bool): true MainWindow/noteTextView.useEditorStyles (bool): true MainWindow/noteTextView.useInternalExportStyling (bool): true MainWindow/showNotesFromAllNoteSubFolders (bool): true NoteFolder-1/NoteTabNameList (QString): Provigo NoteFolder-1/NoteTabStickinessList: empty NoteFolder-1/NoteTabSubFolderPathDataList (QString): empty NoteHistory-1 (QVariantList): <variant list with 2 item(s)> NoteHistoryCurrentIndex-1 (QString): 1 PiwikClientId (QString): <hidden> ScriptRepositoryDialog/mainSplitterState (QByteArray): <binary data> SearchEngineId (int): 2 SettingsDialog/geometry (QByteArray): <binary data> SettingsDialog/mainSplitterState (QByteArray): <binary data> ShowSystemTray (bool): false StartHidden (bool): false WelcomeDialog/geometry (QByteArray): <binary data> acceptAllExternalModifications (bool): false allowNoteEditing (bool): true allowOnlyOneAppInstance (bool): true appMetrics/disableAppHeartbeat (bool): false appMetrics/disableTracking (bool): false appMetrics/notificationShown (QString): true automaticNoteFolderDatabaseClosing (bool): false checkSpelling (bool): true closeTodoListAfterSave (bool): false cryptoKey (QString): <hidden> currentNoteFolderId (QString): 1 currentWorkspace (QString): initial cursorWidth (int): 1 darkMode (bool): false darkModeColors (bool): false darkModeIconTheme (bool): false darkModeTrayIcon (bool): false defaultNoteFileExtension (QString): md disableAutomaticUpdateDialog (bool): true disableSavedSearchesAutoCompletion (bool): false dockWasInitializedOnce (QString): true enableNoteTree (bool): false enableSocketServer (bool): true enableWebAppSupport (bool): false externalEditorPath (QString): empty fullyHighlightedBlockquotes (bool): false gitCommitInterval (int): 30 gitExecutablePath (QString): empty gitLogCommand (QString): empty guiFirstRunInit (bool): true ignoreAllExternalModifications (bool): false ignoreAllExternalNoteFolderChanges (bool): false ignoreNoteSubFolders (QString): ^\. imageScaleDown (bool): false imageScaleDownMaximumHeight (int): 1024 imageScaleDownMaximumWidth (int): 1024 initialLayoutIdentifier (QString): full insertTimeFormat (QString): empty interfaceFontSize (int): 11 interfaceLanguage (QString): empty internalIconTheme (bool): false itemHeight (int): 17 legacyLinking (bool): false localTrash/autoCleanupDays (int): 30 localTrash/autoCleanupEnabled (bool): true localTrash/supportEnabled (bool): true markdownHighlightingEnabled (bool): true navigationPanelHideSearch (bool): false networking/ignoreSSLErrors (bool): false networking/proxyType (int): 2 newNoteAskHeadline (bool): false noteEditIsCentralWidget (bool): true noteFileExtensionList (QStringList): md, txt noteListPreview (bool): false noteSaveIntervalTime (int): 10 noteSubfoldersPanelDisplayAsFullTree (bool): true noteSubfoldersPanelHideSearch (bool): false noteSubfoldersPanelOrder (int): 0 noteSubfoldersPanelShowFullPath (bool): false noteSubfoldersPanelShowNotesRecursively (bool): false noteSubfoldersPanelShowRootFolderName (bool): true noteSubfoldersPanelSort (int): 0 notesPanelOrder (int): 0 notesPanelSort (int): 1 notesPath (QString): /home/user/Nextcloud/Notes notifyAllExternalModifications (bool): false overrideInterfaceFontSize (bool): false ownCloud/supportEnabled (bool): true ownCloud/todoCalendarBackend (int): 3 ownCloud/todoCalendarCalDAVPassword (QString): <hidden> ownCloud/todoCalendarCalDAVServerUrl (QString): empty ownCloud/todoCalendarCalDAVUsername (QString): empty ownCloud/todoCalendarCloudConnectionId (int): 0 ownCloud/todoCalendarDisplayNameList (QStringList): empty ownCloud/todoCalendarEnabledList (QStringList): empty ownCloud/todoCalendarEnabledUrlList (QStringList): empty ownCloud/todoCalendarUrlList (QStringList): empty ownCloudInfo/appIsValid (bool): false ownCloudInfo/connectionErrorMessage (QString): Le protocole "" est inconnu ownCloudInfo/notesPathExistsText (QString): unknown ownCloudInfo/serverVersion (QString): empty recentNoteFolders (QString): /home/user/Nextcloud restoreCursorPosition (bool): true restoreLastNoteAtStartup (bool): true restoreNoteTabs (bool): true showMatches (bool): true showMenuBar (bool): true showStatusBar (bool): true spellCheckLanguage (QString): auto systemIconTheme (bool): false taggingShowNotesRecursively (bool): false tagsPanelHideNoteCount (bool): false tagsPanelHideSearch (bool): false tagsPanelOrder (int): 0 tagsPanelSort (int): 0 todoCalendarSupport (bool): true toolbar/1/items (QStringList): action_New_note, action_Find_note, action_Remove_note, action_Open_note_in_external_editor, actionShow_local_trash, actionAllow_note_editing, , action_Back_in_note_history, action_Forward_in_note_history, , action_Find_text_in_note, actionReplace_in_current_note, , actionShow_versions, actionShow_trash, actionShare_note, , actionShow_Todo_List toolbar/1/name (QString): mainToolBar toolbar/1/title (QString): barre d'outils principale toolbar/2/items (QStringList): actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote toolbar/2/name (QString): formattingToolbar toolbar/2/title (QString): barre d'outils de formatage toolbar/3/items (QStringList): actionInsert_text_link, actionInsert_image, actionInsert_current_time toolbar/3/name (QString): insertingToolbar toolbar/3/title (QString): barre d'outils d'insertion toolbar/4/items (QStringList): action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note toolbar/4/name (QString): encryptionToolbar toolbar/4/title (QString): barre d'outils de chiffrement toolbar/5/items (QStringList): actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size toolbar/5/name (QString): windowToolbar toolbar/5/title (QString): barre d'outils de fenĂȘtre toolbar/6/items (QStringList): action_Quit toolbar/6/name (QString): quitToolbar toolbar/6/title (QString): quitter la barre d’outils toolbar/size (int): 6 useNoteFolderButtons (bool): false useUNIXNewline (bool): false webAppClientService/serverUrl (QString): wss://app.qownnotes.org webAppClientService/token (QString): <hidden> webSocketServerService/bookmarksNoteName (QString): Bookmarks webSocketServerService/bookmarksTag (QString): bookmarks webSocketServerService/commandSnippetsNoteName (QString): Commands webSocketServerService/commandSnippetsTag (QString): commands webSocketServerService/port (int): 22222 workspace-initial/name (QString): Complet workspace-initial/noteSubFolderDockWidgetVisible (QString): true workspace-initial/windowState (QByteArray): <binary data> workspaces (QString): initial

System environment

SHELL: /bin/bash SESSION_MANAGER: local/computer:@/tmp/.ICE-unix/3557,unix/computer:/tmp/.ICE-unix/3557 QT_ACCESSIBILITY: 1 COLORTERM: truecolor XDG_CONFIG_DIRS: /etc/xdg/xdg-ubuntu:/etc/xdg XDG_MENU_PREFIX: gnome- GNOME_DESKTOP_SESSION_ID: this-is-deprecated LANGUAGE: fr_CA:fr MANDATORY_PATH: /usr/share/gconf/ubuntu.mandatory.path GNOME_SHELL_SESSION_MODE: ubuntu SSH_AUTH_SOCK: /run/user/1000/keyring/ssh XMODIFIERS: @im=ibus DESKTOP_SESSION: ubuntu SSH_AGENT_PID: 3514 GTK_MODULES: gail:atk-bridge PWD: /home/user LOGNAME: user XDG_SESSION_DESKTOP: ubuntu XDG_SESSION_TYPE: x11 GPG_AGENT_INFO: /run/user/1000/gnupg/S.gpg-agent:0:1 XAUTHORITY: /run/user/1000/gdm/Xauthority GJS_DEBUG_TOPICS: JS ERROR;JS LOG WINDOWPATH: 2 HOME: /home/user USERNAME: user IM_CONFIG_PHASE: 1 LANG: fr_CA.UTF-8 LS_COLORS: rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: XDG_CURRENT_DESKTOP: ubuntu:GNOME VTE_VERSION: 6003 GNOME_TERMINAL_SCREEN: /org/gnome/Terminal/screen/f8f8dd3b_bff2_4cf0_85dd_5d2ae5dcb29d INVOCATION_ID: a28c7ba0a24d4d67be008c99785b2240 MANAGERPID: 3304 GJS_DEBUG_OUTPUT: stderr LESSCLOSE: /usr/bin/lesspipe %s %s XDG_SESSION_CLASS: user TERM: xterm-256color DEFAULTS_PATH: /usr/share/gconf/ubuntu.default.path LESSOPEN: | /usr/bin/lesspipe %s USER: user GNOME_TERMINAL_SERVICE: :1.104 DISPLAY: :0 SHLVL: 1 GUIX_LOCPATH: /home/user/.guix-profile/lib/locale QT_IM_MODULE: ibus XDG_RUNTIME_DIR: /run/user/1000 JOURNAL_STREAM: 8:66332 XDG_DATA_DIRS: /usr/share/ubuntu:/home/user/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop PATH: /home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin GDMSESSION: ubuntu DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus _: /usr/bin/QOwnNotes

pbek commented 2 years ago

Cloud connections

you have none, you should at least have one! very strange

[16:13:46] [warning] store : QSqlError("", "Parameter count mismatch", "")

I don't know how those happen! Do you have the same issue when running QOwnNotes in a new session (see cli-parameters)?

pbek commented 2 years ago

[16:13:46] [warning] store : QSqlError("", "Parameter count mismatch", "")

Hah, I get the error when I create a new connection! It works just for previous connections... I'll fix that tomorrow.

pbek commented 2 years ago

21.12.7

pbek commented 2 years ago

There now is a new release, could you please test it and report if it works for you?

ohmer1 commented 2 years ago

Yes, it works fine now!

Thank you!

pbek commented 2 years ago

Great, thank you for testing!

Traace commented 2 years ago

The issue still exists...

pbek commented 2 years ago

Can you please open a new issue and additionally provide server logs.