Skip to content

Conversation

@bk2204
Copy link
Member

@bk2204 bk2204 commented Aug 31, 2023

In some cases, we might end up with an entry that's missing either a username or password, and in such a case, we wouldn't want to panic, like we do now. Solve this by using the function FirstEntryForKey to look up the value and return an empty string if none is present.

Do some refactoring in preparatory commits to make this possible.

bk2204 added 3 commits August 30, 2023 20:40
We'd like to use this function in a different package, so let's rename
it to be public.
Now that this function is public, let's add a documentation comment for
it to help inform users.
In some cases, we might end up with an entry that's missing either a
username or password, and in such a case, we wouldn't want to panic,
like we do now.  Solve this by using the function `FirstEntryForKey` to
look up the value and return an empty string if none is present.
@bk2204 bk2204 marked this pull request as ready for review August 31, 2023 20:31
@bk2204 bk2204 requested a review from a team as a code owner August 31, 2023 20:31
Copy link
Member

@chrisd8088 chrisd8088 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@bk2204 bk2204 merged commit 42bf682 into git-lfs:main Sep 6, 2023
@bk2204 bk2204 deleted the creds-multi-panic branch September 6, 2023 12:17
@yosi-codefresh
Copy link

yosi-codefresh commented Sep 18, 2023

@bk2204 - what is the plan about releasing it with a formal release?
is there any workaround we can use until it released?

@bk2204
Copy link
Member Author

bk2204 commented Sep 18, 2023

This will be in v3.5.0. If people would like us to do a v3.4.1 for this, we can, but we need someone who's affected to report back to us that it's fixed, either here or in #5464.

Users can build from the main branch or use the CI artifacts (which are unsigned) in the mean time or to test.

@yosi-codefresh
Copy link

Is there any workaround? or either what are the cases that it happens? because i see that sometimes it haapens and sometime no. i will test it soon and will udpate

@bk2204
Copy link
Member Author

bk2204 commented Sep 18, 2023

I can't reproduce the problem, so I don't know when it happens and when it doesn't. It doesn't trigger for me, for example. That's why we need somebody who is seeing it to verify that the problem is fixed.

@chrisd8088
Copy link
Member

I was able to reproduce the crash, as described in #5464 (comment), and demonstrate that this PR does resolve the problem, as noted in #5464 (comment).

chrisd8088 pushed a commit that referenced this pull request Dec 11, 2023
Fix a panic in the credential code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants