Closed paulcalabro closed 5 years ago
I cannot reproduce this on Mojave, my new note is named Note 2019-10-02T05.32.18.md
. Can you please elaborate on your point 1. What exactly did you do?
And is there any useful log output while you are creating that note if you enable the log panel (see Window / Panels)? Please make sure you also enable debug logging.
Here's a video that reproduces the issue (the gif was too large to insert here):
https://nextcloud.paulcalabro.com/s/gtj5Paz8RJJYdWM
And here's the debug log:
[21:46:55] [debug] setCurrentNote - 'note': Note: <id>13 <name>"Test title" <fileName>"Test title.md" <noteSubFolderId>1 <relativePath>"Test" <hasDirtyData>false - 'updateNoteText': true - 'updateSelectedNote': false
[21:46:55] [debug] cloudConnection: CloudConnection: <id>1 <name>"Default" <serverUrl>"https://nextcloud.paulcalabro.com" <username>"paulcalabro" <priority>1
[21:46:55] [debug] added to history: NoteHistoryItem: <noteName>"Test title" <noteSubFolderPathData>"Test" <cursorPosition>0 <relativeScrollBarPosition>0
[21:46:55] [debug] cloudConnection: CloudConnection: <id>1 <name>"Default" <serverUrl>"https://nextcloud.paulcalabro.com" <username>"paulcalabro" <priority>1
[21:46:55] [debug] on_action_Open_note_in_external_editor_triggered - 'url': QUrl("file:///Users/pcalabro/Nextcloud/Notes/Test/Test title.md")
[21:46:57] [debug] Reply from "/ocs/v2.php/apps/files_sharing/api/v1/shares"
[21:46:57] [debug] Reply from share api
[21:46:57] [debug] updateNoteShareStatusFromShare - 'status': "ok\n"
[21:46:57] [debug] Reply from "/index.php/apps/qownnotesapi/api/v1/note/app_info"
[21:46:57] [debug] Reply from app version test
[21:46:57] [debug] notesDirectoryWasModified: "/Users/pcalabro/Nextcloud/Notes/Test"
[21:46:57] [status] Notes directory was modified externally
[21:46:57] [debug] buildNotesIndex - 'noteSubFolderId': 0
[21:46:57] [debug] buildNotesIndex - 'noteSubFolderId': 1
[21:46:57] [debug] buildNotesIndex - 'noteSubFolderId': 2
[21:46:57] [debug] buildNotesIndex - 'noteSubFolderId': 3
[21:46:57] [debug] setupNoteFolderTables - 'database version': 13
[21:46:57] [debug] cloudConnection: CloudConnection: <id>1 <name>"Default" <serverUrl>"https://nextcloud.paulcalabro.com" <username>"paulcalabro" <priority>1
[21:46:57] [debug] fetchShares - 'url': QUrl("https://nextcloud.paulcalabro.com/ocs/v2.php/apps/files_sharing/api/v1/shares")
[21:46:57] [debug] updateNoteText: false
[21:46:57] [debug] setCurrentNote - 'note': Note: <id>13 <name>"Test title" <fileName>"Test title.md" <noteSubFolderId>1 <relativePath>"Test" <hasDirtyData>false - 'updateNoteText': false - 'updateSelectedNote': true
[21:46:57] [debug] added to history: NoteHistoryItem: <noteName>"Test title" <noteSubFolderPathData>"Test" <cursorPosition>0 <relativeScrollBarPosition>0
[21:46:57] [debug] notesWereModified: "/Users/pcalabro/Nextcloud/Notes/Test/Test title.md"
[21:46:58] [debug] Reply from "/ocs/v2.php/apps/files_sharing/api/v1/shares"
[21:46:58] [debug] Reply from share api
[21:46:58] [debug] updateNoteShareStatusFromShare - 'status': "ok\n"
[21:47:11] [debug] filterNotesByNoteSubFolders - 'noteSubFolderIds': (1)
[21:47:42] [debug] openLinkAtCursorPosition - 'emit urlClicked( urlString )': ""
https://nextcloud.paulcalabro.com/s/gtj5Paz8RJJYdWM shows "forbidden" to me.
[21:46:57] [debug] notesWereModified: "/Users/pcalabro/Nextcloud/Notes/Test/Test title.md"
nothing seems out of order here with this filename
[21:46:55] [debug] on_action_Open_note_in_external_editor_triggered - 'url': QUrl("file:///Users/pcalabro/Nextcloud/Notes/Test/Test title.md")
this looks fine too
Ahhh, sorry. I have AWS WAF setup to restrict access to the site only from the US. That's why you're getting denied.
Here's what I'm seeing in my Notes directory:
root@nextcloud:/var/www/html/data/paulcalabro/files/Notes# ls -ltr
total 304
-rw-r--r-- 1 www-data www-data 129 Sep 6 22:24 ' DNS Information of ALB.md'
-rw-r--r-- 1 www-data www-data 431 Sep 6 22:24 'Instructions for Installing 7 Days to Die Mods.txt'
-rw-r--r-- 1 www-data www-data 9750 Sep 6 22:24 'Server Aptitude Logs.txt'
drwxr-xr-x 2 www-data www-data 4096 Sep 12 06:16 Work
-rw-r--r-- 1 www-data www-data 254 Sep 12 20:17 'Note 2019-09-12T13.16.58.md'
-rw-r--r-- 1 www-data www-data 518 Sep 13 19:58 Bookmarks.md
-rw-r--r-- 1 www-data www-data 4005 Sep 13 20:00 'How does power affect soldering irons Is 30 Watts enough - Electrical Engineering Stack Exchange.md'
-rw-r--r-- 1 www-data www-data 157189 Sep 15 13:08 'RFC 7208 - Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1.md'
-rw-r--r-- 1 www-data www-data 2732 Sep 15 17:15 "Notes for Configuring Let's Encrypt.md"
-rw-r--r-- 1 www-data www-data 34650 Sep 15 19:05 '[httpsupcloud.comcommunitytutorialssecure-postfix-using-lets-encrypt](httpsupcloud.comcommunitytutorialssecure-postfix-using-lets-encrypt)**.md'
drwxr-xr-x 2 www-data www-data 4096 Sep 16 23:43 media
-rw-r--r-- 1 www-data www-data 66 Sep 17 05:41 'Personal Website Ideas.md'
-rw-r--r-- 1 www-data www-data 477 Sep 17 16:08 'Adblock Filters List.md'
drwxr-xr-x 2 www-data www-data 4096 Sep 17 17:05 attachments
-rw-r--r-- 1 www-data www-data 78 Oct 1 17:10 'Note 2019-10-01T10.10.13.md'
-rw-r--r-- 1 www-data www-data 45056 Oct 2 04:59 notes.sqlite
drwxr-xr-x 2 www-data www-data 4096 Oct 2 04:59 trash
drwxr-----+ 3 www-data www-data 4096 Oct 2 04:59 Personal
That note created above also had quotes around its filename as well.
Here's the mp4 zipped up:
The Let's encrypt note even has a "
(I guess because of the '
in Let's
), I've never seen that before. :laughing:
root@nextcloud:/var/www/html/data/paulcalabro/files/Notes# ls -ltr
What are you showing me here? the notes that got synced to your Nextcloud server? So is the Nextcloud sync client causing this? Not QOwnNotes?
The video also shows you listing the files on your Nextcloud instance. QOwnNotes has no influence on how Nextcloud is storing your files on your server and why do you care as long the files are synced correctly to other devices. I thought you were talking about your local note folder.
Nevermind, I figured it out :-)
Apparently my Docker container has some weird version of coreutils
that adds quotes to files when they contain spaces:
root@nextcloud:/var/www/html/data/paulcalabro/files/Notes# ls -ltr
total 304
-rw-r--r-- 1 www-data www-data 129 Sep 6 22:24 ' DNS Information of ALB.md'
-rw-r--r-- 1 www-data www-data 431 Sep 6 22:24 'Instructions for Installing 7 Days to Die Mods.txt'
-rw-r--r-- 1 www-data www-data 9750 Sep 6 22:24 'Server Aptitude Logs.txt'
drwxr-xr-x 2 www-data www-data 4096 Sep 12 06:16 Work
-rw-r--r-- 1 www-data www-data 254 Sep 12 20:17 'Note 2019-09-12T13.16.58.md'
-rw-r--r-- 1 www-data www-data 518 Sep 13 19:58 Bookmarks.md
-rw-r--r-- 1 www-data www-data 4005 Sep 13 20:00 'How does power affect soldering irons Is 30 Watts enough - Electrical Engineering Stack Exchange.md'
-rw-r--r-- 1 www-data www-data 157189 Sep 15 13:08 'RFC 7208 - Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1.md'
-rw-r--r-- 1 www-data www-data 2732 Sep 15 17:15 "Notes for Configuring Let's Encrypt.md"
-rw-r--r-- 1 www-data www-data 34650 Sep 15 19:05 '[httpsupcloud.comcommunitytutorialssecure-postfix-using-lets-encrypt](httpsupcloud.comcommunitytutorialssecure-postfix-using-lets-encrypt)**.md'
drwxr-xr-x 2 www-data www-data 4096 Sep 16 23:43 media
-rw-r--r-- 1 www-data www-data 66 Sep 17 05:41 'Personal Website Ideas.md'
-rw-r--r-- 1 www-data www-data 477 Sep 17 16:08 'Adblock Filters List.md'
drwxr-xr-x 2 www-data www-data 4096 Sep 17 17:05 attachments
-rw-r--r-- 1 www-data www-data 78 Oct 1 17:10 'Note 2019-10-01T10.10.13.md'
-rw-r--r-- 1 www-data www-data 45056 Oct 2 04:59 notes.sqlite
drwxr-xr-x 2 www-data www-data 4096 Oct 2 04:59 trash
drwxr-----+ 3 www-data www-data 4096 Oct 2 04:59 Personal
root@nextcloud:/var/www/html/data/paulcalabro/files/Notes# export QUOTING_STYLE=literal
root@nextcloud:/var/www/html/data/paulcalabro/files/Notes# ls -ltr
total 304
-rw-r--r-- 1 www-data www-data 129 Sep 6 22:24 DNS Information of ALB.md
-rw-r--r-- 1 www-data www-data 431 Sep 6 22:24 Instructions for Installing 7 Days to Die Mods.txt
-rw-r--r-- 1 www-data www-data 9750 Sep 6 22:24 Server Aptitude Logs.txt
drwxr-xr-x 2 www-data www-data 4096 Sep 12 06:16 Work
-rw-r--r-- 1 www-data www-data 254 Sep 12 20:17 Note 2019-09-12T13.16.58.md
-rw-r--r-- 1 www-data www-data 518 Sep 13 19:58 Bookmarks.md
-rw-r--r-- 1 www-data www-data 4005 Sep 13 20:00 How does power affect soldering irons Is 30 Watts enough - Electrical Engineering Stack Exchange.md
-rw-r--r-- 1 www-data www-data 157189 Sep 15 13:08 RFC 7208 - Sender Policy Framework (SPF) for Authorizing Use of Domains in Email, Version 1.md
-rw-r--r-- 1 www-data www-data 2732 Sep 15 17:15 Notes for Configuring Let's Encrypt.md
-rw-r--r-- 1 www-data www-data 34650 Sep 15 19:05 [httpsupcloud.comcommunitytutorialssecure-postfix-using-lets-encrypt](httpsupcloud.comcommunitytutorialssecure-postfix-using-lets-encrypt)**.md
drwxr-xr-x 2 www-data www-data 4096 Sep 16 23:43 media
-rw-r--r-- 1 www-data www-data 66 Sep 17 05:41 Personal Website Ideas.md
-rw-r--r-- 1 www-data www-data 477 Sep 17 16:08 Adblock Filters List.md
drwxr-xr-x 2 www-data www-data 4096 Sep 17 17:05 attachments
-rw-r--r-- 1 www-data www-data 78 Oct 1 17:10 Note 2019-10-01T10.10.13.md
-rw-r--r-- 1 www-data www-data 45056 Oct 2 04:59 notes.sqlite
drwxr-xr-x 2 www-data www-data 4096 Oct 2 04:59 trash
drwxr-----+ 3 www-data www-data 4096 Oct 2 04:59 Personal
More information here: https://superuser.com/questions/1376351/why-does-ls-wrap-some-filenames-in-single-quotes
Thanks for your help!
Nice, good to know that this is even possible. :) I already thought that it was a problem of your ls
, but I couldn't find any clue in your macOS env. But since you were talking about your docker container... 😄
Yeah, I had no idea that feature existed either. Good to know! 😄
Expected behaviour
As a user, I would expect that quotation marks would not be automatically added to filenames.
e.g.
Actual behaviour
Quotation marks are present in the filenames of all newly create files.
Steps to reproduce
Relevant log output in the Log panel
Expand
``` ```Information about the application, settings and environment
Expand
QOwnNotes Debug Information =========================== ## General Info **Current Date**: `Tue Oct 1 14:33:51 2019` **Version**: `19.10.0` **Build date**: `Sep 30 2019` **Build number**: `4585` **Platform**: `macosx` **Operating System**: `macOS Mojave (10.14)` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `Travis CI` **Qt Version (build)**: `5.12.2` **Qt Version (runtime)**: `5.12.2` **Portable mode**: `no` **Settings path / key**: `/Users/