Summary: | HTTP KIO slave's stat always returns that a file exists | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kio | Reporter: | Leif Huhn <lb.kdebugzilla> |
Component: | http | Assignee: | Unassigned bugs mailing-list <unassigned-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Leif Huhn
2003-07-08 06:54:21 UTC
Subject: kdelibs/kioslave/http CVS commit by waba: CCMAIL: 60904-done@bugs.kde.org * Bounce referrer back to application * Let stat() return what the application wants to hear. (BR60904) M +11 -0 http.cc 1.583 --- kdelibs/kioslave/http/http.cc #1.582:1.583 @@ -322,4 +322,6 @@ void HTTPProtocol::resetSessionSettings( m_remoteRespTimeout = responseTimeout(); + // Bounce back the actual referrer sent + setMetaData("referrer", m_request.referrer); // Set the SSL meta-data here... @@ -523,4 +525,13 @@ void HTTPProtocol::stat(const KURL& url) if ( m_protocol != "webdav" && m_protocol != "webdavs" ) { + QString statSide = metaData(QString::fromLatin1("statSide")); + if ( statSide != "source" ) + { + // When uploading we assume the file doesn't exit + error( ERR_DOES_NOT_EXIST, url.prettyURL() ); + return; + } + + // When downloading we assume it exists UDSEntry entry; UDSAtom atom; |