Driver version check fails when there is another version.properties file in the classpath

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.4.0
    • Affects Version/s: None
    • Component/s: Connection Management
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Version: 3.4.0.SNAPSHOT
      ClientMetadataHelper tries to get DriverVersion using

      Class<InternalStreamConnectionInitializer> clazz = InternalStreamConnectionInitializer.class;
      URL versionPropertiesFileURL = clazz.getResource("/version.properties");
      

      but there is another "version.properties" file in classpath - it leads to IllegalArgumentException("Value can not be null") in BsonString constructor.

      This prevents any connections from being established to the MongoDB server.

            Assignee:
            Jeffrey Yemin
            Reporter:
            Vladimir Dolzhenko
            None
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: