Skip to content

Commit

Permalink
Fixed failing bitbucket integration tests - Delete unused SlackLinkUn…
Browse files Browse the repository at this point in the history
…installPermissionResourceFilter. Use correct URI builder method in AddQueryParamSlackFunction
  • Loading branch information
djansons-atlassian committed Jun 2, 2024
1 parent fbde1dc commit 1706a2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 44 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import com.atlassian.soy.renderer.SoyServerFunction;

import javax.ws.rs.core.UriBuilder;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.Set;

Expand All @@ -22,7 +24,8 @@ public Set<Integer> validArgSizes() {

@Override
public String apply(final Object... args) {
return UriBuilder.fromUri(args[0].toString())
String decodedUri = URLDecoder.decode(args[0].toString(), StandardCharsets.UTF_8);
return UriBuilder.fromUri(decodedUri)
.replaceQueryParam(args[1].toString(), args[2].toString())
.build()
.toString();
Expand Down

0 comments on commit 1706a2c

Please sign in to comment.