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

Notifications are getting appended to the bucket configuration instead of replacing #8760

Open
ramya-c3 opened this issue Feb 4, 2025 · 0 comments
Labels

Comments

@ramya-c3
Copy link

ramya-c3 commented Feb 4, 2025

Environment info

  • NooBaa Version: noobaa-core-5.18.0-20250201.el9.x86_64
  • Platform: standalone

Actual behavior

When the different notifications are applied for same bucket instead of replacing it is appending

s3cp1 s3api put-bucket-notification-configuration --bucket scenario1bucket1 --notification-configuration file://notification.json

s3cp1 s3api get-bucket-notification-configuration --bucket scenario1bucket1

{
"TopicConfigurations": [
{
"Id": "notify_event",
"TopicArn": "connection.json",
"Events": [
"s3:ObjectCreated:"
]
},
{
"Id": "notify_event",
"TopicArn": "connection.json",
"Events": [
"s3:ObjectCreated:
"
]
}
]
}

cat notification5.json

{
"TopicConfigurations": [
{
"Id": "notify_event",
"TopicArn": "connection5.json",
"Events": [
"s3:ObjectCreated:"
]
},
{
"Id": "notify_event",
"TopicArn": "connection.json",
"Events": [
"s3:ObjectCreated:
"
]
}
]
}

Expected behavior

1.only one connection should be present

Steps to reproduce

More information - Screenshots / Logs / Other output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant