Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4919

Use Mongo::Error::SessionsNotSupported for checking session support

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.4, 7.0.10
    • Affects Version/s: None
    • Component/s: None
    • None

      Mongoid currently uses an exact exception message match to determine whether a failure to create a session is due to sessions not being supported:

      ex.message == Mongo::Session::SESSIONS_NOT_SUPPORTED
      

      Instead the newly added Mongo::Error::SessionsNotSupported class should be checked.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: