Skip to content
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

Space in the string for the cmd line args is creating an error #7

Open
johnmathe1 opened this issue Dec 9, 2022 · 1 comment
Open

Comments

@johnmathe1
Copy link

Here is part of my verify_authorisation_header --> 'Signature keyId="buyer-app.ondc.org|207|ed25519",
The space between Signature and keyId is the issue that creates the index out of range

Traceback (most recent call last):
File "C:\Users\johnm\source\repos\ondc\reference-implementations\utilities\signing_and_verification\cryptic_utils.py", line 107, in
fire.Fire()
File "C:\Python310\lib\site-packages\fire\core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "C:\Python310\lib\site-packages\fire\core.py", line 466, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "C:\Python310\lib\site-packages\fire\core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "C:\Users\johnm\source\repos\ondc\reference-implementations\utilities\signing_and_verification\cryptic_utils.py", line 88, in verify_authorisation_header
header_parts = get_filter_dictionary_or_operation(auth_header.replace("Signature ", ""))
File "C:\Users\johnm\source\repos\ondc\reference-implementations\utilities\signing_and_verification\cryptic_utils.py", line 62, in get_filter_dictionary_or_operation
value = splits[1].strip()
IndexError: list index out of range

@kj2222
Copy link

kj2222 commented Jul 5, 2023

Is there any fix for this?

abhinavv245 pushed a commit to abhinavv245/reference-implementations that referenced this issue Feb 16, 2024
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

No branches or pull requests

2 participants