nextcloud / nextcloud/notes

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

Open
#1,058 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: attachments need to reproduce needs info
Dominant language
JavaScript
Stars
738
Forks
162
Avg merge
6h 2m
Merged PRs (30d)
35

Description

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]#

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Notes web app opened at /apps/notes/note/98349 and reproduce the missing image from a Markdown note containing an image in resources/. Trace how the Notes view builds the attachment URL, then verify that the image loads from the existing files/Notes/resources/ path without the 404 errors shown in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.