Uploaded image for project: 'RAML Module Builder'
  1. RAML Module Builder
  2. RMB-244

OkapiUrl with path in ConfigurationsClient

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: P2
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 22.0.0
    • Labels:
    • Template:
    • Development Team:
      Prokopovych

      Description

      ClientGenerator.java creates a ConfigurationsClient.java with this constructor:

      public ConfigurationsClient(String host, int port, String tenantId, String token)

      The okapiUrl must be passed in as host and port.

      okapiUrl = "https://folio.example.com/okapi" is a valid URL including a path.
      The port 9130 is blocked at some firewalls (for example for two presenters at yesterday's sprint review). Using port 443 and some path is a way to avoid this. And it also avoids CORS preflight requests.

      ConfigurationsClient does not support a path in okapiUrl.

      The constructors should be changed to something like this:

      public ConfigurationsClient(String okapiUrl, String tenantId, String token)

      Implementation hint: io.vertx.core.http.HttpClient has getAbs(), putAbs(), postAbs() and deleteAbs() where you can pass in (okapiUrl + "/configurations/entries/"+parameters) and do not need to parse the okapiUrl into host, port and path.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                julianladisch Julian Ladisch
                Reporter:
                julianladisch Julian Ladisch
                Tester Assignee:
                Adam Dickmeiss Adam Dickmeiss
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases