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
Test failure with upcoming mongodb extension 1.3.0 #185
Comments
Sorry, I forget the errors (seems important)
|
Thanks Remi! I'll add beta 1 to the build pipeline later today and get on fixing these issues! 👍 |
@remicollet: Thanks for checking this as well!
This appears to be due to a libmongoc change, as "/" is required to separate the host and query string. I'll ask @bjori and @ajdavis about that later, but I believe this behavior is consistent with the connection string spec, which states:
"?" is not considered to be a delimiter that ends host parsing.
We now validate argument length for Binary objects with UUID subtypes (PHPC-895).
This and the related errors that follow are likely caused by throwing if a value in the URI options array has an unexpected type (PHPC-887). Previously, we would have simply ignored the option. I'm curious how the adapter was testing this, though. Were you purposefully constructing a client with invalid types and then checking that they were ignored, or did we just uncover a subtle gap in the adapter mimicking the |
That's right, I did some rewriting of the parser here: https://jira.mongodb.org/browse/CDRIVER-2190 and in the process fixed a related bug, which is that we thought this was valid: mongodb://host?option=value It must be: mongodb://host/?option=value |
That last one would be my guess. Since the test passes against ext-mongo but no longer passes when converting for ext-mongodb, I'm guessing that the adapter will have to do some additional conversion there. |
Seems minor (connection fail with different exception)
The text was updated successfully, but these errors were encountered: