rookie0 / nextcloud-sharing-path

🌩 Nextcloud app to enhance files sharing to be accessed by stored path, can be used as CDN origin.
GNU Affero General Public License v3.0
47 stars 11 forks source link

Getting null files through Sharing Path folder when already logged in. #23

Closed GeneriumMadness closed 2 years ago

GeneriumMadness commented 4 years ago

When I am logged in and trying to get file from another user I get only 0kb empty file. But when I log out from the site file becomes available for correct download.

rookie0 commented 4 years ago

Maybe there is a bug like #12 , please give me some detail, check your NEXTCLOUD-INSTALL-PATH/data/nextcloud.log grep by "app":"sharingpath" and your web server log grep by request path.

GeneriumMadness commented 4 years ago

Nextcloud 18.0.6 Sharing path 0.2.4

image

https://own-drive.ru/index.php/apps/sharingpath/McPaRaDoX/BHPfDDNOKhQ.jpg

https://own-drive.ru/index.php/s/jqD8yCdWekbnfkY

rookie0 commented 4 years ago

Sorry for the late reply, i can't reproduce the problem, and my guess is that my app or nextcloud get wrong user info, but my app get username from url path, it can't be wrong.

It's so confusing, and i will still look into it.

imgoodplanner commented 4 years ago

I have same issue. browser request favicon.ico and login. image

rookie0 commented 4 years ago

@imgoodplanner It's not a big deal, and do not affect the use of this app, if you are worried about it, you can put a favicon.ico file at YOUR-NEXTCLOUD-INSTALL-PATH.

GeneriumMadness commented 4 years ago

Quick steps to reproduce:

  1. Install 2 different browsers or open one tab in incognito mode
  2. Log in with 2 different accounts in these tabs/browsers
  3. Share any file (i tried with picture) and copy sharing path link
  4. Use this link in another tab/browser
  5. It should get you null file https://own-drive.ru/index.php/s/j7g6TSxCCxPgxJp there is a video how I reproduced this problem