mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
API Password break #628
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Floflobel on GitHub (Apr 24, 2019).
Describe the bug
I perform the creation of my user accounts with a script in Python to facilitate the management of the parameters.
I copied my script from my Emby server to test it on a Jellyfin server, everything works fine except password management.
I look at the documentation of the API but it is not yet completed with the parameters to data.
I'm posting my script below, I was doing the password reset at first because there was a problem on Emby that forced me to go through this step.
To Reproduce
I also tried to spend the next json:
{"CurrentPw":"","NewPw":"test"}@oddstr13 commented on GitHub (Apr 25, 2019):
See #1299 , quite possibly related.
@bugfixin commented on GitHub (Apr 25, 2019):
I don't think the fix for 1299 will fix this, as the submission is json here.
Two things to check: is it possible to verify the content-type is being set to application/json correctly with the python, and is it possible to test with a user whose current password is set to a non-blank?
@oddstr13 commented on GitHub (Apr 25, 2019):
https://stackoverflow.com/a/26344315
This should also make your code a lot cleaner!
@sparky8251 commented on GitHub (Jun 25, 2019):
Is this still an issue? If not we should close this issue.
@nwithan8 commented on GitHub (Nov 9, 2019):
Reopen? This still seems to be broken. Constantly getting a 500 error
@anthonylavado commented on GitHub (Nov 10, 2019):
@nwithan8 What’s happening?
@nwithan8 commented on GitHub (Nov 11, 2019):
Getting a 500 error when attempting to POST request to change a user's password.
@JustAMan commented on GitHub (Nov 22, 2019):
Could you please post your code you're trying to run, and some relevant bits from Jellyfin log?
@nwithan8 commented on GitHub (Dec 2, 2019):
Demoing with a web request application:
POST https://myip.com/jellyfin/Users/{userID}/Password?api_key={apiKey}
Headers:
Body:
Returns:
500 Internal Server Error: Object reference not set to an instance of an object.Log from request:
@JustAMan commented on GitHub (Dec 4, 2019):
Is this with JF 10.4.2?
@nwithan8 commented on GitHub (Dec 30, 2019):
I believe so. Whatever the latest Docker version is/was as of Dec. 2
@JustAMan commented on GitHub (Jan 10, 2020):
@Bond-009 or @cvium does this ring a bell for you?
@InspireToCode commented on GitHub (Jan 14, 2020):
Has anyone come to a solution for this?
@nwithan8 commented on GitHub (Jan 15, 2020):
Yes, thanks to @callmekory, turns out you need to reset the password first, THEN set a password.
@dkanada commented on GitHub (Jan 15, 2020):
Can you post an example here for future discussion? We definitely need to overhaul the password reset at some point.
@senpaiSubby commented on GitHub (Jan 16, 2020):
Here are some examples from the code I'm working on right now for a project. Hope this helps in the future for the next person.
@senpaiSubby commented on GitHub (Jan 16, 2020):
Setting the user password will return a 204 status code
@nwithan8 commented on GitHub (Jan 16, 2020):
In Python
@dkanada commented on GitHub (Jan 16, 2020):
That is the strangest way possible to design a password reset.
@senpaiSubby commented on GitHub (Jan 16, 2020):
If I could suggest that we be able to manage user accounts with only the API key? Right now you can to login via the app THEN use that auth token to make changes. We're using 2 separate authorizations atm and it could be migrated to simple the API key
@stale[bot] commented on GitHub (May 15, 2020):
This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.