Text field with a link to a file, the link doesn't work
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 214
- Forks
- 52
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 82
Description
Steps to reproduce
- Present table with a text field
- Create a new data record: Click the 'Create row' button
- In the text field, use the text editor, the button for 'Insert link' and select 'File or folder'. For example, insert the link to an image.
- Save the new data record
- Click on the link you have just created
Expected behavior
Depending on the format of the file, all formats that Nextcloud can typically display should be displayed.
Formats that NC cannot display should be offered for download.
Actual behavior
The generated link does not work!
A new tab will be opened in the browser. To display the image in this tab?
Nextcloud generates the following error message: 'The page could not be found on the server or you are not authorized to view it.'
The message is the same for both links.
Here are two examples of the generated links:
- https://xxxx.yy/IMG_20210515_164908.jpg?fileId=64359
- https://xxxx.yy/index.php/apps/tables/Photos/2018-gm/wehrdurchfahrt/DSC00297.JPG?fileId=237
The first link refers to an image in the home directory, at the top level.
The second link refers to a file in a subdirectory.
Tables app version
0.6.4
Browser
Firefox 120
Client operating system
Win10
Operating system
Linux
Web server
Apache
PHP engine version
PHP 8.1
Database
MariaDB
Additional info
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the file-link workflow described in the issue using Tables 0.6.4, then trace how the text editor creates links and how the app resolves fileId links. No source file or test is named in the report. Done means links to files in both the home directory and subdirectories open supported formats or offer unsupported files for download.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- backend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100