-
Notifications
You must be signed in to change notification settings - Fork 27
Search hostname:port/username #80
Search hostname:port/username #80
Conversation
Thank you for your interest and your PR. It looks good. Could you please add a unit-test that fails without your fix and passes after? Also, before I can merge your PR, I need you to sign the FSF copyright assignment form. Could you please send a mail to assign@gnu.org and ask for a form? |
Thanks! I sent the email. I may not get to adding the test for a few days even though it should be straightforward. That's not from a lack of interest but just a lack of time in the near future. I'll get to it ASAP. |
Added the requested test, which I verified fails without the change suggested in this PR and passes with it. I expect this test to get rewritten if I implement the changes we're discussing in PR 81 to return the list of all available matching entries and validate afterwards, but I think it is useful to merge this to capture the case that wasn't working first. Unfortunately, I still need to complete the FSF paperwork, so this can't be merged quite yet. |
I agree. Thank you for your work.
Please tell me when you send the form. I will merge at this point. |
A quick update that I'm waiting on getting my Employer Disclaimer signed to complete the FSF copyright assignment process. |
Thanks for keeping me updated. |
Are you still waiting? |
Yeah, I got an acknowledgement from the FSF that they are reviewing the documents an few weeks ago and haven't heard anything since. I'll check with them again. |
that's good enough for me. Would you mind updating your PRs please? |
Sure, I'll probably have time to do that on the weekend. |
I'm sorry I didn't get to this over the weekend because of other priorities. I still hope to get to it in the next few days. |
According to README.md auth-source-pass supports entries with username either prefixed to the hostname with an @ as separator or in a subdirectory under the hostname. This was true when there was no port or service included in the name, but not when there was one. This commit adds a check for the missed case. I believe that it would work just as well to replace the nil passed for the user in the call two lines down, but I wasn't completely sure I wasn't missing something for why nil was passed in that case so chose the conservative option of adding the more specific check for the case when both user and port are supplied.
313a900
to
86cde32
Compare
This is now rebased on master, handles |
Awesome work, thank you! |
For some reason, I didn't merge your commit but a commit I created with your code. I don't know what happened except that I pushed your branch to my repository. You are still marked as the author but the commit is me. Sorry about that. |
According to README.md auth-source-pass supports entries with username
either prefixed to the hostname with an @ as separator or in a
subdirectory under the hostname. This was true when there was no port
or service included in the name, but not when there was one.
This commit adds a check for the missed case. I believe that it would
work just as well to replace the nil passed for the user in the call
two lines down, but I wasn't completely sure I wasn't missing
something for why nil was passed in that case so chose the
conservative option of adding the more specific check for the case
when both user and port are supplied.