Giter VIP home page Giter VIP logo

Comments (10)

JulianPrieber avatar JulianPrieber commented on June 3, 2024 1

Alright, thank you so much!

Here is what it should look like:
chrome_3M9iA66aiq

You have the same Link User ID and User ID, but the
The code compares the two and if they're not identical the request gets blocked.
Code_voQCI6CEQs
request still gets blocked.

So essentially your code is returning:
1 ≠ 1

Your database is saving the user_id as "1" not 1. I wasn't able to reproduce this on MySQL or SQLite.

But we can adjust the code to account for that. I wasn't aware that this is possible, but this should fix it:
https://gist.github.com/JulianPrieber/f08014916904a0a294002cac70bea29f

from linkstack.

craeckor avatar craeckor commented on June 3, 2024

I'm not able to reproduce this issue.
For testing, can you create a new Link and then try to delete it. Does it work? Maybe an update created the problem.
Also check your Apache2 log and Lavarel Log.
Maybe @JulianPrieber is able to reproduce this issue.

from linkstack.

JulianPrieber avatar JulianPrieber commented on June 3, 2024

We need more help reproducing this. This has been reported 3 times so far. I'm assuming this is some issue with authentication.

from linkstack.

trip1e avatar trip1e commented on June 3, 2024

from linkstack.

JulianPrieber avatar JulianPrieber commented on June 3, 2024

What can I do for you regarding this issue?

Best is a step-by-step setup guide how to reproduce the issue reliably, or if you were able to fix the issue documentation for that.

If I use a recent version and set it up either using the docker image or NGINX/Apache, I cannot reproduce this issue.
There has to be something causing this, we're just not sure what it is.

from linkstack.

p-collins avatar p-collins commented on June 3, 2024

Just to report I'm experiencing this as well, both delete and edit links results in 403 Forbidden.

SQLite backend running on IIS non-production, everything is straight out the zip folder. Let me know if I can shared anything specific to help

Nothing in the Laravel log and only the 403 confirmation in the IIS log.

from linkstack.

JulianPrieber avatar JulianPrieber commented on June 3, 2024

Let me know if someone can edit the file system and run a debug file for me 👍

from linkstack.

JulianPrieber avatar JulianPrieber commented on June 3, 2024

Please replace the file content of app/Http/Middleware/LinkId.php with this debug file:
https://gist.github.com/JulianPrieber/d5318ca83f09879f93a1092fea38bb8c

Then log in to your admin panel and try to delete a link.

from linkstack.

p-collins avatar p-collins commented on June 3, 2024

No worries, here's the output:

https://gist.github.com/p-collins/ca393afd5f19c447398e541d7be58902

from linkstack.

p-collins avatar p-collins commented on June 3, 2024

Confirmed fix for me at least.

from linkstack.

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.