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

entity.message is missing in Audit Logs API response #1311

Closed
EnricoVoss opened this issue May 13, 2024 · 1 comment · Fixed by #1312
Closed

entity.message is missing in Audit Logs API response #1311

EnricoVoss opened this issue May 13, 2024 · 1 comment · Fixed by #1312
Assignees
Labels
bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented project:slack-api-client project:slack-api-client
Milestone

Comments

@EnricoVoss
Copy link

When using the message_flagged API call in Java with Slack SDK 1.39.0, I am missing the message section in the entity section containing channel, name and timestamp entries.

This is the response i get.
LogsResponse.Entry(id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, dateCreate=1687182032, action=message_flagged, actor=LogsResponse.Actor(type=user, user=LogsResponse.User(id=UXXXXXXX, name=first last", email=first.last@mail.com", team=EXXXXXXXXX)), entity=LogsResponse.Entity(type=message, app=null, user=null, usergroup=null, workspace=null, enterprise=null, file=null, channel=null, huddle=null, role=null, accountTypeRole=null, workflow=null, barrier=null, workflowV2=null), context=LogsResponse.Context(sessionId=XXXXXXXXXXX, location=LogsResponse.Location(type=enterprise, id=EXXXXXXXXX, name= Test Env, domain=sandbox), ua=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36, ipAddress=XXX.XXX.XXX.XXX, app=null), details=null)

@seratch seratch added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented project:slack-api-client project:slack-api-client and removed untriaged labels May 13, 2024
@seratch seratch added this to the 1.39.2 milestone May 13, 2024
@seratch
Copy link
Member

seratch commented May 13, 2024

Hi @EnricoVoss, thank you so much for reporting this issue! We will resolve it and release a new patch version including the fix.

Let me paste the payload exmaple you've shared in the community workspace:

{
  "action": "message_flagged",
  "actor": {
    "type": "user",
    "user": {
      "email": "first.last@test.verizon.com",
      "id": "UXXXXXXX",
      "name": "first last",
      "team": "EXXXXXXXXX"
    }
  },
  "context": {
    "ip_address": "XXX.XXX.XXX.XXX",
    "location": {
      "domain": "verizon-sandbox",
      "id": "EXXXXXXXXX",
      "name": "Verizon Org Test Env",
      "type": "enterprise"
    },
    "session_id": "XXXXXXXXXXX",
    "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
  },
  "date_create": 1687182032,
  "entity": {
    "message": {
      "channel": "CXXXXXXXXX",
      "team": "EXXXXXXXXX",
      "timestamp": "1687181979.191639"
    },
    "type": "message"
  },
  "id": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}

@seratch seratch self-assigned this May 13, 2024
@seratch seratch changed the title missing output for message_flagged audit log API call with Slack SDK 1.39.0 entity.message is missing in Audit Logs API response May 14, 2024
seratch added a commit to seratch/java-slack-sdk that referenced this issue May 14, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented project:slack-api-client project:slack-api-client
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants