atlassian_{bitbucket,confluence,jira}: improve pipeline robustness to empty strings - #12977
Merged
Conversation
efd6
force-pushed
the
s5722-atlassian
branch
2 times, most recently
from
March 6, 2025 01:32
cda573b to
4cf6aeb
Compare
Contributor
🚀 Benchmarks reportTo see the full report comment with |
efd6
marked this pull request as ready for review
March 6, 2025 01:55
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
efd6
commented
Mar 6, 2025
| {"timestamp":"2021-11-27T17:26:25.141Z","author":{"name":"System","type":"system","id":"-1","avatarUri":""},"type":{"categoryI18nKey":"bitbucket.service.audit.category.usersandgroups","category":"Users and groups","actionI18nKey":"bitbucket.service.user.audit.action.groupcreated","action":"User group created"},"affectedObjects":[{"name":"stash-users","type":"GROUP","uri":"http://bitbucket.internal:7990/admin/groups/view?name=stash-users","id":"stash-users"}],"changedValues":[],"node":"8767044c-1b98-4d64-82db-ef29af8c3792","method":"System","extraAttributes":[{"nameI18nKey":"bitbucket.audit.attribute.legacy.target","name":"target","value":"stash-users"}]} | ||
| {"timestamp":"2021-11-27T17:26:25.045Z","author":{"name":"System","type":"system","id":"-1","avatarUri":""},"type":{"categoryI18nKey":"bitbucket.service.audit.category.usersandgroups","category":"Users and groups","actionI18nKey":"bitbucket.service.user.audit.action.directorycreated","action":"User directory created"},"affectedObjects":[],"changedValues":[],"node":"8767044c-1b98-4d64-82db-ef29af8c3792","method":"System","extraAttributes":[{"nameI18nKey":"bitbucket.service.user.audit.attribute.directory.name","name":"Directory name","value":"Bitbucket Internal Directory"},{"nameI18nKey":"bitbucket.audit.attribute.legacy.target","name":"target","value":"Bitbucket Internal Directory"}]} No newline at end of file | ||
| {"timestamp":"2021-11-27T17:26:25.045Z","author":{"name":"System","type":"system","id":"-1","avatarUri":""},"type":{"categoryI18nKey":"bitbucket.service.audit.category.usersandgroups","category":"Users and groups","actionI18nKey":"bitbucket.service.user.audit.action.directorycreated","action":"User directory created"},"affectedObjects":[],"changedValues":[],"node":"8767044c-1b98-4d64-82db-ef29af8c3792","method":"System","extraAttributes":[{"nameI18nKey":"bitbucket.service.user.audit.attribute.directory.name","name":"Directory name","value":"Bitbucket Internal Directory"},{"nameI18nKey":"bitbucket.audit.attribute.legacy.target","name":"target","value":"Bitbucket Internal Directory"}]} | ||
| {"timestamp":"2021-11-27T17:38:53.360Z","author":{"name":"admin","type":"NORMAL","id":"2","uri":"http://bitbucket.internal:7990/users/admin","avatarUri":""},"type":{"categoryI18nKey":"bitbucket.service.audit.category.usersandgroups","category":"Users and groups","actionI18nKey":"bitbucket.service.user.audit.action.userrenamed","action":"Username changed"},"affectedObjects":[{"name":"test.user","type":"USER","id":"3"}],"changedValues":[{"key":"Username","i18nKey":"bitbucket.service.user.audit.attribute.user.name","from":"test","to":"test.user"}],"source":"","system":"http://bitbucket.internal:7990","node":"8767044c-1b98-4d64-82db-ef29af8c3792","method":"Browser","extraAttributes":[{"nameI18nKey":"bitbucket.audit.attribute.legacy.details","name":"details","value":"{\"oldUsername\":\"test\"}"},{"nameI18nKey":"bitbucket.audit.attribute.legacy.target","name":"target","value":"test.user"}]} |
| {"timestamp":"2021-11-28T17:06:11.805Z","author":{"name":"Joe Bob","type":"user","id":"2c9680837d4a3682017d4a375a280000","uri":"http://confluence.internal:8090/admin/users/viewuser.action?username=admin123","avatarUri":""},"type":{"categoryI18nKey":"audit.logging.category.user.management","category":"Users and groups","actionI18nKey":"audit.logging.summary.user.updated","action":"User details updated"},"affectedObjects":[{"name":"asdf asdfasdf","type":"User","uri":"http://confluence.internal:8090/admin/users/viewuser.action?username=asdf123","id":"2c9680837d4a3682017d67821e520003"}],"changedValues":[],"source":"10.100.100.2","system":"http://confluence.internal:8090","method":"Browser","extraAttributes":[]} | ||
| {"timestamp":"2021-11-28T17:05:37.158Z","author":{"name":"Joe Bob","type":"user","id":"2c9680837d4a3682017d4a375a280000","uri":"http://confluence.internal:8090/admin/users/viewuser.action?username=admin123","avatarUri":""},"type":{"categoryI18nKey":"audit.logging.category.user.management","category":"Users and groups","actionI18nKey":"audit.logging.summary.user.updated","action":"User details updated"},"affectedObjects":[{"name":"asdf asdfasdf","type":"User","uri":"http://confluence.internal:8090/admin/users/viewuser.action?username=asdf123","id":"2c9680837d4a3682017d67821e520003"}],"changedValues":[{"key":"Display name","i18nKey":"Display name","from":"asdf","to":"asdf asdfasdf"}],"source":"10.100.100.2","system":"http://confluence.internal:8090","method":"Browser","extraAttributes":[]} No newline at end of file | ||
| {"timestamp":"2021-11-28T17:05:37.158Z","author":{"name":"Joe Bob","type":"user","id":"2c9680837d4a3682017d4a375a280000","uri":"http://confluence.internal:8090/admin/users/viewuser.action?username=admin123","avatarUri":""},"type":{"categoryI18nKey":"audit.logging.category.user.management","category":"Users and groups","actionI18nKey":"audit.logging.summary.user.updated","action":"User details updated"},"affectedObjects":[{"name":"asdf asdfasdf","type":"User","uri":"http://confluence.internal:8090/admin/users/viewuser.action?username=asdf123","id":"2c9680837d4a3682017d67821e520003"}],"changedValues":[{"key":"Display name","i18nKey":"Display name","from":"asdf","to":"asdf asdfasdf"}],"source":"10.100.100.2","system":"http://confluence.internal:8090","method":"Browser","extraAttributes":[]} | ||
| {"timestamp":"2021-11-28T17:05:37.158Z","author":{"name":"Joe Bob","type":"user","id":"2c9680837d4a3682017d4a375a280000","uri":"http://confluence.internal:8090/admin/users/viewuser.action?username=admin123","avatarUri":""},"type":{"categoryI18nKey":"audit.logging.category.user.management","category":"Users and groups","actionI18nKey":"audit.logging.summary.user.updated","action":"User details updated"},"affectedObjects":[{"name":"asdf asdfasdf","type":"User","uri":"http://confluence.internal:8090/admin/users/viewuser.action?username=asdf123","id":"2c9680837d4a3682017d67821e520003"}],"changedValues":[{"key":"Display name","i18nKey":"Display name","from":"asdf","to":"asdf asdfasdf"}],"source":"","system":"http://confluence.internal:8090","method":"Browser","extraAttributes":[]} |
| {"timestamp":"2021-11-28T18:23:20.278Z","author":{"name":"admin.user1","type":"ApplicationUser","id":"10000","uri":"http://jira.internal:8088/secure/ViewProfile.jspa?name=admin.user1","avatarUri":""},"type":{"categoryI18nKey":"jira.auditing.category.usermanagement","category":"user management","actionI18nKey":"jira.auditing.user.updated","action":"User updated"},"affectedObjects":[{"name":"admin.user1","type":"USER","uri":"http://jira.internal:8088/secure/ViewProfile.jspa?name=admin.user1","id":"JIRAUSER10000"}],"changedValues":[{"key":"Email","i18nKey":"common.words.email","from":"admin@example.com","to":"admin1@example.com"}],"source":"10.100.100.2","system":"http://jira.internal:8088","method":"Browser","extraAttributes":[]} | ||
| {"timestamp":"2021-11-28T18:23:13.741Z","author":{"name":"admin.user1","type":"ApplicationUser","id":"10000","uri":"http://jira.internal:8088/secure/ViewProfile.jspa?name=admin.user1","avatarUri":""},"type":{"categoryI18nKey":"jira.auditing.category.usermanagement","category":"user management","actionI18nKey":"jira.auditing.user.updated","action":"User updated"},"affectedObjects":[{"name":"admin.user1","type":"USER","uri":"http://jira.internal:8088/secure/ViewProfile.jspa?name=admin.user1","id":"JIRAUSER10000"}],"changedValues":[{"key":"Full name","i18nKey":"common.words.fullname","from":"Admin User","to":"Admin User1"}],"source":"10.100.100.2","system":"http://jira.internal:8088","method":"Browser","extraAttributes":[]} No newline at end of file | ||
| {"timestamp":"2021-11-28T18:23:13.741Z","author":{"name":"admin.user1","type":"ApplicationUser","id":"10000","uri":"http://jira.internal:8088/secure/ViewProfile.jspa?name=admin.user1","avatarUri":""},"type":{"categoryI18nKey":"jira.auditing.category.usermanagement","category":"user management","actionI18nKey":"jira.auditing.user.updated","action":"User updated"},"affectedObjects":[{"name":"admin.user1","type":"USER","uri":"http://jira.internal:8088/secure/ViewProfile.jspa?name=admin.user1","id":"JIRAUSER10000"}],"changedValues":[{"key":"Full name","i18nKey":"common.words.fullname","from":"Admin User","to":"Admin User1"}],"source":"10.100.100.2","system":"http://jira.internal:8088","method":"Browser","extraAttributes":[]} | ||
| {"timestamp":"2021-11-28T18:23:13.741Z","author":{"name":"admin.user1","type":"ApplicationUser","id":"10000","uri":"http://jira.internal:8088/secure/ViewProfile.jspa?name=admin.user1","avatarUri":""},"type":{"categoryI18nKey":"jira.auditing.category.usermanagement","category":"user management","actionI18nKey":"jira.auditing.user.updated","action":"User updated"},"affectedObjects":[{"name":"admin.user1","type":"USER","uri":"http://jira.internal:8088/secure/ViewProfile.jspa?name=admin.user1","id":"JIRAUSER10000"}],"changedValues":[{"key":"Full name","i18nKey":"common.words.fullname","from":"Admin User","to":"Admin User1"}],"source":"","system":"http://jira.internal:8088","method":"Browser","extraAttributes":[]} |
kcreddy
reviewed
Mar 6, 2025
Comment on lines
+4
to
+6
| - description: Improve error reporting. | ||
| type: enhancement | ||
| link: https://github.com/elastic/integrations/pull/12977 |
Contributor
There was a problem hiding this comment.
In bitbucket changes, looks like improved error reporting is missing.
… empty strings Atlassian will send empty string values rather than omit fields, so null out all empty string values at the start of processing. Also improve error reporting and script robustness.
|
💚 Build Succeeded
History
cc @efd6 |
kcreddy
approved these changes
Mar 6, 2025
Contributor
|
Package atlassian_bitbucket - 2.5.0 containing this change is available at https://epr.elastic.co/package/atlassian_bitbucket/2.5.0/ |
Contributor
|
Package atlassian_confluence - 1.29.0 containing this change is available at https://epr.elastic.co/package/atlassian_confluence/1.29.0/ |
Contributor
|
Package atlassian_jira - 1.30.0 containing this change is available at https://epr.elastic.co/package/atlassian_jira/1.30.0/ |
flexitrev
pushed a commit
that referenced
this pull request
Mar 20, 2025
… empty strings (#12977) Atlassian will send empty string values rather than omit fields, so null out all empty string values at the start of processing. Also improve error reporting and script robustness.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Proposed commit message
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots