Skip to content

Commit

Permalink
fix: special char prevents downloading files with Webdav - EXO-65735 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamdi committed Aug 3, 2023
1 parent 07eefdc commit fa2ee3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.io.UnsupportedEncodingException;
import java.net.URI;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
Expand Down Expand Up @@ -256,8 +257,8 @@ public String decodeValue(String value) {
do {
currentValue = value;
try {
value = URLDecoder.decode(value, "UTF-8");
} catch (UnsupportedEncodingException e) {
value = URLDecoder.decode(value, StandardCharsets.UTF_8);
} catch (IllegalArgumentException e) {
LOG.warn("Unable to decode value: ", e.getMessage());
return value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
</component-plugin>
</external-component-plugins>

<external-component-plugins profiles="cluster">
<external-component-plugins>
<target-component>org.exoplatform.commons.api.persistence.DataInitializer</target-component>
<component-plugin>
<component-plugin profiles="cluster">
<name>CommonsChangeLogsPlugin</name>
<set-method>addChangeLogsPlugin</set-method>
<type>org.exoplatform.commons.persistence.impl.ChangeLogsPlugin</type>
Expand Down

0 comments on commit fa2ee3e

Please sign in to comment.