[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 60904] New: HTTP KIO slave's stat always returns that a file
From: Leif Huhn <leif () dkstat ! com>
Date: 2003-07-08 4:54:22
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=60904
Summary: HTTP KIO slave's stat always returns that a file exists
Product: kio
Version: unspecified
Platform: unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: http
AssignedTo: bastian@kde.org
ReportedBy: leif@dkstat.com
Version: (using KDE KDE 3.1.2)
The http KIO slave doesn't even bother determining if a file exists in stat if not \
using webdav.
Ideally it should check.
If it doesn't check, then it should at least do the same thing the FTP KIO slave does \
when the server is braindamaged. The FTP KIO slave does:
QString statSide = metaData(QString::fromLatin1("statSide"));
if ( statSide == "source" )
{
kdDebug(7102) << "Not found, but assuming found, because some servers don't allow \
listing" << endl; // MS Server is incapable of handling "list <blah>" in a case \
insensitive way // But "retr <blah>" works. So lie in stat(), to get going...
//
// There's also the case of \
ftp://ftp2.3ddownloads.com/90380/linuxgames/loki/patches/ut/ut-patch-436.run // \
where listing permissions are denied, but downloading is still possible. \
shortStatAnswer( filename, false /*file, not dir*/ ); }
else
{
error( ERR_DOES_NOT_EXIST, path );
}
For my application returning that a file *doesn't* exist is a more sensible default.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic