Giter Site home page Giter Site logo

PostgreSQL support about openseedbox HOT 10 CLOSED

openseedbox avatar openseedbox commented on May 30, 2024
PostgreSQL support

from openseedbox.

Comments (10)

gregorkistler avatar gregorkistler commented on May 30, 2024

Looks like two inserts ignore the PostgreSQL sequence and don´t use starting values for the primary key and start with a 0 instead of a 1 which causes the login issue.
Once I´ve changed the PK to 1 for the first user account I can log in as expected. If I use another account to log in it will run into the same issue.
If I wouldn´t change the PK and try to log in both accounts will overwrite their attributes at each login try.

The second table where the same happens is the torrent table.
Every torrent you add will overwrite the last one added because the PK will always be 0 which causes an error regarding the torrent hash.

from openseedbox.

xabolcs avatar xabolcs commented on May 30, 2024

The users/login bug was an easy one.
The torrent bug seems like harder. Continue digging ...

from openseedbox.

xabolcs avatar xabolcs commented on May 30, 2024

This wasn't true. They are the same.

from openseedbox.

gregorkistler avatar gregorkistler commented on May 30, 2024

Sweet! Thank you.
Mind if you share the necessary changes?

from openseedbox.

xabolcs avatar xabolcs commented on May 30, 2024

The changes are done, but not yet committed, will put it on a branch and open a PR here later today.

from openseedbox.

gregorkistler avatar gregorkistler commented on May 30, 2024

Cool. The project seems to be dead since months but at least I can check the PR.

from openseedbox.

xabolcs avatar xabolcs commented on May 30, 2024

PR #45 with Postgres compatibility fixes has merged. May I close this issue, @gregorkistler?

from openseedbox.

gregorkistler avatar gregorkistler commented on May 30, 2024

Still had some issues during the login like the following:

Apr 19 11:09:39 172.18.0.1 ui[2319]: 09:09:39,424 ERROR ~
Apr 19 11:09:39 172.18.0.1 ui[2319]:
Apr 19 11:09:39 172.18.0.1 ui[2319]: @73lif87lf
Apr 19 11:09:39 172.18.0.1 ui[2319]: Internal Server Error (500) for request GET /auth/authenticate?id_token=<SOME_TOKEN>
Apr 19 11:09:39 172.18.0.1 ui[2319]:
Apr 19 11:09:39 172.18.0.1 ui[2319]: Execution exception (In /app/controllers/Auth.java around line 57)
Apr 19 11:09:39 172.18.0.1 ui[2319]: NullPointerException occured : null
Apr 19 11:09:39 172.18.0.1 ui[2319]:
Apr 19 11:09:39 172.18.0.1 ui[2319]: play.exceptions.JavaExecutionException
Apr 19 11:09:39 172.18.0.1 ui[2319]: #011at play.mvc.ActionInvoker.invoke(ActionInvoker.java:237)
Apr 19 11:09:39 172.18.0.1 ui[2319]: #011at Invocation.HTTP Request(Play!)
Apr 19 11:09:39 172.18.0.1 ui[2319]: Caused by: java.lang.NullPointerException
Apr 19 11:09:39 172.18.0.1 ui[2319]: #011at controllers.Auth.authenticate(Auth.java:57)
Apr 19 11:09:39 172.18.0.1 ui[2319]: #011at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:557)
Apr 19 11:09:39 172.18.0.1 ui[2319]: #011at play.mvc.ActionInvoker.invoke(ActionInvoker.java:508)
Apr 19 11:09:39 172.18.0.1 ui[2319]: #011at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:484)
Apr 19 11:09:39 172.18.0.1 ui[2319]: #011at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:479)
Apr 19 11:09:39 172.18.0.1 ui[2319]: #011at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161)
Apr 19 11:09:39 172.18.0.1 ui[2319]: #11... 1 more

but likely that I mixed up some code from my own repo. Will fetch the latest changes. If necessary I will reopen or create a new issue.
Thanks so far.

from openseedbox.

gregorkistler avatar gregorkistler commented on May 30, 2024

Okay got it. The issue was fixed a couple of days ago after the PR with 02a23b9 👍

from openseedbox.

xabolcs avatar xabolcs commented on May 30, 2024

Yeah, my bad! Sorry for that! 😊

from openseedbox.

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.