[COMPASS-4589] Wrong message is displayed when try to create collection with no name specified Created: 29/Jan/21  Updated: 29/Oct/23  Resolved: 10/Mar/21

Status: Closed
Project: Compass
Component/s: Collection, CRUD
Affects Version/s: 1.25.0
Fix Version/s: 1.26.1

Type: Bug Priority: Major - P3
Reporter: Olena Protsiuk (Inactive) Assignee: Michael Rose (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac, Windows


Attachments: PNG File MongoDB Compass.png    
Story Points: 1
Documentation Changes: Not Needed
Sprint: Iteration Xylocarpus Granatum

 Description   

Problem Description

Steps to Reproduce

  1. Click a button to Create Collection 
  2. Don't fill in the Collection Name field (leave it blank)
  3. Click Create Collection button

Expected Results

Error message should be informative and say that Collection Name field cannot be blank .

Actual Results

"Invalid namespace specified '<db name>'" error message appears.

Additional Notes

The same behaviour if create new db, don't specify collection name and click Create Database.

 



 Comments   
Comment by Githook User [ 17/Mar/21 ]

Author:

{'name': 'Michael Rose', 'email': 'michael_rose@gmx.de', 'username': 'rose-m'}

Message: fix(compass-ddl): disable create buttons when fields are empty COMPASS-4589 (#2137)
Branch: 1.26-releases
https://github.com/mongodb-js/compass/commit/5cdcb8350b8ee1e141f882a283fc6cc7464cbddb

Comment by Githook User [ 10/Mar/21 ]

Author:

{'name': 'Michael Rose', 'email': 'michael_rose@gmx.de', 'username': 'rose-m'}

Message: fix(compass-ddl): disable create buttons when fields are empty COMPASS-4589 (#2137)
Branch: master
https://github.com/mongodb-js/compass/commit/5cdcb8350b8ee1e141f882a283fc6cc7464cbddb

Comment by Githook User [ 10/Mar/21 ]

Author:

{'name': 'Michael Rose', 'email': 'michael_rose@gmx.de', 'username': 'rose-m'}

Message: fix(compass-ddl): disable create buttons when fields are empty COMPASS-4589
Branch: COMPASS-4589-disable-create-button-for-empty-fields
https://github.com/mongodb-js/compass/commit/9aad5f37ee69a0901be74fd494b654e186a618ca

Generated at Wed Feb 07 22:36:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.