]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/Anon_edit_caused_lock_out_on_entire_site_.mdwn
1691ae11a771048b5673faa6aa8eb088f5a5d05f
[git.ikiwiki.info.git] / doc / bugs / Anon_edit_caused_lock_out_on_entire_site_.mdwn
1 Probably caused by something misconfigured about the [[plugins/comments]] plugin.
3 ---
5 ## Config
7 My setup file:
9     # comments plugin
10     # PageSpec of pages where comments are allowed
11     comments_pagespec: forum/* or blog/posts/* or tarefa/*
12     # PageSpec of pages where posting new comments is not allowed
13     comments_closed_pagespec: ''
14     # Base name for comments, e.g. "comment_" for pages like "sandbox/comment_12"
15     comments_pagename: comment_
16     # Interpret directives in comments?
17     #comments_allowdirectives: 0
18     # Allow anonymous commenters to set an author name?
19     comments_allowauthor: 1
20     # commit comments to the VCS
21     comments_commit: 1
22     # Restrict formats for comments to (no restriction if empty)
23     comments_allowformats: mdwn txt
25 The `moderatedcomments` plugins is **not** enabled
27 The `anonok` plugin is **not** enabled
29 > What are your complete `add_plugins` and `disable_plugins` options?
30 > Which version of ikiwiki are you running? Are you using any third-party
31 > plugins or patches? --[[smcv]]
33 >> Pasted [[here|addplugins]]
35 ---
37 ## Steps
39 I've tried to place a comment clicking in the obvious [Add a comment](https://dev.iikb.org/ikiwiki.cgi?do=comment&page=forum%2FTema_bootstrap) in a [forum post](https://dev.iikb.org/forum/Tema_bootstrap/).
41 I've not signed in because the *sign in* page didn't come up, instead a simple `(You might want to Signin first?)` showed up, which I've haven't read and commented away.
43 ---
45 ## Results
47 As a consequence of that, the user '' - that's a null character, have somehow logged in and it seems that there is no way to [log it out](https://dev.iikb.org/ikiwiki.cgi?do=prefs).
49 None of this phantom user edits are being commited - this [blog post](https://dev.iikb.org/blog/posts/Bug_severo_neste_site/) was made with that user logged in via web.
51 It seems I can't log out from nowhere. I've rebuild the wiki from the command line and restarted the nginx server, the phantom user remains logged in and open to anyone willing to edit away the wiki.
53 ---
55 ## Conclusion
57 If I wanted to do a totally anonnymous wiki, this would be the best setup ever.
59 For [this particular installation](https://dev.iikb.org), that's not the case.
61 ---
63 ## Question
65 Is there a session file or something to logout this phantom user?
67 > See [[tips/inside_dot_ikiwiki]]. `.ikiwiki/userdb` is a Perl Storable file;
68 > there are instructions for inspecting it on that page. `.ikiwiki/sessions.db`
69 > is most likely a Berkeley DB file.
70 >
71 > I would be interested to see the contents of these two files and the complete
72 > `.setup` file. I would also be interested to see a tarball of the entire
73 > wiki source directory, if it isn't excessively large. If you'd be willing to
74 > share them, please contact <mailto:smcv@debian.org>. --[[smcv]]
76 >> I think I've sent right away when you asked, anyway I still have the tarball hanging around. The last *iikb* domains will expire next month though, the wiki will only be accessible by mirror <https://notabug.org/iikb/dev.iikb.org>.