#2474 Check if there is a group and bail otherwise
Merged by pingou. Opened by pingou.
fix_login  into  master

Download 2474.patch

If there is no group name specified search_groups will return all the
groups, so a list not a single group making the assumption made by the
code invalid and thus leading to a traceback.

Fixes https://pagure.io/pagure/issue/2463

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

There is not tests to be updated for this ? or maybe a new one to be added :)

I don't think we have tests for this due to this being triggered from the openid request.
Would be nice to add some yeah

rebased

I confirm tests are still passing as is :(

Could use if group: ... instead of the if not ...

same here

Some suggestions but LGTM ;)

rebased

Thanks :)

Pull-Request has been merged by pingou

Metadata