Git Product home page Git Product logo

Comments (10)

overlaps1 avatar overlaps1 commented on July 20, 2024 1

I f you mean network section of chrome dev tools, here is the output:

POST*********/apps/sharerenamer/rename[HTTP/1.1 409 Conflict 40ms]
   
POST https://********/apps/sharerenamer/rename

POSThttps://*******/apps/sharerenamer/rename [[HTTP/1.1 409 Conflict 40ms]]()

POST
https://*********/apps/sharerenamer/rename
État
409
Conflict
VersionHTTP/1.1
Transfert1,08 Ko (taille 8 o)
Politique de référentno-referrer

Cache-Control
no-cache, no-store, must-revalidate
Connection
Keep-Alive
Content-Length
8
Content-Security-Policy
default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none'
Content-Type
application/json; charset=utf-8
Date
Fri, 22 Apr 2022 09:45:10 GMT
Expires
Thu, 19 Nov 1981 08:52:00 GMT
Feature-Policy
accelerometer 'none'; autoplay 'self'; geolocation 'none'; midi 'none'; notifications 'self'; push 'self'; sync-xhr 'self' https://portail.eec31.com/; microphone 'self'; camera 'self'; magnetometer 'none'; gyroscope 'none'; speaker 'self'; vibrate 'self'; fullscreen 'self'; payment 'none'; usb 'none'
Feature-Policy
autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none'
Keep-Alive
timeout=5, max=97
Pragma
no-cache
Referrer-Policy
no-referrer
Server
Apache
Strict-Transport-Security
max-age=15768000; preload
X-Content-Type-Options
nosniff
X-Download-Options
noopen
X-Frame-Options
SAMEORIGIN
X-Permitted-Cross-Domain-Policies
none
X-Robots-Tag
none
X-XSS-Protection
1; mode=block

Accept
application/json, text/plain, /
Accept-Encoding
gzip, deflate, br
Accept-Language
fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3
Connection
keep-alive
Content-Length
61
Content-Type
application/json
Cookie
__Host-nc_sameSiteCookielax=true; __Host-nc_sameSiteCookiestrict=true; ; oc_sessionPassphrase=; nc_username=sam; nc_token=; nc_session_id=*********
DNT
1
Host
*******
Origin
********
requesttoken
********
Sec-Fetch-Dest
empty
Sec-Fetch-Mode
cors
Sec-Fetch-Site
same-origin
User-Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0

from sharerenamer.

overlaps1 avatar overlaps1 commented on July 20, 2024 1

Hi Jonathan,
Thanks dor paying attention to this issue.
Your command did the trick, thanks

from sharerenamer.

JonathanTreffler avatar JonathanTreffler commented on July 20, 2024

The token database is just the normal nextcloud one, if it says the token is already taken with every text as the token, the problem is not the token database.

from sharerenamer.

overlaps1 avatar overlaps1 commented on July 20, 2024

thanks for your reply.
Any suggestion to point me in the right direction ?
I have been digging everywhere and no answer
I already restored the nextcloud db but no success

from sharerenamer.

JonathanTreffler avatar JonathanTreffler commented on July 20, 2024

Please provide a screenshot or the exact text of the error message, error messages in the browser dev tools console, nextcloud version, app version and relevant nextcloud logs.

from sharerenamer.

overlaps1 avatar overlaps1 commented on July 20, 2024

image

[Nextcloud Hub II] (23.0.3)
ShareRenamer 3.0.0

there is nothing in the log that could be relevant. tried a tail -f but nothing shows up when trying to rename a link. nothing is logged

from sharerenamer.

JonathanTreffler avatar JonathanTreffler commented on July 20, 2024

I will look into it later when i have time.

(with the nextcloud log i meant in the logging section in the admin settings).

Please also post the status code and response from the rename network request in the network section of the dev tools.

Please remind me if i forget to get back to you with a solution 🙂.

from sharerenamer.

overlaps1 avatar overlaps1 commented on July 20, 2024

Hi Jonathan,

I am not sure what you mean :
(with the nextcloud log i meant in the logging section in the admin settings).
Please also post the status code and response from the rename network request in the network section of the dev tools.

I'll be glad to give all the informations you need, can you be more precise ?

from sharerenamer.

JonathanTreffler avatar JonathanTreffler commented on July 20, 2024

Since this issue doesn't contain all the information of your forum post i will cite it here for context.

Hi everybody,

I have been using share renamer to customize links.
Since I had to migrate the server with new lan IP and hostname, I lost all the sharing links.
Now trying to recreate the links again, it says name already exist.
I restored nextcloud database but it didn’t make the job
Is there a way to cleanup links database or remove all old created token id ?
Thanks

from sharerenamer.

JonathanTreffler avatar JonathanTreffler commented on July 20, 2024

I have looked into it: I don't see any error in the code of this app.
Your database table containing the share links must have gotten messed up by the migration.
My current recommendation is to backup and clean the entire "oc_share" table of your database using

DELETE FROM `oc_share` WHERE share_type=3;

⚠️ That will remove any link shares (the share_type=3 prevents other kinds of shares from being deleted). ⚠️

After that you can recreate all the share links.

from sharerenamer.

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.