WebDAV plugin reports error 302 after search
Moderators: Hacker, petermad, Stefan2, white
WebDAV plugin reports error 302 after search
I noticed a bug with WebDAV (v2.6 final) plugin when accessing Sharepoint server. after I do a search for file content on SP site it starts to report error 302 and prevents to browse site furthermore. it looks like the location which is to be accessed is made of some formerly accessed file + current location
steps to reproduce:
1. connect to a SP site
2. make a search for file content (Alt-F7 + File content)
3. once the search finishes, you can close search dialog
4. try to browse folders => error 302 is reported
since now on browsing SP site is not possoble. disconnect and reconnect to the site doesn't help. I have to restart whole TC.
emha.
steps to reproduce:
1. connect to a SP site
2. make a search for file content (Alt-F7 + File content)
3. once the search finishes, you can close search dialog
4. try to browse folders => error 302 is reported
since now on browsing SP site is not possoble. disconnect and reconnect to the site doesn't help. I have to restart whole TC.
emha.
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I tried this with various servers (gmx.de, ghisler.com, owncloud) but couldn't reproduce it. Could you enable FTP logging (this also logs plugins) and check what error you are getting? It seems to be specific to sharepoint.
To enable ftp logging, go to menu Configuration - Options - FTP and check the log file option.
Then press Alt+Enter on the connection and enable detailed logging.
Please be careful with what you post from the log.
To enable ftp logging, go to menu Configuration - Options - FTP and check the log file option.
Then press Alt+Enter on the connection and enable detailed logging.
Please be careful with what you post from the log.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
error
this is hat I get trying to access a folder on SP.
I can access the same folder before search without any issues.
not sure where does piece from _layouts until the end of location comes from.
I can access the same folder before search without any issues.
not sure where does piece from _layouts until the end of location comes from.
- =================
Get dir: /sites/skolenie/MH\CarEntryPermissions
HTTP error: Error 12168, FormatMessage error 15100
PROPFIND /sites/skolenie/MH/CarEntryPermissions HTTP/1.1
Depth: 1
Content-Type: text/xml; charset="utf-8"
User-Agent: ezdavplugin/2.6 TotalCommander/8.0 (Windows/7; en_EN)
Host: [myhostname]
Content-Length: 0
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: __utma=26711585.1875893322.1409213954.1409213954.1409213954.1; mobile=1
******Received headers
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 0
Location: http://[myhostname]/sites/skolenie/MH/CarEntryPermissions/_layouts/15/mobile/mblwikia.aspx?Url=%2Fsites%2Fskolenie%2FMH%2FCarEntryPermissions%2FSitePages%2FHome%2Easpx
X-SharePointHealthScore: 0
SPRequestGuid: 6194fe9c-d8e6-c0d3-e9a2-5ea9c54fe844
request-id: 6194fe9c-d8e6-c0d3-e9a2-5ea9c54fe844
X-FRAME-OPTIONS: SAMEORIGIN
SPRequestDuration: 66
SPIisLatency: 1
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Content-Type-Options: nosniff
X-MS-InvokeApp: 1; RequireReadOnly
MicrosoftSharePointTeamServices: 15.0.0.4569
Date: Mon, 20 Apr 2015 13:51:39 GMT
Error: 302 Found
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
The server seems to have troubles with the path not having a trailing slash. Please go to the connection settings of this connection and append a slash to the URL.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
nope, there is no difference.
- =================
Get dir: /sites/skolenie/MH\CarEntryPermissions
HTTP error: Error 12168, FormatMessage error 15100
PROPFIND /sites/skolenie/MH/CarEntryPermissions/ HTTP/1.1
Depth: 1
Content-Type: text/xml; charset="utf-8"
User-Agent: ezdavplugin/2.6 TotalCommander/8.0 (Windows/7; en_EN)
Host: [myhostname]
Cookie:__utma=26711585.1875893322.1409213954.1409213954.1409213954.1
Connection: Keep-Alive
Cache-Control: no-cache
Content-Length: 0
******Received headers
HTTP/1.1 302 Found
Cache-Control: private
Content-Length: 0
Location: http://[myhostname]/sites/skolenie/MH/CarEntryPermissions/_layouts/15/mobile/mblwikia.aspx?Url=%2Fsites%2Fskolenie%2FMH%2FCarEntryPermissions%2FSitePages%2FHome%2Easpx
X-SharePointHealthScore: 0
SPRequestGuid: 1f89ff9c-982f-c0d3-e9a2-5c29e45f54e2
request-id: 1f89ff9c-982f-c0d3-e9a2-5c29e45f54e2
X-FRAME-OPTIONS: SAMEORIGIN
SPRequestDuration: 82
SPIisLatency: 1
Persistent-Auth: true
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Content-Type-Options: nosniff
X-MS-InvokeApp: 1; RequireReadOnly
MicrosoftSharePointTeamServices: 15.0.0.4569
Date: Thu, 23 Apr 2015 13:08:47 GMT
Error: 302 Found
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
You are still getting a redirect request! Is
/sites/skolenie/MH/CarEntryPermissions/
a correct path on your server?
/sites/skolenie/MH/CarEntryPermissions/
a correct path on your server?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
definitelly yes.
see log from accessing the folder before I did search
see log from accessing the folder before I did search
- =================
Get dir: /sites/skolenie/MH\CarEntryPermissions
PROPFIND /sites/skolenie/MH/CarEntryPermissions/ HTTP/1.1
Depth: 1
Content-Type: text/xml; charset="utf-8"
User-Agent: ezdavplugin/2.6 TotalCommander/8.0 (Windows/7; en_EN)
Host: [myhostname]
Content-Length: 0
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: __utma=26711585.1875893322.1409213954.1409213954.1409213954.1
******Received headers
HTTP/1.1 207 MULTI-STATUS
Cache-Control: no-cache
Content-Length: 14278
Content-Type: text/xml
X-SharePointHealthScore: 0
Public-Extension: http://schemas.microsoft.com/repl-2
SPRequestGuid: c9c5ff9c-384b-c0d3-e9a2-5637cd40a067
request-id: c9c5ff9c-384b-c0d3-e9a2-5637cd40a067
X-FRAME-OPTIONS: SAMEORIGIN
SPRequestDuration: 52
SPIisLatency: 1
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Content-Type-Options: nosniff
X-MS-InvokeApp: 1; RequireReadOnly
MicrosoftSharePointTeamServices: 15.0.0.4569
Date: Fri, 24 Apr 2015 06:48:59 GMT
207 MULTI-STATUS
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Then I don't understand why you get that redirect. Can you try to open it in a browser? It looks like some kind of login or error page.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
in the browser(s) I do not experience any problem.
but I have noticed further details:
I do not get into troubles just in case of search for content via Alt-F7. accidentally I found out that I experience the same problems if I open a file in the viewer (F3) from any folder named "m" (mobile version of the pages?) and do simple search within the opened file. after that search I'm again not able to browse site and do get error 302.
with further investigation I found out that the problem is caused ONLY by "m" folders resp. files or their content in that directory.
to prove that I did a search with all the "m" folders excluded:
search for: * | m\
find text: any_text_to_search_for
after this search I didn't experience any problem and can freely browse the site.
further I have looked a bit closely on those "m" folders and have seen (in my case) there are only default.aspx files. if I opened the file in the "m" subfolder of above discussed folder/site I could exactly see the redirect link you report in "location" above in page header (meta http-equiv="refresh" content="0;url=[the problematic link here])
so it looks like your tool is somehow confused by mobile pages.
the question is why after search you change from looking for normal pages to mobile pages.
but I have noticed further details:
I do not get into troubles just in case of search for content via Alt-F7. accidentally I found out that I experience the same problems if I open a file in the viewer (F3) from any folder named "m" (mobile version of the pages?) and do simple search within the opened file. after that search I'm again not able to browse site and do get error 302.
with further investigation I found out that the problem is caused ONLY by "m" folders resp. files or their content in that directory.
to prove that I did a search with all the "m" folders excluded:
search for: * | m\
find text: any_text_to_search_for
after this search I didn't experience any problem and can freely browse the site.
further I have looked a bit closely on those "m" folders and have seen (in my case) there are only default.aspx files. if I opened the file in the "m" subfolder of above discussed folder/site I could exactly see the redirect link you report in "location" above in page header (meta http-equiv="refresh" content="0;url=[the problematic link here])
so it looks like your tool is somehow confused by mobile pages.
the question is why after search you change from looking for normal pages to mobile pages.
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
That's NOT what I meant! Please try to open the redirect in a browser which Total Commander gets in the log. I mean this:in the browser(s) I do not experience any problem.
Location:
http://[myhostname]/sites/skolenie/MH/CarEntryPermissions/_layouts/15/mobile/mblwikia.aspx?Url=%2Fsites%2Fskolenie%2FMH%2FCarEntryPermissions%2FSitePages%2FHome%2Easpx
Just copy+paste that URL to the browser. I can't test it myself because you cut [myhostname] for obvious reasons.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Do you use https? I noticed that the redirect goes to a http address. The used Internet Explorer functions will fail if the redirect goes from secure to insecure.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
It's a realy mystery - something must be triggering the connection loss, so the server seems to redirect to some kind of re-login page.
Can you post the log for the last connection (during the search) before it fails with that redirect, please?
Can you post the log for the last connection (during the search) before it fails with that redirect, please?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com