guilhemmarchand / TA-jira-service-desk-simple-addon

Atlasian JIRA add-on for Splunk alert actions
11 stars 9 forks source link

Add-on unable to load 'Configuration' page, even after fresh install #131

Closed dtodd912 closed 2 years ago

dtodd912 commented 2 years ago

02-18-2022 17:46:51.974 +0000 ERROR AdminManagerExternal - Unexpected error "<class 'splunktaucclib.rest_handler.error.RestError'>" from python handler: "REST Error [500]: Internal Server Error -- Traceback (most recent call last):\n File "/apps/splunk/etc/apps/TA-jira-service-desk-simple-addon/lib/splunktaucclib/rest_handler/handler.py", line 112, in wrapper\n for name, data, acl in meth(self, *args, **kwargs):\n File "/apps/splunk/etc/apps/TA-jira-service-desk-simple-addon/lib/splunktaucclib/rest_handler/handler.py", line 291, in _format_response\n masked = self.rest_credentials.decrypt_for_get(name, data)\n File "/apps/splunk/etc/apps/TA-jira-service-desk-simple-addon/lib/splunktaucclib/rest_handler/credentials.py", line 182, in decrypt_for_get\n clear_password = self._get(name)\n File "/apps/splunk/etc/apps/TA-jira-service-desk-simple-addon/lib/splunktaucclib/rest_handler/credentials.py", line 386, in _get\n string = mgr.get_password(user=context.username())\n File "/apps/splunk/etc/apps/TA-jira-service-desk-simple-addon/lib/solnlib/utils.py", line 148, in wrapper\n return func(*args, **kwargs)\n File "/apps/splunk/etc/apps/TA-jira-service-desk-simple-addon/lib/solnlib/credentials.py", line 122, in get_password\n all_passwords = self._get_all_passwords()\n File "/apps/splunk/etc/apps/TA-jira-service-desk-simple-addon/lib/solnlib/utils.py", line 148, in wrapper\n return func(*args, **kwargs)\n File "/apps/splunk/etc/apps/TA-jira-service-desk-simple-addon/lib/solnlib/credentials.py", line 277, in _get_all_passwords\n clear_password += field_clear[index]\nTypeError: can only concatenate str (not "NoneType") to str\n". See splunkd.log for more details.

We're seeing the following error when trying to launch the add-on's configuration page. We noticed this issue with add-on 1.0.29. We updated the add-on (assuming the new version would fix this) and we still see this error on version 2.0.7.

image

dtodd912 commented 2 years ago

This is a non-issue. Turns out a passwords.conf existed in a completely different add-on and that was causing Splunk to decrypt improperly.

guilhemmarchand commented 2 years ago

Glad you found it out @dtodd912 !

This indeed is what I was going to answer, this is to be fair an annoying issue I have seen affecting other users earlier, not related to the Addon but affecting all Splunk Addons... how annoying