notes icon indicating copy to clipboard operation
notes copied to clipboard

images have different relative URL in text app: "apps/files" vs. "apps/notes" when images are in "resources/" folder

Open ant0nwax opened this issue 2 years ago • 8 comments

More than one year no one assigned :( just very simple fix @blizzz please could you be so kind and assign someone who works on notes app

Precondition in my case: Migration from G___le Keep

3 different scenarios on Desktop:

I.) Nextcloud Desktop Sync folder. SUCCESS

  • Notes/Example.md is shown and editable and saveable in a Markdown editor (Typora in my case)
  • Attachment that is embedded in Markdown inside the Example.md is also shown and exists locally in the /Notes/resources/ folder

II.) Nextcloud Web App FILES on a Desktop in a browser window SUCCESS

  • Notes/Example.md is shown and editable and saveable in a Markdown editor (Typora in my case)
  • Attachment that is embedded in Markdown inside the Example.md is also shown and exists locally in the Sync/Notes/resources/ folder

opening from

 https://example.com/nextcloud/index.php/apps/files/files/98349?dir=/Notes&openfile=true

SUCCESS attachment image is displayed

III.) Nextcloud Web App NOTES on a Desktop in a browser window FAILED / ERROR

  • Notes/Example.md is shown and editable and saveable in the native WebApp nextcloud/apps/notes/
  • Attachment that is embedded in Markdown inside the Example.md is NOT shown and two errors on the console

opening from

 https://example.com/nextcloud/index.php/apps/notes/note/98349

ERROR 404 attachment is not displayed

Errors in the browser console:

error 1: https://example.com/nextcloud/index.php/apps/notes/note/resources/18432988c62.80ce147f7b821377.jpg 404
error 2: https://example.com/nextcloud/remote.php/dav/files/ant0n/resources/18432988c62.80ce147f7b821377.jpg 404

Living and growing with this software error after reporting for three major versions, first debugging allowed me to use notes very little, not so much user friendly because i was used to attachments.

A new hint:

Check for the attachment on the command line interface of the nextcloud on-premise server

​ Test 1:

[root@antcloud ant0n]# pwd && find -type f -name 18432988c62.80ce147f7b821377.jpg 
/var/www/data/ant0n
./files/Notes/resources/18432988c62.80ce147f7b821377.jpg
[root@antcloud notes]#

​ Test 2:

[root@antcloud notes]# pwd && find -type f -name 18432988c62.80ce147f7b821377.jpg 
/var/www/html/nextcloud/apps/notes
[root@antcloud notes]#

ant0nwax avatar Jun 10 '23 07:06 ant0nwax

I am able o reproduce the bug, so we can skip this step :)

ant0nwax avatar Jun 10 '23 07:06 ant0nwax

I have tried importing notes exported as MD from Joplin and the result is the same

AndreaPro avatar Aug 03 '23 09:08 AndreaPro