Skip to content
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

User Management settings not functional. ("Override Limit, "AutoApprove") #882

Closed
Rsslone opened this issue Jan 2, 2017 · 20 comments
Closed

Comments

@Rsslone
Copy link

Rsslone commented Jan 2, 2017

Ombi Version:

V 2.0.1175

Update Branch:

Stable and Early Access Preview (Saw problem on both)

Operating System:

Win 8.1

Applicable Logs (from /logs/ directory or the Admin page):

http://puu.sh/t8TRb/307c30f013.png
Not exactly sure if related but it had "PlexUserChecker"```

(Logs go here. Don't remove the ``` tags for showing your logs correctly. Please make sure you remove any personal information from the logs)

Problem Description:

Confirmed "Override Limit" and "Auto Approve" options do not work with plex users without a local ombi account. If a local account is created the "Override Limit" option seems to work.

Reproduction Steps:

Related settings: Enable User Authentication ; Disable Require users to login with their passwords

Log into Plex user account with override limit enabled and with no local account created
Request more shows than global limit
Observe

@Ombi-robot
Copy link

Hi!
Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.
Before posting make sure you also read our FAQ and known issues.
Make the title describe your issue. Having "not working" or "I get this bug" for 100 issues, isn't really helpful.
If we need more information or there is some progress we tag the issue or update the tag and keep you updated.
Cheers!
Ombi Support Team

@tidusjar
Copy link
Member

tidusjar commented Jan 2, 2017

Thanks, i'll take a look, the error with the PlexUserChecker is different, i'll fix that too!

@Rsslone
Copy link
Author

Rsslone commented Jan 2, 2017

You sir, are a saint and a scholar.
tips hat

@tidusjar
Copy link
Member

tidusjar commented Jan 2, 2017

Can you post a screenshot of a user in question (showing their permissions) feel free to blank out any personal info?

@Rsslone
Copy link
Author

Rsslone commented Jan 2, 2017

http://puu.sh/t8XmZ/1c735c9d51.png
http://puu.sh/t8XoO/3cb9283013.jpg

This is a example of the auto approve not working. I can private message you on gitter if you want to mess around with my server.

@tidusjar
Copy link
Member

tidusjar commented Jan 4, 2017

@Rsslone I'm not doubting you here, but I cannot seem to reproduce this, it always get's approved and then sent to CP in my case... Looking at the code I also cannot see any way it could happen.

Are you 100% sure it was that user that requested that when they had the permissions above?

@Rsslone
Copy link
Author

Rsslone commented Jan 4, 2017

Let me just recheck it again but just today I had to manually approve movies to CP from a user who has auto approve enabled. Either that or the button shows up even if it was approved automatically, I'm going to hop on over to gitter if you want to IM me.

@Rsslone
Copy link
Author

Rsslone commented Jan 4, 2017

Check your DMs for the uncensored screens

@thegame3202
Copy link
Contributor

I may have figured this one out. Username is case sensitive for auto-approve. All lowercase works for a user on mine, but not if they capitalize the first letter.

@Rsslone
Copy link
Author

Rsslone commented Jan 10, 2017

I spoke to them privately about this. We've figured out that it approved but the button didn't reflect that so it was misleading people to believe the request was not approved. If there is a bug beyond that I don't know.

@thegame3202
Copy link
Contributor

Ah, not the same with me. It auto-approves as expected with lowercase username, but I have to approve before it downloads with mixed case. Thanks for the reply :-)

@Rsslone
Copy link
Author

Rsslone commented Jan 10, 2017

Interesting. This isn't expected with the bug I am having. I fixed it by making local profiles for my users using capital letters when their username was in lowercase. shrug @tidusjar Not sure what you can obtain from this.

@tidusjar
Copy link
Member

tidusjar commented Jan 10, 2017

So the rules on auto approval are:

User has the Administrator permission = Auto Approve


if request = movie
    if user has permission AutoApproveMovie
       then auto approve

if request = tv show/episode
    if user has permission AutoApproveTv
       then auto approve

if request = album
    if user has permission AutoApproveAlbum
       then auto approve

@tidusjar
Copy link
Member

But... After looking at the sql queries, the actual queries themselves to find the users are case sensitive... damn!

tidusjar pushed a commit that referenced this issue Jan 10, 2017
@tidusjar
Copy link
Member

Fixed it, included COLLATE NOCASE into the queries.

@thegame3202
Copy link
Contributor

Awesome! Thank you sir!!

@Rsslone
Copy link
Author

Rsslone commented Jan 10, 2017

Way to go! @thegame3202 Thanks for the fix! @tidusjar

@thegame3202
Copy link
Contributor

thegame3202 commented Jan 10, 2017

Hmm, running dev branch and still seems to be case sensitive. After seeing what you did, I applied the same fix to PlexUserRepository.cs

I don't know how to apply fixes in Github... I'm a noob. But adding COLLATE NOCASE into that file, fixed my issue! Thanks @tidusjar !

@tidusjar
Copy link
Member

@thegame3202 I guess you compiled it yourself after?

@thegame3202
Copy link
Contributor

Yup, compiled and tested on my end! Figured out how to post pull requests too haha :-) #910

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants