ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.77k stars 320 forks source link

Hyperlink to local files (not allowed) #1227

Closed JoeyGH closed 11 months ago

JoeyGH commented 1 year ago

This issue is unique.

Operating System

Windows 10 / 8.1 / 7

Version information

7.3.0.184

Expected Behavior

I have a simple Spreadsheet with one hyperlink to an image on my local filesystem. Path to the image is: C:\output\picture.jpg So I set the hyperlink to: file:///C:/output/picture.jpg

Pic1

When I click on the hyperlink, the file should open normally.

Actual Behavior

When I click on the hyperlink, I get the following error: Not allowed to load local resource: file:///C:/output/picture.jpg (in Console @ debug mode).

Pic2

How can I give DesktopEditors access to local filesystem?

Reproduction Steps

  1. Open new Spreadsheet.
  2. Select random cell and create new hyperlink, which points to a file on a local filesystem.
  3. Click on the link.

Additional information

No response

VladimirProkofiev52 commented 1 year ago

Hello! @JoeyGH I've looked into your problem but unfortunately couldn't replicate it. Could you please describe the issue in more detail.

Please make sure that in the system settings all users have access to the folder and files "C:/output/picture.jpg".

Does the problem repeat if you specify the path to another folder and another file?

JoeyGH commented 1 year ago

Hello @VladimirProkofiev52,

file has security permissions set to "Everyone" and "Full control", so this is not an issue. I tried to do the exact same thing in Excel and Excel opened the file via hyperlink just fine. Below you can find a link to a video, where I demonstrate my problem. In video, I compare the behaviour between DesktopEditors and Excel.

Link: Video demonstration

Note that I tried this on 3 computers (1x Windows 11 Pro and 2x Windows 10 Pro) and all experience the same problem. And it's a really simple problem to replicate.

Rita-Bubnova commented 1 year ago

DesktopEditors v7.4.1 is released. Please state is this problem still actual for you?

Rita-Bubnova commented 11 months ago

This issue was closed due no response.