tenable/integration-jira-cloud

"The operator \'=\' is not supported by the \'Tenable Asset UUID\

Closed this issue · 3 comments

Hello I am receiving the following error when running the integration:

       INFO     INFO:Processor:Matched Task "VULN-1427" to SQL Cache and updated.                                                                                                                                                                                                                        processor.py:1

tenb2jira_log.txt
94
ERROR ERROR:restfly.errors.BadRequestError:[400: POST] https://xx.atlassian.net/rest/api/3/search body=b'{"errorMessages":["The operator '=' is not supported by the 'Tenable Asset UUID' field."],"warningMessages":[]}' errors.py:91
INFO INFO:Processor:Finding related to Plugin 51192 is closed, skipping processor.py:174
INFO INFO:Processor:Subtask 7b12788e-8cc7-3811-b981-72db685c77cf is not in the SQL cache and is not open. Skipping. processor.py:291
INFO INFO:Processor:Finding related to Plugin 197009 is closed, skipping processor.py:174
INFO INFO:Processor:Subtask 8b054350-d2fb-365b-9e6f-a395b430d4e3 is not in the SQL cache and is not open. Skipping. processor.py:291
INFO INFO:Processor:Finding related to Plugin 51192 is closed, skipping processor.py:174
INFO INFO:Processor:Subtask 21fb8e9d-50cd-3032-a73d-94788ecbab5e is not in the SQL cache and is not open. Skipping.

       ERROR    ERROR:Processor:[400: POST] https://xx.atlassian.net/rest/api/3/search body=b'{"errorMessages":["The operator \'=\' is not supported by the \'Tenable Asset UUID\' field."],"warningMessages":[]}'                                                                            processor.py:457
                NoneType: None
                Stack (most recent call last):
                  File "/home/linux/.local/bin/tenb2jira", line 8, in <module>
                    sys.exit(app())
                  File "/home/linux/.local/lib/python3.10/site-packages/typer/main.py", line 309, in __call__
                    return get_command(self)(*args, **kwargs)
                  File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
                    return self.main(*args, **kwargs)
                  File "/home/linux/.local/lib/python3.10/site-packages/typer/core.py", line 723, in main
                    return _main(
                  File "/home/linux/.local/lib/python3.10/site-packages/typer/core.py", line 193, in _main
                    rv = self.invoke(ctx)
                  File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
                    return _process_result(sub_ctx.command.invoke(sub_ctx))
                  File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
                    return ctx.invoke(self.callback, **ctx.params)
                  File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
                    return __callback(*args, **kwargs)
                  File "/home/linux/.local/lib/python3.10/site-packages/typer/main.py", line 692, in wrapper
                    return callback(**use_params)
                  File "/home/linux/.local/lib/python3.10/site-packages/tenb2jira/cli.py", line 144, in sync
                    processor.sync(cleanup=cleanup)
                  File "/home/linux/.local/lib/python3.10/site-packages/tenb2jira/processor.py", line 457, in sync
                    log.exception(job.exception(), stack_info=True)
       ERROR    ERROR:Processor:[400: POST] https://xx.atlassian.net/rest/api/3/search body=b'{"errorMessages":["The operator \'=\' is not supported by the \'Tenable Asset UUID\' field."],"warningMessages":[]}'                                                                            processor.py:457
                NoneType: None
                Stack (most recent call last):
                  File "/home/linux/.local/bin/tenb2jira", line 8, in <module>
                    sys.exit(app())
                  File "/home/linux/.local/lib/python3.10/site-packages/typer/main.py", line 309, in __call__
                    return get_command(self)(*args, **kwargs)
                  File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
                    return self.main(*args, **kwargs)
                  File "/home/linux/.local/lib/python3.10/site-packages/typer/core.py", line 723, in main
                    return _main(
                  File "/home/linux/.local/lib/python3.10/site-packages/typer/core.py", line 193, in _main
                    rv = self.invoke(ctx)
                  File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
                    return _process_result(sub_ctx.command.invoke(sub_ctx))
                  File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
                    return ctx.invoke(self.callback, **ctx.params)
                  File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
                    return __callback(*args, **kwargs)
                  File "/home/linux/.local/lib/python3.10/site-packages/typer/main.py", line 692, in wrapper
                    return callback(**use_params)
                  File "/home/linux/.local/lib/python3.10/site-packages/tenb2jira/cli.py", line 144, in sync
                    processor.sync(cleanup=cleanup)
                  File "/home/linux/.local/lib/python3.10/site-packages/tenb2jira/processor.py", line 457, in sync
                    log.exception(job.exception(), stack_info=True)
       ERROR    ERROR:Processor:[400: POST] https://xx.atlassian.net/rest/api/3/search body=b'{"errorMessages":["The operator \'=\' is not supported by the \'Tenable Asset UUID\' field."],"warningMessages":[]}' 

If I change the Tenable Asset UUID to type "textarea" and seacher to "textsearcher" it seems to resolve this issue but another comes up. I receive the following error:
ERROR ERROR:Processor:badly formed hexadecimal UUID string processor.py:457
NoneType: None
Stack (most recent call last):
File "/home/linux/.local/bin/tenb2jira", line 8, in
sys.exit(app())
File "/home/linux/.local/lib/python3.10/site-packages/typer/main.py", line 309, in call
return get_command(self)(*args, **kwargs)
File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/linux/.local/lib/python3.10/site-packages/typer/core.py", line 723, in main
return _main(
File "/home/linux/.local/lib/python3.10/site-packages/typer/core.py", line 193, in _main
rv = self.invoke(ctx)
File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/linux/.local/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/linux/.local/lib/python3.10/site-packages/typer/main.py", line 692, in wrapper
return callback(**use_params)
File "/home/linux/.local/lib/python3.10/site-packages/tenb2jira/cli.py", line 144, in sync
processor.sync(cleanup=cleanup)
File "/home/linux/.local/lib/python3.10/site-packages/tenb2jira/processor.py", line 457, in sync
log.exception(job.exception(), stack_info=True)

I am attaching also the full log (tenb2jira_log2.txt). I have examined the UUIDs and they seem to be in correct format e.g. Tenable Asset UUID:
tenb2jira_log2.txt
ba49b99d-fd35-4038-a8ef-9490924cd2b5
A subsequent run after this will produce no error.

hmmm, can you update the max_workers value to "1" so i can get the full traceback and run again? I'd need to see what the value thats being presented is. It appears that the Asset UUID is malformed, but i dont know why that is from the output

https://github.com/tenable/integration-jira-cloud/blob/main/tmpl_v1_conversion_config.toml#L131

also if you have changed the Tenable Asset UUID field to a textarea, did you happen to delete and rebuild the field as such? we made it a label for searching purposes.

Closing from lack of response