Skip to content

DatabaseClientFactory newClient call with database parameter value, passes null as value #1007

@georgeajit

Description

@georgeajit

Version of MarkLogic Java Client API

4.1.1-develop

Version of MarkLogic Server

9.0 nightly

Java version

1.8

OS and version

Linux

Input:

/**
   * Creates a client to access the database by means of a REST server.
   *
   * @param host the host with the REST server
   * @param port the port for the REST server
   * @param database the database to access (default: configured database for
   *            the REST server)
   * @param securityContext the security context created depending upon the
   *            authentication type - BasicAuthContext, DigestAuthContext or KerberosAuthContext
   *            and communication channel type (SSL)
   * @return a new client for making database requests
   */
  static public DatabaseClient newClient(String host, int port, String database, SecurityContext securityContext) {
    return newClient(host, port, null, securityContext, null);
  }

The return should have database passed in the call instead of null.

Actual output: What did you observe? What errors did you see? Can you attach the logs? (Java logs, MarkLogic logs)

Expected output: A valid client pointing to the database.

Alternatives: What else have you tried, actual/expected?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions