Coder Social home page Coder Social logo

Comments (2)

joshtrichards avatar joshtrichards commented on September 23, 2024

Are you referring to links adding using this app: https://github.com/jimmyl0l3c/cfg_share_links

Because that isn't us. :-)

from server.

s-ailus2 avatar s-ailus2 commented on September 23, 2024

Hi Josh,

Thanks for your quick reply.

Yes, in fact I have Configurable share links enabled.

Still, to make things work again, it'll take a change in Nextcloud and not in Configurable share links. I'm not sure why this has been changed.

For instance, creating a share results in something like this:
MariaDB [nextcloud]> select * from oc_share where id = 369;
+-----+------------+------------+----------+-----------+---------------+--------+-----------+-------------+-------------+-------------+-------------+-------------+------------+----------+---------------------+-----------------+-----------+------------+------------------+------+---------------+-------+--------------------------+------------+
| id | share_type | share_with | password | uid_owner | uid_initiator | parent | item_type | item_source | item_target | file_source | file_target | permissions | stime | accepted | expiration | token | mail_send | share_name | password_by_talk | note | hide_download | label | password_expiration_time | attributes |
+-----+------------+------------+----------+-----------+---------------+--------+-----------+-------------+-------------+-------------+-------------+-------------+------------+----------+---------------------+-----------------+-----------+------------+------------------+------+---------------+-------+--------------------------+------------+
| 369 | 3 | NULL | NULL | sailus | sailus | NULL | folder | 227894 | NULL | 227894 | /foo-bar | 17 | 1715924217 | 0 | 2024-05-30 21:00:00 | QtnXGPHjEEaXLxQ | 0 | NULL | 0 | NULL | 0 | | NULL | NULL |
+-----+------------+------------+----------+-----------+---------------+--------+-----------+-------------+-------------+-------------+-------------+-------------+------------+----------+---------------------+-----------------+-----------+------------+------------------+------+---------------+-------+--------------------------+------------+
1 row in set (0.001 sec)

"QtnXGPHjEEaXLxQ" is the share specific URL postfix and that's what the Configurable share links changes. Doing this manually:

MariaDB [nextcloud]> update oc_share set token='foo-bar' where id=369;
Query OK, 1 row affected (0.005 sec)
Rows matched: 1 Changed: 1 Warnings: 0

One would expect the file to be accessible using "foo-bar" token but the result is the same error and log message:

"Requested uri (/public.php/dav/files/foo-bar/) is out of base uri (/public.php/dav/files/foo/)"

from server.

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.