Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Messenger] Permit creating queue when an account is provided#44021

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
nuvolapl wants to merge1 commit intosymfony:6.3fromnuvolapl:ticket_42208
Closed

[Messenger] Permit creating queue when an account is provided#44021

nuvolapl wants to merge1 commit intosymfony:6.3fromnuvolapl:ticket_42208

Conversation

nuvolapl
Copy link

QA
Branch?5.4
Bug fix?no
New feature?no
Deprecations?no
TicketsFix#42208
LicenseMIT
Doc PR

alaszewski reacted with thumbs up emojikazik666 reacted with heart emoji
@carsonbot
Copy link

Hey!

I think@WaylandAce has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@fabpotfabpot modified the milestones:5.4,6.1Nov 16, 2021
@Kocal
Copy link
Member

Hi everyone, what is the state of this PR?
Should it target 5.4 instead of 6.1? To me it looks like a bug fix and not a new feature. The current behaviour is broken.

I can confirm the provided patch works, a non-existent queue is created when calling->setup() if needed.

Friendly ping@fabpot@jderusse@Nyholm 🙏

Thanks!

@Nyholm
Copy link
Member

This was part of the original PR by@jderusse. It is not a bug it is a new feature.

I dont remember why this was added. Jeremy, do you know?

@chalasr
Copy link
Member

This is for 5.4. It just misses a test case (if possible)

Nyholm reacted with eyes emoji

@Kocal
Copy link
Member

Kocal commentedMar 14, 2022
edited
Loading

I will create a new PR with@nuvolapl's commit + a new test case.

chalasr reacted with thumbs up emoji

@chalasr
Copy link
Member

Sorry Tobias, I missed your comment. If creating the queue on the fly was not expected to work, then it is indeed a new feature.

@Kocal
Copy link
Member

Kocal commentedMar 14, 2022
edited
Loading

Then what's the meaning of having an optionauto_setup (which istrue by default), if the auto-setup is not allowed?

@jderusse
Copy link
Member

This was part of the original PR by@jderusse. It is not a bug it is a new feature.

At this time, the DSN for the queue wassqs://default/queue_name ORsqs://default/owner_id/queue_name.
Whenowner_id was present, we presumed that it was somebodyelse's queue (like referencing the queue from another account). And, in that case, it was not possible de create the queue.

Since then, things changed:

  • first, theowner_id could be us, and the presumption is wrong.
  • the DSN could be nowhttps://sqs.eu-west-1.amazonaws.com/owner_id/queue_name, and presumption is wrong again.

I believe this check should not be ignored because: If the code run with credentials belonging to account1234, but queue is/9876/foo, the Symfony will create the queuefoo on account1234 which is wrong.

This line should be replaced by checking if the ownerId is identical to the currently connected account (seeStsClient::getCallerIdentity).

Nyholm, Kocal, and chalasr reacted with thumbs up emoji

@Nyholm
Copy link
Member

Thank you for the clarification.

@Kocal do you understand and are happy moving forward in this way?

@chalasr With this new information (for both of us), do you agree on targeting 6.1?

@Kocal
Copy link
Member

Kocal commentedMar 14, 2022
edited
Loading

Thanks everyone!

@Nyholm: yeah I'm fine with those explanations, I will try to send a PR ASAP.

nuvolapl reacted with heart emoji

@fabpotfabpot modified the milestones:6.1,6.2May 20, 2022
@nicolas-grekasnicolas-grekas modified the milestones:6.2,6.3Nov 5, 2022
@nuvolaplnuvolapl closed this by deleting the head repositoryApr 27, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
6.3
Development

Successfully merging this pull request may close these issues.

Messenger Amazon SQS Connection::setup() throws exception when needing to create a queue
8 participants
@nuvolapl@carsonbot@Kocal@Nyholm@chalasr@jderusse@fabpot@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp