summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSachin Joshi <satchin.joshi@gmail.com>2019-07-07 14:13:40 +0545
committerSachin Joshi <satchin.joshi@gmail.com>2019-07-07 14:13:40 +0545
commitf5ad4309747e85192e6034fd362103b0b71869d0 (patch)
tree96d7ec7b9b6fee3889aaea0f56d39ba27bd4dfc8 /test
parent3589b30ddc9d0c23ca6f00264cff05e53be1b270 (diff)
downloadpleroma-f5ad4309747e85192e6034fd362103b0b71869d0.tar.gz
pleroma-f5ad4309747e85192e6034fd362103b0b71869d0.zip
make sure the url used by proxy is same as origin url
encoding or decoding it breaks some of the signed url
Diffstat (limited to 'test')
-rw-r--r--test/media_proxy_test.exs7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/media_proxy_test.exs b/test/media_proxy_test.exs
index b23aeb88b..cd1cbd202 100644
--- a/test/media_proxy_test.exs
+++ b/test/media_proxy_test.exs
@@ -70,9 +70,12 @@ defmodule Pleroma.MediaProxyTest do
assert decode_result(encoded) == url
end
- test "ensures urls are url-encoded" do
+ # Some of the signed url expect the special character in the url to be same
+ # for the proxy to work.
+ # Issue https://git.pleroma.social/pleroma/pleroma/issues/1055
+ test "ensures urls are maintained (character are not encoded or decoded)" do
assert decode_result(url("https://pleroma.social/Hello world.jpg")) ==
- "https://pleroma.social/Hello%20world.jpg"
+ "https://pleroma.social/Hello world.jpg"
assert decode_result(url("https://pleroma.social/Hello%20world.jpg")) ==
"https://pleroma.social/Hello%20world.jpg"