summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2021-06-04 16:15:45 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2021-06-04 16:45:06 +0200
commita2406cda4dd0aca523183ed6a8b651f06e0e63f9 (patch)
tree76d8caf99645fce37adc593ab4ae9c208b2d1945 /test
parentba18c4323ecbc66e6a1e3fedae60721f9c5701b1 (diff)
No URL decode and quoting support for Files in Sources
The code exists since ever, but no other client supports this and the specification like debian-policy isn't asking for this either. What it does do is breaking than all others continue working through: If the filename includes in fact URI encoded bits (hopefully no quotes) which is rather unlikely, but none the less possible.
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration/test-uri-encode-filename-field10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/test-uri-encode-filename-field b/test/integration/test-uri-encode-filename-field
index dffee21aa..233332d0a 100755
--- a/test/integration/test-uri-encode-filename-field
+++ b/test/integration/test-uri-encode-filename-field
@@ -17,19 +17,29 @@ runtest() {
testsuccess apt download foo
testsuccess rm 'foo_0+0~0_all.deb'
testsuccess apt install foo
+ testsuccess apt source foo
+ testsuccess rm 'foo_0+0~0.dsc' 'foo_0+0~0.tar.xz'
+ testsuccess rm -r 'foo-0+0~0'
mv '../aptarchive/pool/foo_0+0~0_all.deb' '../aptarchive/pool/foo_0%3a0+0~0_all.deb'
+ mv '../aptarchive/pool/foo_0+0~0.dsc' '../aptarchive/pool/foo_0%3a0+0~0.dsc'
testsuccess apt purge foo -y
testfailure apt download foo
testfailure apt install foo
+ testfailure apt source foo --dsc-only
sed -i -e 's#_0+0~0_#_0%3a0+0~0_#' ../rootdir/var/lib/apt/lists/*Packages
+ sed -i -e 's#_0+0~0.d#_0%3a0+0~0.d#' ../rootdir/var/lib/apt/lists/*Sources
testsuccess apt download foo
testsuccess rm 'foo_0+0~0_all.deb'
testsuccess apt install foo
+ testsuccess apt source foo
+ testsuccess rm 'foo_0%3a0+0~0.dsc' 'foo_0+0~0.tar.xz'
+ testsuccess rm -r 'foo-0+0~0'
cd "$TMPWORKINGDIRECTORY" >/dev/null
mv 'aptarchive/pool/foo_0%3a0+0~0_all.deb' 'aptarchive/pool/foo_0+0~0_all.deb'
+ mv 'aptarchive/pool/foo_0%3a0+0~0.dsc' 'aptarchive/pool/foo_0+0~0.dsc'
}
runtest 'file'