kensanata/oddmuse

Comment signing quirk

felixp7 opened this issue · 13 comments

This is an odd one. I wasn't able to find an error message in the logs, and worse, the behavior differs between my dev and production server. But for what it's worth...

When trying to submit a comment, if the username I fill in ends in an exclamation mark (a.k.a. bang), OddMuse either seems to crash (?!) and never registers the comment, or -- on another server -- ignores the given username and records the comment as anonymous. There seem to be no lasting side effects in either case.

That pesky punctuation is not important, of course, but it did give me a fright at first.

Oh wow, I just tried it on oddmuse.org and indeed it left a comment as anonymous. That's a wonderful find.

Implemented in 51b2430. Let me know if it works.

That's odd... in my local test environment, this new version doesn't even show the comment form. Admittedly said environment is a bit weird, but 2.3.8 works there.

You probably need to set $CommentsPrefix.

It's set. I used the existing setup, and just dropped the new wiki.pl in. Then dropped the old one back to make sure.

How are we going to proceed now? It would seem to me that we can close this issue except for the missing "user acceptance test". :)

Oh, the link is there, the comment page is there, but the comment form doesn't show up.

I'd say set this fix aside for now, as it wasn't all that important. Maybe you can try again some other time.

Actually, I think I found a problem related to issue #12. Hopefully da06278 fixes this, and that should restore the comment form, too. The give-away was that the comment page is there but it has no title: the name of the comment page is actually undefined. The commit I mentioned should fix that.

The comment form now shows up and seems to work fine. But now I see the "Homepage URL" field doesn't seem to undergo any validation. Simply changing the input type to "url" would at least prevent honest mistakes.

I'm not sure we can do this since Oddmuse still emits XHTML 1.0. Somebody would have to try and report back?

Eh, just one more detail to take care of when you change the output to html5. Thanks for everything!