-
Notifications
You must be signed in to change notification settings - Fork 208
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
Return to previous page on openID login #4151
Conversation
This pull request is now in conflicts. Could you fix it? 🙏 |
you need to rebase and please add test coverage for the newly added code |
I rebased but before I add tests, I would like to see if someone has an idea how to deal with the |
The dependency should at least be in Tumbleweed so you would need to create a SR. Then you can symlink the package from openSUSE:Factory to our Leap devel repos using However, maybe you can also avoid the dependency? So an explicit |
https://metacpan.org/pod/MIME::Base64 has |
Codecov Report
@@ Coverage Diff @@
## master #4151 +/- ##
==========================================
+ Coverage 97.82% 97.89% +0.07%
==========================================
Files 371 371
Lines 33272 33290 +18
==========================================
+ Hits 32548 32589 +41
+ Misses 724 701 -23
Continue to review full report at Codecov.
|
|
Yes - it seems to work fine but is avoiding the extra dep and is more efficient as well. I will add some tests. |
Looks like OpenID.pm doesn't have much coverage as of now: |
It likely requires a lot of mocking to cover this code but the code itself it quite simple so it shouldn't be that much effort after all. |
#4156 is how I would simplify the OpenID module a bit but I marked it as not-ready as I don't want to cause conflicts for you and it does not provide a lot of benefit. |
OBS fail:
|
Regarding dependencies, in OBS we use
and in https://github.com/os-autoinst/openQA/blob/master/.circleci/ci-packages.txt we have the same versions Net-OpenID-Common-1.20 and Net-OpenID-Consumer-1.18 so at least that is the same. |
My idea that the obs issue could be caused by a lack of internet access became less likely when I disconnected my local machine from the wifi and successfully ran the testsuite. |
Looking at the source of I try to mock this interaction. |
FYI this is also hitting poo#97700 |
Ticket: https://progress.opensuse.org/issues/89710
I'm introducing a new dependency
Convert::Base32
to encode the return url parameter.If I don't do this and only do the regular urlencoding that should normally be sufficient,
this error appears:
It seems that no (urlencoded)
/
or?
(I didn't test for other characters, but I guess it doesn't like the%
sign that is used for encoding) must be present in the url to avoid this error.