Bug 174011 - curl ignores end of URL if URL is a directory and not / terminated
curl ignores end of URL if URL is a directory and not / terminated
Status: CLOSED UPSTREAM
Product: Fedora
Classification: Fedora
Component: curl (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ivana Varekova
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-23 11:56 EST by Tom Wood
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-11-24 07:47:55 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Tom Wood 2005-11-23 11:56:11 EST
Description of problem: curl doesn't process URL properly if it terminates in a
directory without a trailing "/"


Version-Release number of selected component (if applicable):
curl-7.13.1-3


How reproducible: every time


Steps to Reproduce:
1. run "curl -l ftp://whatever/wherever/blah"
2. see directory listing for ftp://whatever/wherever, not the blah directory
3. be puzzled
  
Actual results:
Contents of parent directory listed

Expected results:
Contents of directory that the URL points to listed

Additional info:

It seems that the blah is completely ignored; whether or not blah exists (!),
the parent directory is listed unless the URL terminates with a "/", in which
case curl does the right thing.
Comment 1 Daniel Stenberg 2005-11-23 17:00:56 EST
This "bug" was filed in curl's own bug tracker as well, and I figure that is a
more suitable place:

http://sourceforge.net/tracker/index.php?func=detail&aid=1364835&group_id=976&atid=100976
Comment 2 Ivana Varekova 2005-11-24 07:47:55 EST
This problem is being solved in upstream. 

Note You need to log in before you can comment on or make changes to this bug.