misp42splunk icon indicating copy to clipboard operation
misp42splunk copied to clipboard

UnboundLocalError when there is error in connection

Open wintermute101 opened this issue 1 year ago • 2 comments

When you try to connect to MISP instance and there is connection error, instead of showing error message there is error in code that tries to show "r" response of misp_url_request which is not set in this case.

UnboundLocalError at "/opt/splunk/etc/apps/misp42splunk/bin/misp_common.py", line 291 : local variable 'r' referenced before assignment

wintermute101 avatar Dec 21 '23 11:12 wintermute101

I think it was already fixed, I do not see error in git version.

wintermute101 avatar Dec 21 '23 12:12 wintermute101

Hello This is fixed in 4.3.2 avalaible on github Checks ongoing on splunkbase before validation

Le 21 décembre 2023 12:27:52 GMT+01:00, wintermute101 @.***> a écrit :

When you try to connect to MISP instance and there is connection error, instead of showing error message there is error in code that tries to show "r" response of misp_url_request which is not set in this case.

UnboundLocalError at "/opt/splunk/etc/apps/misp42splunk/bin/misp_common.py", line 291 : local variable 'r' referenced before assignment

-- Reply to this email directly or view it on GitHub: https://github.com/remg427/misp42splunk/issues/257 You are receiving this because you are subscribed to this thread.

Message ID: @.***> -- Sent with K-9 Mail.

remg427 avatar Dec 21 '23 17:12 remg427