-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(server): places page not working with partner sharing #8257
Conversation
Deploying immich with
|
Latest commit: |
81e26e5
|
Status: | ✅ Deploy successful! |
Preview URL: | https://3fe712f7.immich.pages.dev |
Branch Preview URL: | https://fix-server-places-partner-sh.immich.pages.dev |
I'm still seeing a The postgres error is now:
|
Hmm, that's strange. It was working when I tested it. Let me take another look at this. |
I dont know if this will help but its from the server log: |
I have the same problem when partner sharing and clicking on places on the web interface. I am on 1.100 as well. I get the error: Failed to get assets by city (500) Stacktrace |
the same for me (also on 1.100 as well Error: Error: 500 |
Thanks for reaching out y'all! This is fixed on main and will be in the next release. |
No partner sharing, but same error: Stacktrace db error, postgres 16: 2024-04-01 11:47:55.418 EDT [5264] ERROR: malformed array literal: "$1" at character 149
|
My partner sharing isn't even enabled and I'm getting this issue.
|
This issue is fixed on main and will be in the next release. |
Description
The user IDs are concatenated for the query, but this doesn't work since they're interpreted as a single invalid UUID rather than multiple UUIDs (if it did work, it would imply SQL injection). This PR changes the query to allow the array of user IDs to be passed directly.
Fixes #8241
How Has This Been Tested?
Tested that the query still works when visiting the Places page.