nextcloud / nextcloud/tables

Text field with a link to a file, the link doesn't work

Open
#726 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
Dominant language
JavaScript
Stars
214
Forks
52
Avg merge
1d 10h
Merged PRs (30d)
82

Description

Steps to reproduce
  1. Present table with a text field
  2. Create a new data record: Click the 'Create row' button
  3. 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.
  4. Save the new data record
  5. 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:

  1. https://xxxx.yy/IMG_20210515_164908.jpg?fileId=64359
  2. 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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.