[SERVER-55943] Improve error message when user does not correctly specify apiVersion Created: 08/Apr/21  Updated: 19/May/21  Resolved: 19/May/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Xuerui Fa Assignee: Xuerui Fa
Resolution: Won't Fix Votes: 0
Labels: post-rc0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Sprint: Repl 2021-05-31
Participants:

 Description   

We can improve this error message by directing users to the action needed to resolve the problem (i.e. appending the apiVersion flag to their list of options during shell invocation).



 Comments   
Comment by Xuerui Fa [ 08/Apr/21 ]

Ah that makes sense. I'll definitely look into that, thanks for the suggestion!

Comment by Eric Milkie [ 08/Apr/21 ]

I think you could do what you suggest in the shell code itself, rather than try to detect the shell in the server.

Comment by Xuerui Fa [ 08/Apr/21 ]

jesse mentioned that there could be a way to determine if a user is connecting via the shell, and change the error message specifically for the shell to something like Please start the mongo shell with --apiVersion 1. We might be able to try something along those lines. Are there other connections where we should provide more guidance?

Comment by Eric Milkie [ 08/Apr/21 ]

The error message is returned for all driver connections, not just the shell, so it will be hard to compose a message with resolution guidance that covers every situation. The way to provide apiVersion for each driver is different.

Generated at Thu Feb 08 05:37:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.