Skip to content

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

@kralos

Description

@kralos

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy