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

[Lock] remove non-standard MongoDbStore URI parameters before passing to driver #37180

Closed
kralos opened this issue Jun 10, 2020 · 0 comments · Fixed by #37218
Closed

[Lock] remove non-standard MongoDbStore URI parameters before passing to driver #37180

kralos opened this issue Jun 10, 2020 · 0 comments · Fixed by #37218

Comments

@kralos
Copy link

kralos commented Jun 10, 2020

Symfony version(s) affected: 5.1.0

Description
@jmikola has raised concerns with our handling of both the database path and collection query string in a MongoDbStore constructed with a MongoDB connection URI. Please see #37140 (comment)

How to reproduce
Construction of a MongoDbStore using a MongoDB connection URI with collection= in the querystring.

Possible Solution
We should remove collection from the query string before passing the URI to the driver.

Additional context
#37140 (comment)

See the note regarding libmongoc client and connection re-use internally: https://www.php.net/manual/en/mongodb.connection-handling.php

@kralos kralos added the Bug label Jun 10, 2020
@xabbuh xabbuh added the Lock label Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 10, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 11, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 11, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 11, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 11, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 15, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 15, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 15, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 15, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 15, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 15, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 15, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 15, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 15, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 16, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 16, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 16, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 18, 2020
@kralos kralos changed the title [Lock] deprecate non-standard usage of database and collection in MongoDbStore URI [Lock] remove non-standard MongoDbStore URI parameters before passing to driver Jun 18, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 22, 2020
kralos pushed a commit to kralos/symfony that referenced this issue Jun 22, 2020
@fabpot fabpot closed this as completed Aug 16, 2020
fabpot added a commit that referenced this issue Aug 16, 2020
…alos)

This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Lock] MongoDbStore skim non-standard options from uri

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #37180
| License       | MIT
| Doc PR        |

Don't allow non-standard connection uri options reach `MongoDB\Client`

Commits
-------

67912fa [Lock] MongoDbStore skim non-standard options from uri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants