diff options
author | Joanna Jeremicz <joanna.jeremicz@nokia.com> | 2020-03-05 08:28:31 +0100 |
---|---|---|
committer | Joanna Jeremicz <joanna.jeremicz@nokia.com> | 2020-03-05 08:28:31 +0100 |
commit | b3d3b52b0734196e73268e44be00e65d4926aa5a (patch) | |
tree | 26ceb1f6ca957c1d04b0513377a2f3174cb465d1 /prh-app-server/src/main | |
parent | 8d6fec35a2c710105da6ea8f0b732b786b4ff1e3 (diff) |
PRH error after PNF relocation
Path should be encoded before it is used as URL
Change-Id: I408064245d9f56ea7925bc5a882ed42d8c84f191
Issue-ID: DCAEGEN2-2088
Signed-off-by: Joanna Jeremicz <joanna.jeremicz@nokia.com>
Diffstat (limited to 'prh-app-server/src/main')
-rw-r--r-- | prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/BbsActionsTaskImpl.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/BbsActionsTaskImpl.java b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/BbsActionsTaskImpl.java index 201f1bc0..c949b774 100644 --- a/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/BbsActionsTaskImpl.java +++ b/prh-app-server/src/main/java/org/onap/dcaegen2/services/prh/tasks/BbsActionsTaskImpl.java @@ -26,6 +26,7 @@ import static org.apache.http.HttpHeaders.CONTENT_TYPE; import static org.onap.dcaegen2.services.sdk.rest.services.adapters.http.HttpMethod.DELETE; import static org.onap.dcaegen2.services.sdk.rest.services.adapters.http.HttpMethod.GET; import static org.onap.dcaegen2.services.sdk.rest.services.adapters.http.HttpMethod.PUT; +import static org.springframework.web.util.UriUtils.encodeFragment; import com.google.gson.JsonObject; import io.vavr.collection.HashMap; @@ -202,7 +203,7 @@ public class BbsActionsTaskImpl implements BbsActionsTask { } private String buildUri(String path) { - return config.getAaiClientConfiguration().pnfUrl().replace(PNF_URI, path); + return config.getAaiClientConfiguration().pnfUrl().replace(PNF_URI, encodeFragment(path, UTF_8)); } } |