[SERVER-20235] Upsert (via PHP) on non-existsing database - results in 'permission denied' (storage: WiredTiger) Created: 01/Sep/15 Updated: 10/Feb/16 Resolved: 02/Sep/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | WiredTiger |
| Affects Version/s: | 3.0.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Radek | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||
| Steps To Reproduce: | e.g. PHP mongodb driver: https://pecl.php.net/package/mongo (version. 1.6.10) test.php:
mongodb.log:
/etc/mongod.conf:
|
||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||
| Description |
|
When upserting a document to non-existing database - mongo creates database folder with invalid permission (drw-r-xr-x mongodb nogroup), so it can not create files in this folder (sic!).
e.g. mongodb.log: /var/lib/mongodb-wt/test1/ |
| Comments |
| Comment by Sam Kleinman (Inactive) [ 02/Sep/15 ] | ||||||||||||||||||||||||||||||||||
|
Thanks for your understanding and help with this, and sorry that we couldn't figure out what happened here more clearly. | ||||||||||||||||||||||||||||||||||
| Comment by Radek [ 02/Sep/15 ] | ||||||||||||||||||||||||||||||||||
|
Well.. So in these circumstances I think you sould simply close this ticket. | ||||||||||||||||||||||||||||||||||
| Comment by Sam Kleinman (Inactive) [ 01/Sep/15 ] | ||||||||||||||||||||||||||||||||||
|
Thanks for this report. I'm going to try and reproduce this on my end, but I've done some digging into the code, and I while I work on this, I'd like to ask a few more questions about your set up:
Thanks again for the report and for your help in chasing this issue down. Regards, | ||||||||||||||||||||||||||||||||||
| Comment by Radek [ 01/Sep/15 ] | ||||||||||||||||||||||||||||||||||
|
Sure.
'test1' is the new folder with illegal permissions. | ||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 01/Sep/15 ] | ||||||||||||||||||||||||||||||||||
|
Can you please send the output of:
? Thanks, |