Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2308

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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0
    • Affects Version/s: None
    • Component/s: Connection Management
    • 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:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            vladimir.dolzhenko@ihsmarkit.com Vladimir Dolzhenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: