Giter Site home page Giter Site logo

Comments (9)

florian-forestier avatar florian-forestier commented on May 23, 2024 4

Hi @ganomi, @NorbertBerlin & @arnowelzel, thanks for all the context & details you sent here!

I'm looking on it, I hope I will be able to send a PR today 😄

from nextcloud-keeweb.

arnowelzel avatar arnowelzel commented on May 23, 2024 1

I will have a look into that later and try to reproduce this problem.

from nextcloud-keeweb.

NorbertBerlin avatar NorbertBerlin commented on May 23, 2024 1

nextcloud 28 generate the link : https://yourserver.example/apps/keeweb/?open=/filepath/myDb.kdbx

this link works correct: https://yourserver.example/nextcloud/index.php/apps/keeweb/?open=/filepath/myDb.kdbx

the difference is nextcloud/index.php/ (nextcloud is the path, where nextcloud is installed)

from nextcloud-keeweb.

arnowelzel avatar arnowelzel commented on May 23, 2024 1

nextcloud 28 generate the link : https://yourserver.example/apps/keeweb/?open=/filepath/myDb.kdbx

this link works correct: https://yourserver.example/nextcloud/index.php/apps/keeweb/?open=/filepath/myDb.kdbx

the difference is nextcloud/index.php/ (nextcloud is the path, where nextcloud is installed)

In this case, .htaccess is not updated properly.

Edit: I verified this issue and can confirm, that the generated URLs are not correct, if Nextcloud is not using the URL path /. However a the moment I don't have any idea what is causing this.

@florian-forestier Can you have a look into this as well? It seems the frontend script somehow always assumes / as base URL path, even if the real path is /index.php or /nextcloud/.

from nextcloud-keeweb.

arnowelzel avatar arnowelzel commented on May 23, 2024 1

Some more findings.

Base URL of Nextcloud:
https://myserver.example/nextcloud/

WebDAV URL presented by Nextcloud:
https://myserver.example/nextcloud/remote.php/dav/files/username/file.kdbx

File passed to KeeWeb, when trying to open it:
https://myserver.example/apps/keeweb/?open=/file.kdbx

The file path /file.kbdx is corrent, since it is in the root folder of the user. However https://myserver.example/nextcloud/apps/keeweb is not correct, since the base path of Nextcloud is https://myserver.example/nextcloud/ and not https://myserver.example/

I just checked Draw.io which was also updated recently to support Nextcloud 28. Draw.io works fine, also when Nextcloud is not in the root path. Maybe this can help, also see https://github.com/jgraph/drawio-nextcloud/tree/v3.0.2

from nextcloud-keeweb.

arnowelzel avatar arnowelzel commented on May 23, 2024

When using index.php in the URL it may not work, but I don't know why. Please check, that you don't have index.php in the URL:

  1. Add the following setting to config/config.php: 'htaccess.RewriteBase' => '/'
  2. Run the following OCC command to update .htaccess: php occ maintenance:update:htaccess

So the URL of KeeWeb should be like this: https://yourserver.example/apps/keeweb/

from nextcloud-keeweb.

ganomi avatar ganomi commented on May 23, 2024

Having the same issue after upgrading to Nextcloud 28.

My server is running under https://yourserver.example/nextcloud/
Therefore i set 'htaccess.RewriteBase' => '/nextcloud'

Now index.php is not part of the path anymore but it is still not working because /nextcloud/ is not part of the path. The currently constructed path is https://yourserver.example/apps/keeweb/?open=/KeyPass.kdbx

Any quick tips?

from nextcloud-keeweb.

arnowelzel avatar arnowelzel commented on May 23, 2024

Try it with rewrite base "/nextcloud/" including the trailing slash.

from nextcloud-keeweb.

ganomi avatar ganomi commented on May 23, 2024

I tried both variants. Unfortunately same negative result. Made sure to regenerate htaccess and also restarted php-fpm and apache each time.

from nextcloud-keeweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.