Comments (10)
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.
The users/login bug was an easy one.
The torrent bug seems like harder. Continue digging ...
from openseedbox.
This wasn't true. They are the same.
from openseedbox.
Sweet! Thank you.
Mind if you share the necessary changes?
from openseedbox.
The changes are done, but not yet committed, will put it on a branch and open a PR here later today.
from openseedbox.
Cool. The project seems to be dead since months but at least I can check the PR.
from openseedbox.
PR #45 with Postgres compatibility fixes has merged. May I close this issue, @gregorkistler?
from openseedbox.
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.
Okay got it. The issue was fixed a couple of days ago after the PR with 02a23b9 👍
from openseedbox.
Yeah, my bad! Sorry for that! 😊
from openseedbox.
Related Issues (20)
- Job improvements: raw use of the parameterized class 'LoggedJob'
- Job improvements: maintenance job HOT 1
- Job improvements: `java.lang.IllegalAccessException` prevents Node Poller job from scheduling HOT 14
- Show the torrent backend's version in the Nodes view HOT 2
- OpenSeedbox backend thinks the torrent backend is up, even it is not installed: "/bin/sh: 1: transmission-daemon: not found" HOT 2
- GitHub: manage `pr-${{github.event.pull_request.number}}` tagged docker images at GHCR on Pull Request events
- GitHub: reusable workflows
- Play! Framework: rewrite OpenSeedbox to use another MVC framework HOT 4
- views: fix and improve size checks on Lists HOT 1
- Transmission, Play! (RePlay! also) vs UTF-8: Unexpected Error, Your file does not exists HOT 8
- Backend: multiparch Docker build fails to restart torrent backend on non `amd64` platforms HOT 3
- Docker is sunsetting Free Team organizations on April 14, 2023 HOT 3
- Add download tests
- Long torrent names and download URLs could fail the poller job: `ERROR: value too long for type character varying(255)`
- Show active torrents in the client view
- Show peer's progress at the peers tab of the Torrent Info modal view HOT 1
- Siena's DDL generator doesn't restore the table's primary key sequence value after database model update
- Try OpenJDK with Eclipse OpenJ9 (aka IBM Semeru) instead the default OpenJDK HotSpot (aka Eclipse Temurin) HOT 7
- GitHub: push `latest` images to Docker Hub automatically (on master branch change) HOT 4
- GitHub: update `openseedbox/{client,server}` images on `openseedbox/{base,tomcat}` push
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openseedbox.