Uploaded image for project: 'Polygene'
  1. Polygene
  2. POLYGENE-237

Unit tests for entitystore-mongodb fail on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • Windows

    Description

      The EmbedMongoMapEntityStoreTest fails on Windows with Invalid database name: 'polygene:test'. I guess that's because the DB is mapped to a directory with the same name and the : is an invalid path character in Windows.

      Stacktrace
      Caused by: com.mongodb.MongoCommandException: Command failed with error 73: 'Invalid database name: 'polygene:test'' on server localhost:35372. The full response is { "ok" : 0.0, "errmsg" : "Invalid database name: 'polygene:test'", "code" : 73 }
      	at com.mongodb.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:115)
      	at com.mongodb.connection.CommandProtocol.execute(CommandProtocol.java:114)
      	at com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:168)
      	at com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:289)
      	at com.mongodb.connection.DefaultServerConnection.command(DefaultServerConnection.java:176)
      

      Attachments

        Activity

          People

            gragaller Georg Ragaller
            gragaller Georg Ragaller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: