add file annotation and question

This commit is contained in:
wrmswindmill 2018-08-13 09:34:45 +08:00
parent 8fcd5758cd
commit c03b7adecf
3 changed files with 819 additions and 1 deletions

632
nohup.out
View File

@ -27208,3 +27208,635 @@ Quit the server with CONTROL-C.
[08/Aug/2018 15:34:04] "POST /operations/show_annotation/ HTTP/1.1" 200 3165
[08/Aug/2018 15:34:06] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 15:34:14] "POST /operations/show_annotation/ HTTP/1.1" 200 3177
[08/Aug/2018 15:36:29] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 15:36:29] "GET /static/js/source.js HTTP/1.1" 200 41491
[08/Aug/2018 15:36:29] "GET /static/css/code_show.css HTTP/1.1" 304 0
[08/Aug/2018 15:36:30] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:36:30] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:36:31] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:36:32] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 15:36:39] "POST /operations/show_annotation/ HTTP/1.1" 200 16875
[08/Aug/2018 15:37:56] "POST /operations/show_annotation/ HTTP/1.1" 200 4477
[08/Aug/2018 15:38:00] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 15:38:01] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 15:38:02] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 15:41:52] "GET / HTTP/1.1" 200 24219
[08/Aug/2018 15:41:52] "GET /static/css/base.css HTTP/1.1" 200 18934
[08/Aug/2018 15:41:52] "GET /static/css/common.css HTTP/1.1" 200 8146
[08/Aug/2018 15:41:52] "GET /static/vendor/font-awesome/css/font-awesome.css HTTP/1.1" 200 37414
[08/Aug/2018 15:41:52] "GET /static/js/run_prettify.js HTTP/1.1" 200 16604
[08/Aug/2018 15:41:52] "GET /static/js/base.js HTTP/1.1" 200 21228
[08/Aug/2018 15:41:52] "GET /static/vendor/bootstrap/js/bootstrap.min.js HTTP/1.1" 200 37045
[08/Aug/2018 15:41:52] "GET /media/avatar/users/default.png HTTP/1.1" 200 36378
[08/Aug/2018 15:41:52] "GET /static/vendor/bootstrap/css/bootstrap.css HTTP/1.1" 200 146070
[08/Aug/2018 15:41:52] "GET /static/vendor/site/css/style.css HTTP/1.1" 200 160228
[08/Aug/2018 15:41:52] "GET /static/vendor/qtip/jquery.qtip.js HTTP/1.1" 200 98738
[08/Aug/2018 15:41:55] "GET /static/image/CodePedia.ico HTTP/1.1" 200 370070
Not Found: /favicon.ico
[08/Aug/2018 15:41:55] "GET /favicon.ico HTTP/1.1" 404 3103
[08/Aug/2018 15:41:56] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 15:41:56] "GET /static/js/source.js HTTP/1.1" 200 41491
[08/Aug/2018 15:41:56] "GET /static/css/code_show.css HTTP/1.1" 304 0
[08/Aug/2018 15:41:57] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:41:57] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:41:57] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:41:59] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 15:42:13] "POST /operations/show_annotation/ HTTP/1.1" 200 4490
[08/Aug/2018 15:42:15] "POST /operations/add_vote/ HTTP/1.1" 200 77
[08/Aug/2018 15:42:16] "POST /operations/add_vote/ HTTP/1.1" 200 57
[08/Aug/2018 15:42:19] "POST /operations/show_annotation/ HTTP/1.1" 200 3180
[08/Aug/2018 15:42:25] "POST /operations/show_annotation/ HTTP/1.1" 200 4812
[08/Aug/2018 15:45:57] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:47:04] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 15:47:05] "GET /static/css/code_show.css HTTP/1.1" 304 0
[08/Aug/2018 15:47:05] "GET /static/js/source.js HTTP/1.1" 200 41489
[08/Aug/2018 15:47:05] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[08/Aug/2018 15:47:06] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:47:06] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:47:06] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:47:08] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 15:48:45] "POST /operations/show_annotation/ HTTP/1.1" 200 4491
[08/Aug/2018 15:48:46] "POST /operations/add_vote/ HTTP/1.1" 200 76
[08/Aug/2018 15:48:47] "POST /operations/add_vote/ HTTP/1.1" 200 56
[08/Aug/2018 15:48:49] "POST /operations/show_annotation/ HTTP/1.1" 200 4490
[08/Aug/2018 15:49:00] "POST /operations/show_annotation/ HTTP/1.1" 200 3180
[08/Aug/2018 15:49:04] "POST /operations/show_annotation/ HTTP/1.1" 200 2265
[08/Aug/2018 15:49:08] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[08/Aug/2018 15:49:08] "GET /static/js/source.js HTTP/1.1" 304 0
[08/Aug/2018 15:49:08] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[08/Aug/2018 15:49:09] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[08/Aug/2018 15:49:09] "POST /operations/right/ HTTP/1.1" 200 1040
[08/Aug/2018 15:49:10] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[08/Aug/2018 15:49:16] "POST /operations/show_annotation/ HTTP/1.1" 200 4490
Not Found: /http:/112.124.42.80:63435/
[08/Aug/2018 19:35:39] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
Not Found: /http:/112.124.42.80:63435/
[08/Aug/2018 19:35:41] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
Not Found: /http:/112.124.42.80:63435/
[08/Aug/2018 19:35:46] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
Not Found: /http:/112.124.42.80:63435/
[08/Aug/2018 19:35:47] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
Not Found: /http:/112.124.42.80:63435/
[08/Aug/2018 19:35:54] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
Not Found: /http:/112.124.42.80:63435/
[08/Aug/2018 19:36:14] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
[08/Aug/2018 19:49:55] code 400, message Bad request version ('MCTP/1.0')
[08/Aug/2018 19:49:55] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
Not Found: /http:/www.baidu.com/cache/global/img/gs.gif
[08/Aug/2018 20:03:09] "GET http://www.baidu.com/cache/global/img/gs.gif HTTP/1.1" 404 1738
Not Found: /http:/www.baidu.com/cache/global/img/gs.gif
[08/Aug/2018 22:32:27] "GET http://www.baidu.com/cache/global/img/gs.gif HTTP/1.1" 404 1738
Not Found: /http:/180.163.113.82/check_proxy
[09/Aug/2018 01:17:22] "HEAD http://180.163.113.82/check_proxy HTTP/1.1" 404 1707
[09/Aug/2018 03:54:44] code 400, message Bad request version ('MCTP/1.0')
[09/Aug/2018 03:54:44] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
[09/Aug/2018 05:06:23] code 400, message Bad request syntax ('\x04\x01\x00P´£qR\x00')
[09/Aug/2018 05:06:24] "P´£qR" 400 -
[09/Aug/2018 05:07:33] code 400, message Bad request syntax ('\x05\x02\x00\x02')
[09/Aug/2018 05:07:33] "" 400 -
[09/Aug/2018 07:53:16] "GET / HTTP/1.1" 200 22420
[09/Aug/2018 09:17:38] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00/*à\x00\x00\x00\x00\x00Cookie:')
[09/Aug/2018 09:17:38] "/*àCookie: mstshash=Administr" 400 -
[09/Aug/2018 10:06:20] "GET / HTTP/1.1" 200 24219
[09/Aug/2018 10:06:20] "GET /static/css/jstreeStyle.css HTTP/1.1" 304 0
[09/Aug/2018 10:06:20] "GET /static/js/jstree.js HTTP/1.1" 304 0
Not Found: /favicon.ico
[09/Aug/2018 10:06:21] "GET /favicon.ico HTTP/1.1" 404 3103
[09/Aug/2018 10:06:22] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[09/Aug/2018 10:06:22] "GET /static/js/source.js HTTP/1.1" 304 0
[09/Aug/2018 10:06:22] "GET /static/css/code_show.css HTTP/1.1" 304 0
[09/Aug/2018 10:06:23] "GET /static/css/monokai-sublime.css HTTP/1.1" 304 0
[09/Aug/2018 10:06:23] "GET /static/css/throbber.gif HTTP/1.1" 304 0
[09/Aug/2018 10:06:23] "GET /static/css/32px.png HTTP/1.1" 304 0
[09/Aug/2018 10:06:23] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[09/Aug/2018 10:06:23] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[09/Aug/2018 10:06:24] "POST /operations/right/ HTTP/1.1" 200 1040
[09/Aug/2018 10:06:25] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[09/Aug/2018 10:06:35] "POST /operations/get_codereading_content/ HTTP/1.1" 200 18616
[09/Aug/2018 10:06:41] "POST /operations/show_annotation/ HTTP/1.1" 200 4490
[09/Aug/2018 10:06:42] "POST /operations/show_navigation/ HTTP/1.1" 200 35
[09/Aug/2018 10:06:42] "POST /operations/right/ HTTP/1.1" 200 1035
[09/Aug/2018 10:06:43] "POST /operations/add_vote/ HTTP/1.1" 200 77
[09/Aug/2018 10:06:49] "POST /operations/show_issue_question/ HTTP/1.1" 200 925
[09/Aug/2018 10:06:54] "POST /operations/show_issue_question/ HTTP/1.1" 200 925
[09/Aug/2018 10:06:57] "POST /operations/show_issue_question/ HTTP/1.1" 200 925
[09/Aug/2018 10:07:02] "POST /operations/add_question_answer/ HTTP/1.1" 200 79
[09/Aug/2018 10:07:07] "POST /operations/show_issue_question/ HTTP/1.1" 200 925
[09/Aug/2018 10:07:09] "POST /operations/show_issue_question/ HTTP/1.1" 200 924
[09/Aug/2018 10:07:12] "POST /operations/show_issue_question/ HTTP/1.1" 200 925
[09/Aug/2018 10:07:14] "POST /operations/show_issue_question/ HTTP/1.1" 200 1717
[09/Aug/2018 10:07:19] "POST /operations/show_issue_question/ HTTP/1.1" 200 1717
[09/Aug/2018 10:07:26] "POST /operations/show_annotation/ HTTP/1.1" 200 2268
[09/Aug/2018 10:08:14] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[09/Aug/2018 10:52:07] code 400, message Bad request version ('MCTP/1.0')
[09/Aug/2018 10:52:07] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
----------------------------------------
Exception happened during processing of request from ('36.110.211.5', 20821)
Traceback (most recent call last):
File "/root//envs/codepedia2/lib/python3.6/socketserver.py", line 651, in process_request_thread
self.finish_request(request, client_address)
File "/root//envs/codepedia2/lib/python3.6/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/root//envs/codepedia2/lib/python3.6/socketserver.py", line 721, in __init__
self.handle()
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/servers/basehttp.py", line 139, in handle
self.raw_requestline = self.rfile.readline(65537)
File "/root//envs/codepedia2/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
ConnectionResetError: [Errno 104] Connection reset by peer
----------------------------------------
[09/Aug/2018 19:13:48] "GET / HTTP/1.0" 200 22420
[09/Aug/2018 19:13:48] "OPTIONS / HTTP/1.0" 200 0
[09/Aug/2018 19:13:48] code 400, message Bad request version ('RTSP/1.0')
[09/Aug/2018 19:13:48] "OPTIONS / RTSP/1.0" 400 -
[09/Aug/2018 19:13:53] code 400, message Bad request version ('\x00\x01\x97|\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')
[09/Aug/2018 19:13:53] "€(rþ† —|" 400 -
[09/Aug/2018 19:13:58] code 400, message Bad HTTP/0.9 request type ('\x00')
[09/Aug/2018 19:13:58] "versionbind" 400 -
[09/Aug/2018 19:14:03] code 400, message Bad HTTP/0.9 request type ('\x00')
[09/Aug/2018 19:14:03] " " 400 -
[09/Aug/2018 19:31:53] code 400, message Bad request version ('MCTP/1.0')
[09/Aug/2018 19:31:53] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
Not Found: /http:/www.baidu.com/cache/global/img/gs.gif
[09/Aug/2018 20:40:42] "GET http://www.baidu.com/cache/global/img/gs.gif HTTP/1.1" 404 1738
[10/Aug/2018 03:49:29] code 400, message Bad request version ('MCTP/1.0')
[10/Aug/2018 03:49:29] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
[10/Aug/2018 05:09:17] "GET / HTTP/1.1" 200 22420
Not Found: /http:/www.qq.com/404/search_children.js
[10/Aug/2018 05:48:15] "GET http://www.qq.com/404/search_children.js HTTP/1.1" 404 1723
[10/Aug/2018 05:48:20] code 400, message Bad request syntax ('\x04\x01\x00PpTi4\x00')
[10/Aug/2018 05:48:20] "PpTi4" 400 -
[10/Aug/2018 05:48:20] code 400, message Bad request syntax ('\x05\x01\x00')
[10/Aug/2018 05:48:20] "" 400 -
Not Found: /http:/112.124.42.80:63435/
[10/Aug/2018 06:50:52] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
Not Found: /http:/112.124.42.80:63435/
[10/Aug/2018 06:51:22] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
[10/Aug/2018 09:45:34] code 400, message Bad request version ('MCTP/1.0')
[10/Aug/2018 09:45:34] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
[10/Aug/2018 10:07:59] code 400, message Bad request version ('MCTP/1.0')
[10/Aug/2018 10:07:59] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
Not Found: /http:/www.baidu.com/cache/global/img/gs.gif
[10/Aug/2018 18:29:01] "GET http://www.baidu.com/cache/global/img/gs.gif HTTP/1.1" 404 1738
[10/Aug/2018 21:23:04] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00*%à\x00\x00\x00\x00\x00Cookie:')
[10/Aug/2018 21:23:04] "*%àCookie: mstshash=Test" 400 -
[10/Aug/2018 21:23:04] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00*%à\x00\x00\x00\x00\x00Cookie:')
[10/Aug/2018 21:23:04] "*%àCookie: mstshash=Test" 400 -
[10/Aug/2018 21:54:59] code 400, message Bad request version ('MCTP/1.0')
[10/Aug/2018 21:54:59] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
[11/Aug/2018 01:10:33] "GET / HTTP/1.1" 200 22420
Not Found: /http:/112.124.42.80:63435/
[11/Aug/2018 01:14:07] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
Not Found: /http:/112.124.42.80:63435/
[11/Aug/2018 01:14:52] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
Not Found: /http:/112.124.42.80:63435/
[11/Aug/2018 01:14:58] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
Not Found: /http:/112.124.42.80:63435/
[11/Aug/2018 01:14:58] "HEAD http://112.124.42.80:63435/ HTTP/1.1" 404 1694
Not Found: /http:/139.219.106.96:11000/1qiWaz2wRsx3eXdc4rDfv5tgb6yhn7Uujm8Lik999
[11/Aug/2018 08:53:32] "GET http://139.219.106.96:11000/1qiWaz2wRsx3eXdc4rDfv5tgb6yhn7Uujm8Lik999 HTTP/1.1" 404 1820
Not Found: /http:/www.epochtimes.com/
Not Found: /http:/www.bing.com/
[11/Aug/2018 12:51:36] "GET http://www.epochtimes.com/ HTTP/1.1" 404 1689
Not Found: /http:/www.boxun.com/
Not Found: /http:/wujieliulan.com/
[11/Aug/2018 12:51:36] "GET http://www.bing.com/ HTTP/1.1" 404 1665
[11/Aug/2018 12:51:36] "GET http://wujieliulan.com/ HTTP/1.1" 404 1677
[11/Aug/2018 12:51:36] "GET http://www.boxun.com/ HTTP/1.1" 404 1669
Not Found: /http:/www.minghui.org/
[11/Aug/2018 12:51:37] "GET http://www.minghui.org/ HTTP/1.1" 404 1677
Not Found: /http:/www.baidu.com/
[11/Aug/2018 12:51:42] "GET http://www.baidu.com/ HTTP/1.1" 404 1669
Not Found: /http:/www.rfa.org/
[11/Aug/2018 12:51:43] "GET http://www.rfa.org/ HTTP/1.1" 404 1661
Not Found: /www.voanews.com:443
[11/Aug/2018 12:51:43] "CONNECT www.voanews.com:443 HTTP/1.0" 404 1669
[11/Aug/2018 13:56:56] code 400, message Bad request version ('MCTP/1.0')
[11/Aug/2018 13:56:56] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
Not Found: /http:/www.baidu.com/cache/global/img/gs.gif
[11/Aug/2018 16:16:16] "GET http://www.baidu.com/cache/global/img/gs.gif HTTP/1.1" 404 1738
[12/Aug/2018 06:15:30] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00/*à\x00\x00\x00\x00\x00Cookie:')
[12/Aug/2018 06:15:30] "/*àCookie: mstshash=Administr" 400 -
[12/Aug/2018 07:21:21] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00/*à\x00\x00\x00\x00\x00Cookie:')
[12/Aug/2018 07:21:21] "/*àCookie: mstshash=Administr" 400 -
[12/Aug/2018 11:15:52] code 400, message Bad request syntax ('\x05\x01\x00')
[12/Aug/2018 11:15:52] "" 400 -
[12/Aug/2018 11:16:01] code 400, message Bad request syntax ('\x05\x01\x00')
[12/Aug/2018 11:16:01] "" 400 -
[12/Aug/2018 11:16:10] code 400, message Bad request syntax ('\x05\x01\x00')
[12/Aug/2018 11:16:10] "" 400 -
Not Found: /http:/5.188.210.12/echo.php
[12/Aug/2018 11:17:55] "GET http://5.188.210.12/echo.php HTTP/1.1" 404 1689
[12/Aug/2018 12:08:11] code 400, message Bad request version ('MCTP/1.0')
[12/Aug/2018 12:08:11] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
Not Found: /http:/www.baidu.com/cache/global/img/gs.gif
[12/Aug/2018 13:40:42] "GET http://www.baidu.com/cache/global/img/gs.gif HTTP/1.1" 404 1738
[12/Aug/2018 16:48:54] code 400, message Bad request version ('MCTP/1.0')
[12/Aug/2018 16:48:54] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
Not Found: /http:/112.35.66.7:10083/index.php
[12/Aug/2018 22:29:31] "GET http://112.35.66.7:10083/index.php HTTP/1.1" 404 1712
[13/Aug/2018 00:10:54] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 00:10:54] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 00:46:08] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 00:46:08] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 00:52:53] code 400, message Bad request version ('MCTP/1.0')
[13/Aug/2018 00:52:53] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
[13/Aug/2018 02:04:50] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 02:04:50] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 02:35:18] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 02:35:18] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 02:46:46] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 02:46:46] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 03:05:03] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 03:05:03] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 03:10:02] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 03:10:02] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 03:17:29] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 03:17:29] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 03:45:11] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 03:45:11] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 03:58:54] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 03:58:54] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 04:38:06] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 04:38:06] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 04:54:23] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 04:54:23] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 06:11:46] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 06:11:46] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 06:20:44] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 06:20:44] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 07:56:00] code 400, message Bad request syntax ('\x04\x01\x00\x00\x00\x00\x00\x00\x00')
[13/Aug/2018 07:56:00] "" 400 -
[13/Aug/2018 07:56:03] code 400, message Bad request syntax ('\x05\x03\x00\x01\x02')
[13/Aug/2018 07:56:03] "" 400 -
Not Found: /http:/baidu.com/
[13/Aug/2018 07:56:03] "GET http://baidu.com/ HTTP/1.1" 404 1653
[13/Aug/2018 08:05:41] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 08:05:41] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 08:41:17] "GET / HTTP/1.1" 200 24219
[13/Aug/2018 08:41:17] "GET /static/css/base.css HTTP/1.1" 200 18934
[13/Aug/2018 08:41:17] "GET /static/css/jstreeStyle.css HTTP/1.1" 200 30545
[13/Aug/2018 08:41:17] "GET /static/css/common.css HTTP/1.1" 200 8146
[13/Aug/2018 08:41:17] "GET /static/vendor/font-awesome/css/font-awesome.css HTTP/1.1" 200 37414
[13/Aug/2018 08:41:18] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 200 12616
[13/Aug/2018 08:41:18] "GET /static/css/prettify.css HTTP/1.1" 200 1726
[13/Aug/2018 08:41:18] "GET /static/js/run_prettify.js HTTP/1.1" 200 16604
[13/Aug/2018 08:41:18] "GET /static/js/base.js HTTP/1.1" 200 21228
[13/Aug/2018 08:41:18] "GET /static/vendor/bootstrap/js/bootstrap.min.js HTTP/1.1" 200 37045
[13/Aug/2018 08:41:18] "GET /static/vendor/bootstrap/css/bootstrap.css HTTP/1.1" 200 146070
[13/Aug/2018 08:41:18] "GET /static/vendor/site/css/style.css HTTP/1.1" 200 160228
[13/Aug/2018 08:41:18] "GET /static/js/jstree.js HTTP/1.1" 200 161842
[13/Aug/2018 08:41:19] "GET /static/vendor/qtip/jquery.qtip.js HTTP/1.1" 200 98738
[13/Aug/2018 08:41:20] "GET /static/image/CodePedia.ico HTTP/1.1" 200 370070
[13/Aug/2018 08:41:21] "GET /media/avatar/users/default.png HTTP/1.1" 200 36378
Not Found: /favicon.ico
[13/Aug/2018 08:41:21] "GET /favicon.ico HTTP/1.1" 404 3103
[13/Aug/2018 08:41:23] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[13/Aug/2018 08:41:23] "GET /static/css/font-awesome.css HTTP/1.1" 200 37414
[13/Aug/2018 08:41:23] "GET /static/css/code_show.css HTTP/1.1" 200 23819
[13/Aug/2018 08:41:23] "GET /static/css/monokai-sublime.css HTTP/1.1" 200 1038
[13/Aug/2018 08:41:23] "GET /static/js/prettify.js HTTP/1.1" 200 18331
[13/Aug/2018 08:41:23] "GET /static/js/source.js HTTP/1.1" 200 41489
[13/Aug/2018 08:41:23] "GET /static/image/codepedia.png HTTP/1.1" 200 3350
[13/Aug/2018 08:41:23] "GET /static/vendor/bootstrap/css/bootstrap1.css HTTP/1.1" 200 151053
[13/Aug/2018 08:41:24] "GET /static/image/users/default.png HTTP/1.1" 200 36378
[13/Aug/2018 08:41:24] "GET /static/js/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js HTTP/1.1" 200 337802
[13/Aug/2018 08:41:25] "GET /static/css/32px.png HTTP/1.1" 200 2988
[13/Aug/2018 08:41:25] "GET /static/css/throbber.gif HTTP/1.1" 200 1720
[13/Aug/2018 08:41:26] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[13/Aug/2018 08:41:26] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[13/Aug/2018 08:41:26] "POST /operations/right/ HTTP/1.1" 200 1040
[13/Aug/2018 08:41:28] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[13/Aug/2018 08:41:30] "GET /static/image/annotation.png HTTP/1.1" 200 1148
[13/Aug/2018 08:41:30] "GET /static/image/question.png HTTP/1.1" 200 1112
Internal Server Error: /operations/right/
Traceback (most recent call last):
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 89, in dispatch
return handler(request, *args, **kwargs)
File "/projects/codepedia-test/codepedia2.0/apps/operations/views.py", line 1012, in post
html_str = self.get_file_right_content(project_path,file_path,file.pk)
File "/projects/codepedia-test/codepedia2.0/apps/operations/views.py", line 986, in get_file_right_content
filelinenum = getFileLineNum(project_path,file_path)
File "/projects/codepedia-test/codepedia2.0/apps/operations/views.py", line 978, in getFileLineNum
return len(open(path,'rU').readlines())
IsADirectoryError: [Errno 21] Is a directory: '/opt/opengrok/source/Notes'
[13/Aug/2018 08:41:38] "POST /operations/show_navigation/ HTTP/1.1" 200 35
[13/Aug/2018 08:41:38] "POST /operations/right/ HTTP/1.1" 500 19113
[13/Aug/2018 08:41:38] "POST /operations/get_codereading_content/ HTTP/1.1" 200 5610
[13/Aug/2018 08:41:41] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 08:43:56] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[13/Aug/2018 08:43:57] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 08:43:58] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 133
[13/Aug/2018 08:43:58] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[13/Aug/2018 08:43:59] "POST /operations/right/ HTTP/1.1" 200 2701
[13/Aug/2018 08:44:01] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[13/Aug/2018 08:44:31] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 08:45:02] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 08:46:44] "POST /operations/show_annotation/ HTTP/1.1" 200 387
[13/Aug/2018 08:46:47] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 08:48:18] code 400, message Bad HTTP/0.9 request type ('\x03\x00\x00+&à\x00\x00\x00\x00\x00Cookie:')
[13/Aug/2018 08:48:18] "+&àCookie: mstshash=hello" 400 -
[13/Aug/2018 08:48:20] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 08:48:57] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 08:49:35] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 08:49:51] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 08:54:15] "POST /operations/add_annotation/ HTTP/1.1" 200 41
[13/Aug/2018 08:54:16] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 08:54:21] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 08:54:24] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 08:54:31] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:05:02] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[13/Aug/2018 09:05:02] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 200 12616
[13/Aug/2018 09:05:02] "GET /static/css/code_show.css HTTP/1.1" 200 23819
[13/Aug/2018 09:05:02] "GET /static/css/prettify.css HTTP/1.1" 200 1726
[13/Aug/2018 09:05:02] "GET /static/css/font-awesome.css HTTP/1.1" 200 37414
[13/Aug/2018 09:05:03] "GET /static/css/jstreeStyle.css HTTP/1.1" 200 30545
[13/Aug/2018 09:05:03] "GET /static/css/monokai-sublime.css HTTP/1.1" 200 1038
[13/Aug/2018 09:05:03] "GET /static/vendor/bootstrap/css/bootstrap1.css HTTP/1.1" 200 151053
[13/Aug/2018 09:05:03] "GET /static/js/prettify.js HTTP/1.1" 200 18331
[13/Aug/2018 09:05:03] "GET /static/js/source.js HTTP/1.1" 200 41523
[13/Aug/2018 09:05:03] "GET /static/image/codepedia.png HTTP/1.1" 200 3350
[13/Aug/2018 09:05:03] "GET /static/image/users/default.png HTTP/1.1" 200 36378
[13/Aug/2018 09:05:04] "GET /static/js/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js HTTP/1.1" 200 337802
[13/Aug/2018 09:05:05] "GET /static/js/jstree.js HTTP/1.1" 200 161842
[13/Aug/2018 09:05:05] "GET /static/css/throbber.gif HTTP/1.1" 200 1720
[13/Aug/2018 09:05:05] "GET /static/css/32px.png HTTP/1.1" 200 2988
[13/Aug/2018 09:05:06] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 135
[13/Aug/2018 09:05:06] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[13/Aug/2018 09:05:06] "POST /operations/right/ HTTP/1.1" 200 2734
[13/Aug/2018 09:05:08] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[13/Aug/2018 09:05:11] "GET /static/image/annotation.png HTTP/1.1" 200 1148
[13/Aug/2018 09:05:11] "GET /static/image/question.png HTTP/1.1" 200 1112
[13/Aug/2018 09:05:15] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:05:16] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:05:17] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:05:20] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:05:25] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:05:27] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:10:56] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[13/Aug/2018 09:10:56] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 200 12616
[13/Aug/2018 09:10:56] "GET /static/css/font-awesome.css HTTP/1.1" 200 37414
[13/Aug/2018 09:10:57] "GET /static/css/prettify.css HTTP/1.1" 200 1726
[13/Aug/2018 09:10:57] "GET /static/css/code_show.css HTTP/1.1" 200 23819
[13/Aug/2018 09:10:57] "GET /static/css/jstreeStyle.css HTTP/1.1" 200 30545
[13/Aug/2018 09:10:57] "GET /static/css/monokai-sublime.css HTTP/1.1" 200 1038
[13/Aug/2018 09:10:57] "GET /static/js/prettify.js HTTP/1.1" 200 18331
[13/Aug/2018 09:10:57] "GET /static/vendor/bootstrap/css/bootstrap1.css HTTP/1.1" 200 151053
[13/Aug/2018 09:10:57] "GET /static/image/codepedia.png HTTP/1.1" 200 3350
[13/Aug/2018 09:10:57] "GET /static/js/source.js HTTP/1.1" 200 48110
[13/Aug/2018 09:10:58] "GET /static/image/users/default.png HTTP/1.1" 200 36378
[13/Aug/2018 09:10:58] "GET /static/js/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js HTTP/1.1" 200 337802
[13/Aug/2018 09:10:59] "GET /static/js/jstree.js HTTP/1.1" 200 161842
[13/Aug/2018 09:10:59] "GET /static/css/throbber.gif HTTP/1.1" 200 1720
[13/Aug/2018 09:10:59] "GET /static/css/32px.png HTTP/1.1" 200 2988
[13/Aug/2018 09:11:00] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 135
[13/Aug/2018 09:11:00] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[13/Aug/2018 09:11:00] "POST /operations/right/ HTTP/1.1" 200 2737
[13/Aug/2018 09:11:02] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[13/Aug/2018 09:11:05] "GET /static/image/annotation.png HTTP/1.1" 200 1148
[13/Aug/2018 09:11:05] "GET /static/image/question.png HTTP/1.1" 200 1112
[13/Aug/2018 09:12:08] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:12:10] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:12:13] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:12:14] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:12:20] "POST /operations/add_annotation/ HTTP/1.1" 200 71
[13/Aug/2018 09:12:20] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:12:22] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:12:23] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:12:23] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:12:23] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:12:24] code 400, message Bad request version ('MCTP/1.0')
[13/Aug/2018 09:12:24] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 -
[13/Aug/2018 09:12:28] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:12:36] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:12:36] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:12:37] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:12:37] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:12:37] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:12:38] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:12:55] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[13/Aug/2018 09:12:55] "GET /static/js/source.js HTTP/1.1" 304 0
[13/Aug/2018 09:12:56] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:12:57] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 135
[13/Aug/2018 09:12:58] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[13/Aug/2018 09:12:58] "POST /operations/right/ HTTP/1.1" 200 2733
[13/Aug/2018 09:13:00] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[13/Aug/2018 09:13:03] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:04] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:05] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:05] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:05] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:05] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:05] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:05] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:06] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:06] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:06] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:06] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:06] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:07] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:07] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:13:07] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
Internal Server Error: /operations/right/
Traceback (most recent call last):
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 89, in dispatch
return handler(request, *args, **kwargs)
File "/projects/codepedia-test/codepedia2.0/apps/operations/views.py", line 1012, in post
html_str = self.get_file_right_content(project_path,file_path,file.pk)
File "/projects/codepedia-test/codepedia2.0/apps/operations/views.py", line 986, in get_file_right_content
filelinenum = getFileLineNum(project_path,file_path)
File "/projects/codepedia-test/codepedia2.0/apps/operations/views.py", line 978, in getFileLineNum
return len(open(path,'rU').readlines())
IsADirectoryError: [Errno 21] Is a directory: '/opt/opengrok/source/Notes/res/raw'
[13/Aug/2018 09:14:46] "POST /operations/get_codereading_content/ HTTP/1.1" 200 4225
[13/Aug/2018 09:14:46] "POST /operations/show_navigation/ HTTP/1.1" 200 35
[13/Aug/2018 09:14:46] "POST /operations/right/ HTTP/1.1" 500 19137
[13/Aug/2018 09:14:48] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:14:51] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:14:51] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:14:51] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:14:52] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:03] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:07] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:09] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:15:16] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:18] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:18] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:19] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:19] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:19] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:19] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:19] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:20] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:20] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:20] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:20] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:20] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:20] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:20] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:21] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:21] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:21] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:21] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:21] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:21] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:15:21] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
Internal Server Error: /operations/show_navigation/
Traceback (most recent call last):
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner
response = get_response(request)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 89, in dispatch
return handler(request, *args, **kwargs)
File "/projects/codepedia-test/codepedia2.0/apps/operations/views.py", line 181, in post
file_id = File.objects.get(project_id=project_id,path=file_path).pk
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/root//envs/codepedia2/lib/python3.6/site-packages/django/db/models/query.py", line 403, in get
self.model._meta.object_name
projects.models.DoesNotExist: File matching query does not exist.
[13/Aug/2018 09:17:13] "POST /operations/show_navigation/ HTTP/1.1" 500 19185
[13/Aug/2018 09:18:05] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[13/Aug/2018 09:18:06] "GET /static/js/source.js HTTP/1.1" 200 47778
[13/Aug/2018 09:18:07] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:18:08] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 135
[13/Aug/2018 09:18:08] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[13/Aug/2018 09:18:08] "POST /operations/right/ HTTP/1.1" 200 2709
[13/Aug/2018 09:18:10] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[13/Aug/2018 09:18:17] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:18:21] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:21:37] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:22:11] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:22:44] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:22:55] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:23:07] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:23:58] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[13/Aug/2018 09:23:58] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 200 12616
[13/Aug/2018 09:23:58] "GET /static/css/font-awesome.css HTTP/1.1" 200 37414
[13/Aug/2018 09:23:58] "GET /static/css/prettify.css HTTP/1.1" 200 1726
[13/Aug/2018 09:23:58] "GET /static/css/code_show.css HTTP/1.1" 200 23819
[13/Aug/2018 09:23:58] "GET /static/css/monokai-sublime.css HTTP/1.1" 200 1038
[13/Aug/2018 09:23:58] "GET /static/css/jstreeStyle.css HTTP/1.1" 200 30545
[13/Aug/2018 09:23:58] "GET /static/js/prettify.js HTTP/1.1" 200 18331
[13/Aug/2018 09:23:58] "GET /static/js/source.js HTTP/1.1" 200 47778
[13/Aug/2018 09:23:59] "GET /static/image/codepedia.png HTTP/1.1" 200 3350
[13/Aug/2018 09:23:59] "GET /static/image/users/default.png HTTP/1.1" 200 36378
[13/Aug/2018 09:23:59] "GET /static/vendor/bootstrap/css/bootstrap1.css HTTP/1.1" 200 151053
[13/Aug/2018 09:24:00] "GET /static/js/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js HTTP/1.1" 200 337802
[13/Aug/2018 09:24:00] "GET /static/js/jstree.js HTTP/1.1" 200 161842
[13/Aug/2018 09:24:01] "GET /static/css/throbber.gif HTTP/1.1" 200 1720
[13/Aug/2018 09:24:01] "GET /static/css/32px.png HTTP/1.1" 200 2988
[13/Aug/2018 09:24:02] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:24:02] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 135
[13/Aug/2018 09:24:03] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[13/Aug/2018 09:24:03] "POST /operations/right/ HTTP/1.1" 200 2695
[13/Aug/2018 09:24:04] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[13/Aug/2018 09:24:07] "GET /static/image/annotation.png HTTP/1.1" 200 1148
[13/Aug/2018 09:24:07] "GET /static/image/question.png HTTP/1.1" 200 1112
[13/Aug/2018 09:24:10] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:24:12] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:24:14] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:24:16] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:24:17] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:25:06] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[13/Aug/2018 09:25:06] "GET /static/js/source.js HTTP/1.1" 304 0
[13/Aug/2018 09:25:07] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 135
[13/Aug/2018 09:25:08] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[13/Aug/2018 09:25:08] "POST /operations/right/ HTTP/1.1" 200 2695
[13/Aug/2018 09:25:11] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[13/Aug/2018 09:25:14] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:25:15] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:25:28] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:26:22] "POST /operations/add_annotation/ HTTP/1.1" 200 71
[13/Aug/2018 09:26:22] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:26:25] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:26:35] "POST /operations/add_annotation/ HTTP/1.1" 200 71
[13/Aug/2018 09:26:35] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:26:38] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:26:40] "POST /operations/show_issue_question/ HTTP/1.1" 200 459
[13/Aug/2018 09:26:49] "POST /operations/add_question/ HTTP/1.1" 200 41
[13/Aug/2018 09:26:50] "POST /operations/show_issue_question/ HTTP/1.1" 200 926
[13/Aug/2018 09:26:52] "POST /operations/show_issue_question/ HTTP/1.1" 200 926
[13/Aug/2018 09:26:54] "POST /operations/show_issue_question/ HTTP/1.1" 200 926
[13/Aug/2018 09:26:55] "POST /operations/show_issue_question/ HTTP/1.1" 200 926
[13/Aug/2018 09:26:56] "POST /operations/show_issue_question/ HTTP/1.1" 200 926
[13/Aug/2018 09:26:57] "POST /operations/show_issue_question/ HTTP/1.1" 200 926
[13/Aug/2018 09:26:59] "POST /operations/show_issue_question/ HTTP/1.1" 200 926
[13/Aug/2018 09:28:02] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[13/Aug/2018 09:28:02] "GET /static/js/source.js HTTP/1.1" 200 47780
[13/Aug/2018 09:28:03] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 135
[13/Aug/2018 09:28:03] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[13/Aug/2018 09:28:04] "POST /operations/right/ HTTP/1.1" 200 2694
[13/Aug/2018 09:28:05] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[13/Aug/2018 09:28:12] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:28:19] "POST /operations/add_annotation/ HTTP/1.1" 200 71
[13/Aug/2018 09:28:19] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:28:24] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:28:26] "POST /operations/show_issue_question/ HTTP/1.1" 200 926
[13/Aug/2018 09:28:27] "POST /operations/show_issue_question/ HTTP/1.1" 200 926
[13/Aug/2018 09:28:28] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:28:37] "POST /operations/add_annotation/ HTTP/1.1" 200 71
[13/Aug/2018 09:28:37] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:30:13] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:30:14] "POST /operations/show_issue_question/ HTTP/1.1" 200 926
[13/Aug/2018 09:30:21] "POST /operations/add_annotation/ HTTP/1.1" 200 71
[13/Aug/2018 09:30:21] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:30:30] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:31:23] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[13/Aug/2018 09:31:24] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 200 12616
[13/Aug/2018 09:31:24] "GET /static/css/code_show.css HTTP/1.1" 200 23819
[13/Aug/2018 09:31:24] "GET /static/css/font-awesome.css HTTP/1.1" 200 37414
[13/Aug/2018 09:31:24] "GET /static/css/prettify.css HTTP/1.1" 200 1726
[13/Aug/2018 09:31:24] "GET /static/css/monokai-sublime.css HTTP/1.1" 200 1038
[13/Aug/2018 09:31:24] "GET /static/css/jstreeStyle.css HTTP/1.1" 200 30545
[13/Aug/2018 09:31:24] "GET /static/js/prettify.js HTTP/1.1" 200 18331
[13/Aug/2018 09:31:24] "GET /static/vendor/bootstrap/css/bootstrap1.css HTTP/1.1" 200 151053
[13/Aug/2018 09:31:24] "GET /static/js/source.js HTTP/1.1" 200 47780
[13/Aug/2018 09:31:25] "GET /static/image/codepedia.png HTTP/1.1" 200 3350
[13/Aug/2018 09:31:25] "GET /static/image/users/default.png HTTP/1.1" 200 36378
[13/Aug/2018 09:31:26] "GET /static/js/jstree.js HTTP/1.1" 200 161842
[13/Aug/2018 09:31:26] "GET /static/js/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js HTTP/1.1" 200 337802
[13/Aug/2018 09:31:27] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:31:27] "GET /static/css/throbber.gif HTTP/1.1" 200 1720
[13/Aug/2018 09:31:27] "GET /static/css/32px.png HTTP/1.1" 200 2988
[13/Aug/2018 09:31:28] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 135
[13/Aug/2018 09:31:28] "POST /operations/right/ HTTP/1.1" 200 2694
[13/Aug/2018 09:31:28] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[13/Aug/2018 09:31:30] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[13/Aug/2018 09:31:33] "GET /static/image/question.png HTTP/1.1" 200 1112
[13/Aug/2018 09:31:33] "GET /static/image/annotation.png HTTP/1.1" 200 1148
[13/Aug/2018 09:31:36] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:31:51] "POST /operations/add_annotation/ HTTP/1.1" 200 71
[13/Aug/2018 09:31:51] "POST /operations/show_annotation/ HTTP/1.1" 200 2253
[13/Aug/2018 09:33:05] "POST /operations/show_annotation/ HTTP/1.1" 200 4477
[13/Aug/2018 09:33:12] "POST /operations/add_annotation/ HTTP/1.1" 200 71
[13/Aug/2018 09:33:26] "GET /projects/Notes/src/net/micode/notes/ui/NoteEditActivity.java HTTP/1.1" 200 42002
[13/Aug/2018 09:33:26] "GET /static/js/source.js HTTP/1.1" 200 47594
[13/Aug/2018 09:33:27] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744
[13/Aug/2018 09:33:28] "POST /operations/get_addtab_paras/ HTTP/1.1" 200 135
[13/Aug/2018 09:33:28] "POST /operations/show_navigation/ HTTP/1.1" 200 1155
[13/Aug/2018 09:33:28] "POST /operations/right/ HTTP/1.1" 200 2694
[13/Aug/2018 09:33:30] "POST /operations/get_codereading_content/ HTTP/1.1" 200 766296
[13/Aug/2018 09:33:42] "POST /operations/add_annotation/ HTTP/1.1" 200 71
[13/Aug/2018 09:34:00] "POST /operations/show_annotation/ HTTP/1.1" 200 2253

View File

@ -99,7 +99,6 @@ function modify_anno(file_id,line_num){
});
}
// FIXME
function show_issue_question(file_id, line_num, issue_ids) {
issueid_str=issue_ids.toString()
@ -1043,6 +1042,166 @@ function submit_dir_question(file_id, line_num, content) {
});
}
// 这下面5个函数与上面dir的区别就是
// 上面的针对文件夹margin-top是70px的
// 下面的针对文件margin-top是140px的仅此而已
function add_file_annotation(item, file_id, line_num){
// 获取当前是注释还是问题
var selectValue = $(item).siblings(".put-select").find(".active").html().trim();
var text_context = "#addno-text-" + file_id + "-" + line_num;
var content = $(text_context).val();
if (content.trim().length == 0) {
alert("内容不能为空")
return;
}
if (selectValue == "注释") {
// 向addAnnatation中发请求
submit_file_annotation(file_id, line_num, content);
} else {
submit_file_question(file_id, line_num, content);
}
}
function show_file_annotation(file_id){
ev = window.event;
var mousePos = mouseCoords(ev);
$.ajax({
cache: false,
type: "POST",
url: '/operations/show_annotation/',
data: { 'file_id': file_id, 'line_num': 0 },
dataType: 'json',
async: true,
beforeSend: function (xhr, settings) {
xhr.setRequestHeader("X-CSRFToken", csrftoken);
},
success: function (data) {
if (data.status === "success") {
console.log(1111)
$("#ItemcommentPanel").remove()
var html="<div id='ItemcommentPanel' style='margin-top: 140px;'>"+data.html_str+"</div>"
$("#dir_anno_"+file_id).append(html);
}else{
alert(data.msg)
}
}
});
}
function show_file_issue_question(file_id){
ev = window.event;
var mousePos = mouseCoords(ev)
//发送问题id返回问题内容
$.ajax({
cache: false,
type: "POST",
url: '/operations/show_issue_question/',
data: { 'file_id': file_id, 'line_num': 0, 'issue_ids': "[]"},
dataType: 'json',
async: true,
beforeSend: function (xhr, settings) {
xhr.setRequestHeader("X-CSRFToken", csrftoken);
},
success: function (data) {
if(data.status=='success'){
var html="<div id='ItemquestionPanel' style='margin-top:140px;'>"+data.html_str+"</div>";
$("#dir_question_"+file_id).append(html);
// $("#loadQuestionpanel").html(data.html_str);
if (data.issueAnswers) {
//字符串转换成整型数组
var dataStrArr = issueid_str.substring(1, issueid_str.length - 1).split(",")
var issue_ids = dataStrArr.map(function (data) {
return +data;
});
//
issueAnswers = JSON.parse(data.issueAnswers);
issueStandardAnswers = JSON.parse(data.issueStandardAnswers);
let count = 0;
for (let i = 0; i < issue_ids.length; i++) {
issue_id = issue_ids[i]
if (issue_id == issueAnswers[count].fields.issue) {
var radios = document.getElementsByName("issue_" + issue_id)
user_answer = issueAnswers[0].fields.content;
standard_answer = issueStandardAnswers[0].fields.choice_position;
if (user_answer == standard_answer) {
radios[user_answer - 1].parentNode.style.color = "green";
} else {
radios[parseInt(user_answer) - 1].parentNode.style.color = "red";
radios[parseInt(standard_answer) - 1].parentNode.style.color = "green";
}
document.getElementById("submit_onechoice_" + issue_id).style.display = "None";
count = count + 1
}
}
}
//$("#questionPanel").css("top", mousePos.y);
//$("#questionPanel").css("left", mousePos.x - 400);
//$("#loadQuestionpanel").show();
}else{
alert(data.msg)
}
}
});
}
function submit_file_annotation(file_id, line_num, content) {
$.ajax({
cache: false,
type: "POST",
url: '/operations/add_annotation/',
data: { 'file_id': file_id, 'linenum': line_num, 'content': content },
dataType: 'json',
async: true,
beforeSend: function (xhr, settings) {
xhr.setRequestHeader("X-CSRFToken", csrftoken);
},
success: function (data) {
if (data.status == 'success') {
$(".addno-panel").hide();
$(".source-addno-panel").remove();
show_file_annotation(file_id);
}else{
alert("您已经添加过注释了")
}
}
});
}
function submit_file_question(file_id, line_num, content) {
$.ajax({
cache: false,
type: "POST",
url: '/operations/add_question/',
data: { 'file_id': file_id, 'linenum': line_num, 'content': content },
dataType: 'json',
async: true,
beforeSend: function (xhr, settings) {
xhr.setRequestHeader("X-CSRFToken", csrftoken);
},
success: function (data) {
if (data.status == 'success') {
var value = $("#dir_question_" + file_id).html()
if (value.trim().length == 0) {
$("#dir_question_" + +file_id).html(1);
} else {
$("#dir_question_" + +file_id).html(parseInt(value) + 1);
}
}
$(".addno-panel").hide();
$(".source-addno-panel").remove();
show_file_issue_question(file_id);
}
});
}
function thumbsAnno(item,anno_id,vote_value) {
// 获取当前的vote

View File

@ -1,6 +1,33 @@
<!-- 这个是文件的信息 -->
<div class="middle-right-item">
<p class="right-item-title">File Infomation</p>
<p class="fr">
<span class="fl mr15 mt7">
<img src="/static/image/annotation.png" onclick="show_file_annotation({{file_id}})" class="mr3">
<span class="font-12 fontcolor-white" id="dir_anno_{{file_id}}"></span>
</span>
<span class="fl mr15 mt7">
<img src="/static/image/question.png" onclick="show_file_issue_question({{file_id}})" class="mr3">
<span class="font-12 fontcolor-white" id="dir_question_{{file_id}}"></span>
</span>
<span class="fl mt7" onclick="show_next_addnoPanel({{file_id}})">
<i class="fa fa-plus-circle color-grey-c"></i>
</span>
<div class="addno-panel" id="addno-panel-{{file_id}}" style="top: 150px; right: 30px;">
<div class="trangle-op"></div>
<div class="put-content">
<p class="put-select clearfix" id="addno-select-0">
<span class="active" onclick='$(this).siblings("span").removeClass("active"); $(this).addClass("active");'>注释</span>
<span onclick='$(this).siblings("span").removeClass("active"); $(this).addClass("active");'>问题</span>
</p>
<textarea id="addno-text-{{file_id}}-0" class="put-text" placeholder="输入注释或者问题"> </textarea>
<a href="#" onclick="add_file_annotation(this,{{file_id}},0)" class="submit fr" id="submit">提交</a>
</div>
</div>
</p>
<p class="clearfix">
<span class="panel-left">methods</span>
<span class="panel-right">{{method_num}}</span>