mirror of
https://github.com/curl/curl.git
synced 2026-08-26 19:13:33 +03:00
Daniel S (12 September 2007)
- Bug report #1792649 (http://curl.haxx.se/bug/view.cgi?id=1792649) pointed out a problem with doing an empty upload over FTP on a re-used connection. I added test case 541 to reproduce it and to verify the fix. - I noticed while writing test 541 that the FTP code wrongly did a CWD on the second transfer as it didn't store and remember the "" path from the previous transfer so it would instead CWD to the entry path as stored. This worked, but did a superfluous command. Thus, test case 541 now also verifies this fix.
This commit is contained in:
parent
1ce732e9d6
commit
9e88343a17
6 changed files with 185 additions and 2 deletions
|
|
@ -44,4 +44,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
|
|||
test409 test613 test614 test700 test701 test702 test704 test705 test703 \
|
||||
test706 test707 test350 test351 test352 test353 test289 test540 test354 \
|
||||
test231 test1000 test1001 test1002 test1003 test1004 test1005 test1006 \
|
||||
test615 test1007
|
||||
test615 test1007 test541
|
||||
|
|
|
|||
51
tests/data/test541
Normal file
51
tests/data/test541
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<testcase>
|
||||
# Server-side
|
||||
<reply>
|
||||
</reply>
|
||||
|
||||
# Client-side
|
||||
<client>
|
||||
<server>
|
||||
ftp
|
||||
</server>
|
||||
# tool is what to use instead of 'curl'
|
||||
<tool>
|
||||
lib541
|
||||
</tool>
|
||||
|
||||
<name>
|
||||
FTP upload and upload same file again without rewind
|
||||
</name>
|
||||
<command>
|
||||
ftp://%HOSTIP:%FTPPORT/541 log/upload541
|
||||
</command>
|
||||
<file name="log/upload541">
|
||||
Contents
|
||||
of
|
||||
a file
|
||||
to verify
|
||||
ftp
|
||||
upload
|
||||
|
||||
|
||||
works?
|
||||
</file>
|
||||
</client>
|
||||
|
||||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<upload>
|
||||
</upload>
|
||||
<protocol>
|
||||
USER anonymous
|
||||
PASS ftp@example.com
|
||||
PWD
|
||||
EPSV
|
||||
TYPE I
|
||||
STOR 541
|
||||
EPSV
|
||||
STOR 541
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
</testcase>
|
||||
Loading…
Add table
Add a link
Reference in a new issue