owncloud / client

🖥️ Desktop Syncing Client for ownCloud
GNU General Public License v2.0
1.4k stars 663 forks source link

Error "307 Moved Temporarily" when using McAfee Gateway Proxy #1553

Closed Taomyn closed 10 years ago

Taomyn commented 10 years ago

I'm getting "307 Moved Temporarily" now that proxy code has been fixed in 1.5.3RC2

03-07 14:11:11:403 csync_reconcile: Reconciliation for remote replica took 0.01 seconds visiting 507 files. 03-07 14:11:11:406 Transaction Start "checkConnect" 03-07 14:11:11:406 Columns in the current journal: ("phash", "pathlen", "path", "inode", "uid", "gid", "mode", "modtime", "type", "md5", "fileid") 03-07 14:11:14:677 * csync thread started 03-07 14:11:14:678 Folder in overallStatus Message: Mirall::Folder(0x4f2b6e8) with name "ownCloud" 03-07 14:11:14:682 Sync state changed for folder "ownCloud" : "Sync Running" 03-07 14:11:14:683 SocketApi: Sync state changed 03-07 14:11:14:684 SocketApi: Broadcasting to 0 listeners: "UPDATE_VIEW" 03-07 14:11:11:411 N------N Network Limits changed! 03-07 14:11:14:686 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:14:691 the current folder is currently syncing. 03-07 14:11:14:692 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:11:414 "INSERT OR REPLACE INTO downloadinfo (path, tmpfile, etag, errorcount) VALUES ( ? , ?, ? , ? )" "AET/KatKiss-4.4.2_022.zip" "AET/.KatKiss-4.4.2_022.zip.~6910" "530fb87a22a69" 0 03-07 14:11:11:414 Transaction Start "download file start" 03-07 14:11:14:695 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:14:696 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:14:697 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:14:709 void Mirall::MirallAccessManager::slotProxyAuthenticationRequired(const QNetworkProxy&, QAuthenticator*) 3 03-07 14:11:14:713 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:14:688 Request class != 2, aborting. 03-07 14:11:14:688 Neon error code was 9 03-07 14:11:14:688 Error GET: Neon: 9 03-07 14:11:14:743 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:14:743 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:14:690 "DELETE FROM downloadinfo WHERE path=?" "AET/KatKiss-4.4.2_022.zip" 03-07 14:11:14:690 void Mirall::CSyncThread::transferCompleted(const Mirall::SyncFileItem&) "AET/KatKiss-4.4.2_022.zip" 3 "307 Moved Temporarily" 03-07 14:11:14:746 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:14:691 "INSERT OR REPLACE INTO downloadinfo (path, tmpfile, etag, errorcount) VALUES ( ? , ?, ? , ? )" "AET/KatKiss-4.4.2_023.zip" "AET/.KatKiss-4.4.2_023.zip.~1d53" "5317721e4310d" 0 03-07 14:11:14:691 Transaction Start "download file start" 03-07 14:11:14:748 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:14:753 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:14:754 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:14:730 Request class != 2, aborting. 03-07 14:11:14:734 Request class != 2, aborting. 03-07 14:11:15:152 Failed to reach version check url: "SSL handshake failed" 03-07 14:11:15:703 void Mirall::FolderWatcher::changeDetected(const QString&) "C:/Users/adm\ownCloud/" 03-07 14:11:15:709 the current folder is currently syncing. 03-07 14:11:39:345 !!! Mirall::CheckQuotaJob created for QUrl( "https://www.mydomain.com/owncloud" ) querying "/"

And no new files are being downloaded. Both the web site and my Android client are fine so the other end should be ok - must still be proxy related.

danimo commented 10 years ago

Looking at https://community.mcafee.com/docs/DOC-5193, McAfee Gateway Proxy is screwing with WebDAV, thinking it's doing someone a service. If the client, expecting a webdav response, instead receives a 307 and follow that redirect, it will get HTML instead of WebDAV XML, which is considered a parse error and breaks WebDAV semantics. That said, scanning most likely will become ineffective due to chunking anyway.

Can you connect to ownCloud with a normal WebDAV client and download big files? That would help us to find out if we are doing something wrong or if McAfee Gateway Proxy is simply broken with WebDAV.

PS: Why can it even look at your (hopefully SSL-encrypted) data? (disregard that, #1554 explains it).

Taomyn commented 10 years ago

Can you recommend a WebDAV client to test with?

dragotin commented 10 years ago

@Taomyn I am using a client called "cadaver", see http://www.webdav.org/cadaver/

danimo commented 10 years ago

Windows has a built-in client, see http://doc.owncloud.org/server/6.0/user_manual/files/files.html#windows

Taomyn commented 10 years ago

Thanks, I tried the mapping method for speed and this is what I got:

clipboard01

danimo commented 10 years ago

@Taomyn increase the FileSizeLimitInBytes registry key as indicated in the documentation.

Taomyn commented 10 years ago

Thanks for your patience guys, I should have thought to look further down that page.

I was able to successfully map to the webdav URL and successfully copied the "AET/KatKiss-4.4.2_022.zip" mentioned in my original logs above.

luciamaestro commented 10 years ago

It has been inactive for a long time so that I close this issue. If someone were able to reproduce it, please, reopen it. Thx