aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/unicode_chars_in_wikiname_break_auth.mdwn
blob: 472597c46f534e0c09827280f4b47aa54b8b8884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
I spent hours trying to understand why my wiki suddenly refused me to log in (using passwordauth).
The failure message was always: `login failed, perhaps you need to turn on cookies?`

Inspecting the cookie information (thanks to Iceweasel's webdeveloper add-on), I realized there were some weird-looking encoded chars in the cookie name.

Replacing "·" with "-" in `wikiname` fixed this login issue.

> Hmm, Recai sent me a patch a long time ago to handle utf-8 here by encoding
> the wikiname. But it doesn't seem to work, somehow the encoded utf-8
> value still doesn't make it through. (CGI::Session seems to have underermined utf-8
> issues too.) Seems like I will have to possibly break some sessions and
> entity-encode the wikiname in the cookie.. [[done]]. --[[Joey]]

>> I confirm it fixes the bug for me. --[[intrigeri]]

(BTW, such a char was replaced by -I don't remember what encoding thingie- in my setup file, when running `ikiwiki-transition setupformat`.)

> Thanks for the heads up, fixed that too. --[[Joey]]

>> I confirm it fixes the bug for me. --[[intrigeri]]