WebDAV plugin reports error 302 after search

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

emha
Junior Member
Junior Member
Posts: 11
Joined: 2007-09-07, 07:21 UTC

WebDAV plugin reports error 302 after search

Post by *emha »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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.
Author of Total Commander
https://www.ghisler.com
emha
Junior Member
Junior Member
Posts: 11
Joined: 2007-09-07, 07:21 UTC

error

Post by *emha »

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.

  • =================
    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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
emha
Junior Member
Junior Member
Posts: 11
Joined: 2007-09-07, 07:21 UTC

Post by *emha »

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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You are still getting a redirect request! Is
/sites/skolenie/MH/CarEntryPermissions/
a correct path on your server?
Author of Total Commander
https://www.ghisler.com
emha
Junior Member
Junior Member
Posts: 11
Joined: 2007-09-07, 07:21 UTC

Post by *emha »

definitelly yes.
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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
emha
Junior Member
Junior Member
Posts: 11
Joined: 2007-09-07, 07:21 UTC

Post by *emha »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

in the browser(s) I do not experience any problem.
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:
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
emha
Junior Member
Junior Member
Posts: 11
Joined: 2007-09-07, 07:21 UTC

Post by *emha »

if I open the link in browser the page is correctly openned (unfortunately I can not attach a screenshot).

once the page is loaded the link changes to: http://[myhostname]/sites/skolenie/MH/CarEntryPermissions/SitePages/Home.aspx
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
emha
Junior Member
Junior Member
Posts: 11
Joined: 2007-09-07, 07:21 UTC

Post by *emha »

no, just pure HTTP. the host is in internal network
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50421
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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?
Author of Total Commander
https://www.ghisler.com
emha
Junior Member
Junior Member
Posts: 11
Joined: 2007-09-07, 07:21 UTC

Post by *emha »

could I send you the log privatelly or upload it somewhere?
at first search log will be quit long to insert it directly into post and at second there might be sensitive info throughout the log that I wouldn't like share on public.
Post Reply