]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Added test case 531 in an attempt to repeat bug report #1561470
authorDaniel Stenberg <daniel@haxx.se>
Thu, 21 Sep 2006 20:52:20 +0000 (20:52 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 21 Sep 2006 20:52:20 +0000 (20:52 +0000)
(http://curl.haxx.se/bug/view.cgi?id=1561470) that is said to crash when an
FTP upload fails with the multi interface. It did not, but I made a failed
upload still assume the control connection to be fine.

tests/data/Makefile.am
tests/data/test236
tests/data/test531 [new file with mode: 0644]

index 9a397e1b6badebda2fe5674c5efe1e56293f5fa4..60d6acf6cc6c6b5d96a94fefe9200815aec97ffd 100644 (file)
@@ -35,5 +35,5 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46           \
  test256 test257 test258 test259 test260 test261 test262 test263 test264   \
  test265 test266 test267 test268 test269 test270 test271 test272 test273   \
  test274 test275 test524 test525 test276 test277 test526 test527 test528   \
- test530 DISABLED test278 test279
+ test530 DISABLED test278 test279 test531
 
index 1399e4c8b2c57da3979183ab8b1838ee44cb659e..29d739f922cf3bfc5ecfa66fdd3bfff52c0f1157 100644 (file)
@@ -27,6 +27,7 @@ EPSV
 TYPE I\r
 SIZE 236\r
 STOR 236\r
+QUIT\r
 </protocol>
 
 #  (25) Failed FTP upload: 550
diff --git a/tests/data/test531 b/tests/data/test531
new file mode 100644 (file)
index 0000000..0909e81
--- /dev/null
@@ -0,0 +1,55 @@
+<info>
+<keywords>
+FTP
+PORT
+STOR
+</keywords>
+</info>
+# Server-side
+<reply>
+<data>
+</data>
+<servercmd>
+REPLY STOR 425 Permission Denied. File Exists.
+</servercmd>
+</reply>
+
+# Client-side
+<client>
+<server>
+ftp
+</server>
+<tool>
+lib525
+</tool>
+ <name>
+FTP PORT upload using multi interface and get 425 response
+ </name>
+ <command>
+ftp://%HOSTIP:%FTPPORT/path/531 log/upload531
+</command>
+<file name="log/upload531">
+Moooooooooooo
+don't upload this
+</file>
+</client>
+
+# Verify data after the test has been "shot"
+<verify>
+<strip>
+^PORT .*
+^EPRT .*
+^LPRT .*
+</strip>
+<protocol>
+USER anonymous\r
+PASS curl_by_daniel@haxx.se\r
+PWD\r
+CWD path\r
+PORT 127,0,0,1,5,109\r
+TYPE I\r
+STOR 531\r
+QUIT\r
+</protocol>
+
+</verify>