-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
The RE used to split tokens is too narrow #10771
base: main
Are you sure you want to change the base?
Conversation
We require contributors to sign our Contributor License Agreement, and we don't have one on file for @asterbini. In order for us to review and merge your code, please e-sign the PDF at https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature. |
@anaconda-issue-bot check |
I doubt that the regex I am also missing the same changes to conda/conda/gateways/logging.py#L32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about similar changes to conda/conda/gateways/logging.py#L32?
Yes, it makes sense. I did not notice that RE, I just was fixing mamba/conda . |
@wagnerpeer the regex you linked has teh same prolbme for the token matching though ( The problem here is that the first two letters of a token generated by anaconda.org are the first two letters of the username. Apparently anaconda.org allows underscores in usernames. So when your username is |
Correct, that was the intention. Making aware of another location with the same issues.
That explains the issue, but can you give a reference (documentation) on how a token is defined? Where did you find, that the first two characters are copied from the username? |
I just noticed that my username on anaconda starts with 'a_' and the token start with the same two chars |
I noticed that when using conda WITH tokens sometimes the token part is not recognized if it contains also the char '_' (underscore).
This patch enlarge regular expression to split the token to all chars different from '/'