Product: Aqua Data Studio
Version: 18.0.0-dev-49
Build #: 48564
Build Date: 2016-Feb-10 09:36:40 PM
Operating Environment: Linux (3.13.0-62-generic, amd64) / UTF-8 / en / IN / Oracle Corporation 1.8.0_72-b15
Memory: Max=704,643,072; Total=486,014,976; Free=139,462,192; CPUs=8
Database: MongoDB 3.2.1
Issue is applicable only for MongoDB 3.2.1
Steps to reproduce:
Connect with Mongo 3.2.1 and create one user.
Observation -
a] Issue is specific to MongoDB 3.2.1 - script generated - Use dbName
// In the generated script double quotes around dbName is missing, causing the script to fail.
b]When ADS is connected to Previous version MongoDB 3.0.7- Proper script generates- Use "dbName"
|
109 KB
Actually this issue is not specific to MongoDB 3.2.1 or ADS v18. I can reproduce this problem using v17 and MongoDB 2.6 and 3.0 as well. The ScriptUser code in v17 also doesn't add quotes in the USE statement for Drop User.
The problem is caused by the database name "new". "new" is considered a keyword in JSON parsing. Therefore, it needs to be enclosed in quote identifiers.
@jenny: Do we need to backport this to v17 as well?
@jenny: Do we need to backport this to v17 as well?
Issue #14276 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 17.0.3-3, 18.0.0-dev-51 |
No time estimate |
Actually this issue is not specific to MongoDB 3.2.1 or ADS v18. I can reproduce this problem using v17 and MongoDB 2.6 and 3.0 as well. The ScriptUser code in v17 also doesn't add quotes in the USE statement for Drop User.
The problem is caused by the database name "new". "new" is considered a keyword in JSON parsing. Therefore, it needs to be enclosed in quote identifiers.