PDF cannot be opened out of the search result list - Error Message: Missing PDF

Hi,

am using Nextant to enable the fulltext search.

When searching and displaying opening documents I have a strange behavior.

I stored a PDF document (with text layer) within a sub folder below root.

If I now start the search while I am within the Root folder of Nextcloud I see the document within the result list but openign fails with the following error message.

PDF.js Version 1.4.20 (build: b15f335)
Nachricht: Missing PDF “http://192.168.253.22/cloud/remote.php/webdav/2017-06-17%2007-09-58-1.pdf”.

If I browse to the folder where I have stored the PDF document and then start the search the PDF document can be displayed correctly from the search result list.

Any idea what might be wrong. This issue is reproducible.

Thanks a lot.
Tombar


Nextcloud version: 12.0.0
Operating system and version: Debain Jessie (OSMC on a Raspberry 3)
Apache version : Apache/2.4.10 (Debian)
PHP version: 7.0.19-1 (cli)
Is this the first time you’ve seen this error?: Yes

Can you reliably replicate it? (If so, please outline steps): Yes

The issue you are facing:

1 Like

really no ideas? Can someone else please try to reproduce. I like to know if this is reproducible or if it just happens on my installation.

Thanks a lot.
Tombar

Hi,

I can confirm an almost identical situation and also reproducible.

But on standaard Nextcloud, not using Nextant.
Nextcloud 12.0.0 on Raspbian GNU/Linux 8 (jessie)

  • create a pdf file in a sub-directory under root
  • click it … and it opens fine
  • put a tag T on it
  • go the home dir and search by tag for the tag T
  • pdf is found, but when clicked on, the pdf is not shown with a similar error
  • check: go to the subdir and click on the pdf and it wil show correctly

Somewhere the notion of the existence of the subdir is lost when trying to open the pdf from the tag search result list.

The file is at
https://myserver.lan/remote.php/webdav/Administratie/magweg05.pdf

The error is
PDF.js v1.4.20 (build: b15f335)
Message: Missing PDF "https://myserver.lan/remote.php/webdav/magweg05.pdf".

I see some similarity.

I added your finding to the bug report: