[DOCS-8719] SSL not mentioned in PHP driver docs Created: 31/Aug/16 Updated: 11/Jan/17 Resolved: 17/Nov/16 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | drivers |
| Affects Version/s: | None |
| Fix Version/s: | 01112017-cleanup |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Andrew Davidson | Assignee: | Jeremy Mikola |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Days since reply: | 7 years, 12 weeks, 6 days ago | ||||||||||||||||||||
| Story Points: | 1 | ||||||||||||||||||||
| Description |
|
In http://mongodb.github.io/mongo-php-library/ We should ensure that driver documentation has an example connection using SSL (particularly with MongoDB Atlas requiring it) |
| Comments |
| Comment by Allison Reinheimer Moore [ 17/Nov/16 ] |
|
Published! https://docs.mongodb.com/php-library/master/reference/method/MongoDBClient__construct/#examples |
| Comment by Githook User [ 17/Nov/16 ] |
|
Author: {u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}Message: |
| Comment by Jeremy Mikola [ 16/Nov/16 ] |
|
https://github.com/mongodb/mongo-php-library/pull/281 allison.moore: Please take a look at my andrew.davidson, pavel.duchovny: Something I noticed on https://docs.atlas.mongodb.com/driver-connection/ is that each URI includes both authSource=admin and /admin in the URI. I believe that is redundant for most drivers, since authSource determines the database to authenticate against. The /admin path, which follows the host list would only otherwise be used to determine the default database for the driver. I'm not sure which drivers actually support that (kay.kim mentioned Ruby), but PHP certainly does not have the notion of a "default database" like the shell. |
| Comment by Jeremy Mikola [ 15/Nov/16 ] |
pavel.duchovny: The example you cited is actually the PHP library (PHPLIB in JIRA), which is exactly what we want folks to use. It's the pure-PHP package that wraps the "mongodb" extension (PHPC and HHVM projects in JIRA). The PHP library documentation is hosted at: https://docs.mongodb.com/php-library/ The legacy driver's class would be MongoClient, not MongoDB\Client. I would suggest leaving the Atlas code example as-is, and adding a link that it also requires PHP library 1.0+, in addition to "mongodb-1.1". We explain the legacy and new drivers in the driver compatibility reference, which is already linked to. To build upon what allison.moore said, I'm currently fixing a slew of PHPLIB documentation issues in PR #281 and will include an SSL connection in the examples for MongoDB\Client usage. |
| Comment by Allison Reinheimer Moore [ 15/Nov/16 ] |
|
andrew.davidson pash10g@gmail.com Jeremy Mikola is working on this in I'll move this ticket up in my queue as well. Thanks! |
| Comment by Pavel Duchovny [ 15/Nov/16 ] |
|
andrew.davidson , The example in the PHP driver for atlas is actually for the legacy driver Mongo and it contradicts the requirement for Atlas to use the mongodb driver (1.1 and above). I think we should address this quickly especially for Atlas users who are already opening tickets with some confusion around this area.
|