Vocabulary dictionary

Kanji dictionary

Grammar dictionary

Sentence lookup

test
 

Forums - A blank forum Topic (Resolved)

Top > renshuu.org > Bugs / Problems



avatar

Apparently you can leave the title of a Topic blank and break a few things :D Not sure if there's a zero-width character, they deleted it afterwards, or the validation failed somehow?

7001b505c4db4dbb2430aa37.png

(you can't expand it at all, because the link (title) is missing)


d38399b52f0d31f0cb58f776.png

("Last Post:" is also blank, so you can't access the topic from there either. "View latest post" works.)


The topic in question: https://app.renshuu.org/forums...

d7a1c1c87a7c34c46be3894d.png
0
3 days ago
avatar
Icepick87
Level: 628

The user is new, so it's likely they just didn't post the title. It's accessible in other ways, yes, but no title to click. It would seem more like a flaw in design more than an actual bug.

0
3 days ago
avatar

It normally stops you from posting without a title though.

ffbb97787572186a8f718ca9.png

_

c1815473aaa3ad974610af31.png
0
3 days ago
avatar

Validation is done by the client, right? A bot wouldn’t hit it.

0
3 days ago
avatar

A bot would still need to run a client (not necessarily a full visible browser). I think you'd need to go out of your way to break validation, and I just don't see why anyone making bots would wanna do that. Anyway, this is almost certainly not a bot.


I did figure out how to replicated it. Apparently validation is extremely rudimentary so you can just enter a Space and it allows it... a little embarrassing honestly, no offence to Michael :)

It seems to strip it afterwards, but not when doing the validation. I'll test it a bit more.

6539a71f14bf26676ef9bc48.png

Edit: Looks like you can also leave the body empty. Doesn't matter as much though.

054a9d7dfbbce4738fffccac.png

You just need to strip whitespace when doing the validation. It's a super easy fix. Should take less than a minute. You just add a trim() and that's it.


Edit: There's also no link when you get a point :D

a6a171bd19370da9433a1297.png

The downstream effect is real with these "small" bugs. And yes, I would consider this a bug. At least as a programmer. Although I guess it doesn't really matter what you call it. I can live with "a design flaw that causes bugs".

1
3 days ago
avatar
マイコー
Level: 332

No validation is done on the client side - all client side checks are to help limit hits to the server (where the real validation takes place) when the client can more easily say "hey, please fix this."

That being said, the validation on the forum title specifically did not take advantage of some of the helper code I wrote later (the forums are VERY old), so it missing the trimming of empty space. Should be fixed now.

1
3 days ago
Getting the posts




Top > renshuu.org > Bugs / Problems


Loading the list
Lv.

Sorry, there was an error on renshuu! If it's OK, please describe what you were doing. This will help us fix the issue.

Characters to show:





Use your mouse or finger to write characters in the box.
■ Katakana ■ Hiragana