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

multiple connections are getting created for single notification #8761

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

multiple connections are getting created for single notification #8761

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 a notification is applied on the bucket it should consider whatever is present in the file it should create duplicate unwanted connections/topics

cat notification5.json

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

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

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

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

Expected behavior

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

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