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

MongoClient.listCollectionNames() returns truncated names

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • 3.10.0
    • None
    • None

    Description

      We found an issue with version 3.10.0 and Azure CosmosDB where it returns shortened collection names with first 3 letters removed?

      Testing with version 3.9.1 it appears to work correctly.

      3.10.0 - BUG !!!

      gockChangeLog,
      tCreateCollection,
      metricDEK,
      -DEK,
      gockLock,
      tKey

      3.9.1 - OK

      mongockChangeLog,
       testCreateCollection,
       SymmetricDEK,
       PKI-DEK,
       mongockLock,
       testKey

      Please let me know if there any other information you need or if you could give me a direct where I can concentrate do debug this issue and help resolve it.

      Thank you,
      Dan

      spring.data.mongodb.uri=mongodb://...:...@xxx.documents.azure.com:10255/?ssl=true&replicaSet=globaldb
      

      mongoDB = this.mongoClient.getDatabase(mongodb); var collectionNames = StreamSupport.stream( 
       
       
      mongoDB.listCollectionNames().spliterator(), false) .collect(Collectors.toList()); 
       
      log.debug("mongoClient.listCollectionNames():\n{}", String.join(", ", collectionNames));
      

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            dan.dragut@endava.com Dan Dragut
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: