Uploaded image for project: 'REST Client'
  1. REST Client
  2. MGNLRESTCL-103

RestCallDefinition are wrapped multiple times with MutableWrapper

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.0
    • 2.0
    • None
    • None

      RestCallDefinitions are first wrapped on the Registry level where we wrap the RestClientDefinition, and then again in the DefaultRestClient.

      @Override
          public Response invoke(String restCallName, Object body, Map<String, Object> additionalDefaultValues) {
              return ifClientCallExists(restCallName, () -> {
                  RestCallDefinition restCallDefinition = MutableWrapper.wrap(restClientDefinition.getRestCalls().get(restCallName));
                  return invoke(restCallDefinition, body, additionalDefaultValues);
              });
          }
      

      Same also happens in the getter of the DefaultRestClient:

      @Override
          public RestClientDefinition getRestClientDefinition() {
              return MutableWrapper.wrap(restClientDefinition);
          }
      

      restClientDefinition is already wrapped and getter wraps it again.

        Acceptance criteria

              dai.ha Dai Ha
              jsimak Jaroslav Simak
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 1d 2.5h
                    1d 2.5h