Bug 76885 - trying to download a nonexistant file produces empty file with that name
trying to download a nonexistant file produces empty file with that name
Status: CLOSED CANTFIX
Product: Red Hat Linux
Classification: Retired
Component: cadaver (Show other bugs)
8.0
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Joe Orton
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-10-28 13:37 EST by Daniel Resare
Modified: 2007-04-18 12:47 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-10-18 10:42:06 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Checks if get operation fails, and if the downloaded file is empty remove it (997 bytes, patch)
2003-08-28 02:44 EDT, Noa Resare
no flags Details | Diff

  None (edit)
Description Daniel Resare 2002-10-28 13:37:48 EST
Description of Problem:

When i try to download a file that does not exist, an empty local file is
created with the name of the file I tried to download.

Version-Release number of selected component (if applicable):
cadaver-0.20.5-2

How Reproducible:
always

Steps to Reproduce:
1. run 'cadaver http://ftp.metamatrix.se/' (or any other webdav enabled server)
2. type 'get nonexistant.empty'
3. quit the program
4. run 'ls -l *.empty'

Actual Results:
[noa@ulysses slask]$ ls -l *.empty
-rw-rw-r--    1 noa      noa             0 okt 28 19:37 nonexistant.empty


Expected Results:
No file should be created, that would be just stupid *smile*
Comment 1 Noa Resare 2003-08-28 02:44:46 EDT
Created attachment 94023 [details]
Checks if get operation fails, and if the downloaded file is empty remove it

I got bored with this bug, so I fixed it. One can argue that the fix is not all
that beautiful but on the other hand the code is full of comparable uglyness,
and the RealFix^tm would require changing the interface of the bundled libneon
and I suppose it's better to leave that to the maintainers.
Comment 2 Joe Orton 2003-08-28 04:16:00 EDT
Thanks for reporting this.

Yes, you can't solve this elegantly using neon's ne_get(), you have to use the
more complicated ne_request_create/begin_request/end_request/read_response_block
interface to do it properly.

Speaking as author of cadaver rather than cadaver package maintainer for Red
Hat,  I intend to do this for a future release.
Comment 3 Bill Nottingham 2006-08-07 13:41:50 EDT
Red Hat Linux is no longer supported by Red Hat, Inc. If you are still
running Red Hat Linux, you are strongly advised to upgrade to a
current Fedora Core release or Red Hat Enterprise Linux or comparable.
Some information on which option may be right for you is available at
http://www.redhat.com/rhel/migrate/redhatlinux/.

Red Hat apologizes that these issues have not been resolved yet. We do
want to make sure that no important bugs slip through the cracks.
Please check if this issue is still present in a current Fedora Core
release. If so, please change the product and version to match, and
check the box indicating that the requested information has been
provided. Note that any bug still open against Red Hat Linux on will be
closed as 'CANTFIX' on September 30, 2006. Thanks again for your help.
Comment 4 Bill Nottingham 2006-10-18 10:42:06 EDT
Red Hat Linux is no longer supported by Red Hat, Inc. If you are still
running Red Hat Linux, you are strongly advised to upgrade to a
current Fedora Core release or Red Hat Enterprise Linux or comparable.
Some information on which option may be right for you is available at
http://www.redhat.com/rhel/migrate/redhatlinux/.

Closing as CANTFIX.

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