IT命中cookie传递问题

时间:2017-12-14 11:06:11

标签: javascript java webdav ithit-webdav-server

我遇到了IT Hit的问题,希望你能帮到我。 问题是我无法向WebDav Mini-Redirector发送自定义cookie。一切都安装正确,JS生成URL:dav5:ItemUrl=http://localhost:8040/fs/158758.txt;MountUrl=http:// localhost:8040/fs/;Browser=Chrome;SearchIn=Current;CookieNames=JSESSIONID,BAYEUX_BROWSER;Command=Edit

所以我想发送Chrome中的cookie JSESSIONID和BAYEUX_BROWSER(我已经检查过了)。在运行该url后突然发现我有错误(下面的日志文件内容):

2017-12-14 11:46:34,339 - document_opener - DEBUG - Product info: {'LegalCopyright': u'Copyright \xae IT Hit, Ltd 2017.', 'InternalName': u'ITHit.DocumentOpener.dav5', 'FileVersion': u'4.0.2375.0', 'CompanyName': u'IT Hit, Ltd', 'PrivateBuild': None, 'LegalTrademarks': None, 'Comments': None, 'ProductName': u'IT Hit Edit Document Opener 4 v4.0.2375.0', 'SpecialBuild': None, 'ProductVersion': u'4.0.2375.0', 'FileDescription': u'IT Hit Edit Document Opener 4 v4.0.2375.0', 'OriginalFilename': u'ITHit.DocumentOpener.dav5.Exe'}
2017-12-14 11:46:34,387 - document_opener.gui - INFO - ================================================================================
2017-12-14 11:46:34,388 - document_opener.gui - INFO - System Info:
2017-12-14 11:46:34,388 - document_opener.gui - INFO -     System: Windows
2017-12-14 11:46:34,388 - document_opener.gui - INFO -     Node: USERNAME
2017-12-14 11:46:34,390 - document_opener.gui - INFO -     Release: 10
2017-12-14 11:46:34,390 - document_opener.gui - INFO -     Version: 10.0.10586
2017-12-14 11:46:34,390 - document_opener.gui - INFO -     Machine: AMD64
2017-12-14 11:46:34,390 - document_opener.gui - INFO -     Processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
2017-12-14 11:46:34,390 - document_opener.gui - INFO - Browsers installed:
2017-12-14 11:46:34,390 - document_opener.gui - INFO -     Firefox v.57.0.2.6549 on C:\Program Files\Mozilla Firefox\firefox.exe
2017-12-14 11:46:34,390 - document_opener.gui - INFO -     IE v.11.0.10586.1106 on C:\Program Files\Internet Explorer\iexplore.exe
2017-12-14 11:46:34,390 - document_opener.gui - INFO -     Chrome v.62.0.3202.94 on C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
2017-12-14 11:46:34,390 - document_opener.gui - INFO -     EDGE v.11.0.10586.1176 on C:\WINDOWS\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe
2017-12-14 11:46:34,390 - document_opener.gui - INFO - Config data: show_message_as_modal: True | extend_expired_cookies: None | expired_time_plus_hour: 24
2017-12-14 11:46:34,390 - document_opener.gui - INFO - ================================================================================
2017-12-14 11:46:34,390 - document_opener.gui - INFO - Incoming URL: dav5:ItemUrl=http://localhost:8040/fs/158758.txt;MountUrl=http://localhost:8040/fs/;Browser=Chrome;SearchIn=Current;CookieNames=JSESSIONID,BAYEUX_BROWSER;Command=Edit
2017-12-14 11:46:34,391 - document_opener.gui - INFO - splited URL: {'searchin': ['Current'], 'mounturl': 'http://localhost:8040/fs/', 'cookienames': ['JSESSIONID', 'BAYEUX_BROWSER'], 'itemurl': ['http://localhost:8040/fs/158758.txt'], 'command': 'Edit', 'browser': 'Chrome'}
2017-12-14 11:46:34,391 - document_opener.gui - INFO - Parsed Parameters :
2017-12-14 11:46:34,391 - document_opener.gui - INFO -    mountingpath: http://localhost:8040/fs/
2017-12-14 11:46:34,391 - document_opener.gui - INFO -    searchin: [u'Current']
2017-12-14 11:46:34,391 - document_opener.gui - INFO -    cookienames: [u'JSESSIONID', u'BAYEUX_BROWSER']
2017-12-14 11:46:34,391 - document_opener.gui - INFO -    itempath: [u'http://localhost:8040/fs/158758.txt']
2017-12-14 11:46:34,391 - document_opener.gui - INFO -    command: edit
2017-12-14 11:46:34,391 - document_opener.gui - INFO -    loginurl: None
2017-12-14 11:46:34,391 - document_opener.gui - INFO -    browser: Chrome
2017-12-14 11:46:34,391 - document_opener.gui - INFO -    loginname: 
2017-12-14 11:46:34,391 - document_opener.gui - INFO -    windriveletter: None
2017-12-14 11:46:34,391 - document_opener.cookies - INFO - Parse Chrome cookies
2017-12-14 11:46:34,398 - document_opener.cookies - DEBUG - Read cookies file C:\Users\USERNAME\AppData\Roaming\..\Local\Google\Chrome\User Data\Default\Cookies
2017-12-14 11:46:35,188 - document_opener.cookies - INFO - Total read cookies: 3818 and with Error: 0
2017-12-14 11:46:35,213 - document_opener.gui - DEBUG - List Cookies:
2017-12-14 11:46:35,214 - document_opener.gui - DEBUG - List Domain shift: [u'localhost']
2017-12-14 11:46:35,224 - document_opener.gui - DEBUG - cook is expired True
2017-12-14 11:46:35,273 - document_opener.gui - ERROR - Create mbox ended with error:
Traceback (most recent call last):
  File "gui.py", line 293, in mbox
  File "gui.py", line 176, in __init__
  File "lib-tk\Tkinter.py", line 1699, in wm_iconbitmap
TclError: bitmap "logo.ico" not defined
2017-12-14 11:46:35,273 - document_opener.gui - DEBUG - cook is expired True
2017-12-14 11:46:35,315 - document_opener.gui - ERROR - Create mbox ended with error:
Traceback (most recent call last):
  File "gui.py", line 293, in mbox
  File "gui.py", line 176, in __init__
  File "lib-tk\Tkinter.py", line 1699, in wm_iconbitmap
TclError: bitmap "logo.ico" not defined
2017-12-14 11:46:35,319 - document_opener.gui - INFO - Searching for cookies listed in cookienames parameter
2017-12-14 11:46:35,322 - document_opener.gui - ERROR - Error with mismatch parameter:
Traceback (most recent call last):
  File "<string>", line 1013, in main
MismatchParameterError: Authentication cookie 'JSESSIONID, BAYEUX_BROWSER' was not found in CHROME.
To execute this command you must log-in with "Keep me logged-in" option checked.

To avoid this message and redirect the user directly to the loging page specify "LoginUrl" parameter.

PS:在其他浏览器上我有同样的错误。 感谢

1 个答案:

答案 0 :(得分:1)

一个或两个Cookie似乎没有到期日期或到期日期。 WebDAV Ajax库v4和更早版本需要永久性cookie(具有到期日期)。

请注意,完全重新设计了WebDAV Ajax库v5,并使用了不同的机制来传递cookie。包括它可以检测会话cookie(没有到期日期)。

还要确保您具有最新的WebDAV Ajax库版本。 Web浏览器会快速更新,某些功能可能无法与较新的Web浏览器一起使用。下载最新的IT Hit WebDAV Ajax库内部版本here

相关问题