View Issue Details

IDProjectCategoryView StatusLast Update
0002074unrealircdpublic2005-02-26 18:57
ReporterZell Assigned Tosyzop  
PrioritynormalSeveritytrivialReproducibilityN/A
Status resolvedResolutionfixed 
PlatformallOSallOS Versionall
Product Version3.2.1 
Fixed in Version3.2.3 
Summary0002074: illegal character in nickname bug
DescriptionInputting a ~ at the start of your nickname causes the "illegal characters" message to be sent incorrectly (doesnt show you what the invalid nick was)

Inputting a ~ in the middle of the nick causes the server to negate input past the ~ mark (Example: /nick Ze~ll changes your nick to Ze). This is a bug since the illegal character does not fault the entire nick. Im thinking this bug is related to how the ~ is used in the code...
Additional InformationTesting with a normal illegal character:
NICK :&Zell
432 Zell &Zell :Erroneous Nickname: Illegal characters
Testing with the ~ character:
NICK :~Zell
432 Zell :Erroneous Nickname: Illegal characters
Testing with the ~ in the middle:
NICK :Ze~ll
<-:Zell![censored]@[censored] NICK :Ze
TagsNo tags attached.
3rd party modules

Activities

AngryWolf

2004-09-16 04:44

reporter   ~0007662

The theory is: how many characters can we accept from the given nickname starting from the first character? If 0, deny the nick, otherwise truncate the nickname. I don't think that should be a bug.

syzop

2004-09-16 18:38

administrator   ~0007663

@your second thing with ~ in middle of nick
As angrywolf explained, this is how we made things work indeed... with that ~ gets threated the same as with any other illegal character. Only when it's the first character that is illegal it gets completely denied since we can't do anything with it.

I'm personally not too keen on always denying the whole NICK in case of an invalid character somewhere (except 1st pos.), I noticed some servers doing this but I find it kinda inconsisitent.. for example, other 'changes' are still silently done, like '/nick aaaaaaaaaaaaaaaaabbbbbbbbbbbbcccccccc' still gets you nick 'aaaaaaaaaaaa' etc. I think our current behavior is just fine.

Zell

2004-09-16 20:45

reporter   ~0007664

Agreed. Yet do you notice how the Invalid nickname is not reported back to you if the '~' is the first character?

codemastr

2004-09-16 21:00

reporter   ~0007665

I think he is referring to:

NICK :&Zell
432 Zell &Zell :Erroneous Nickname: Illegal characters
Testing with the ~ character:
NICK :~Zell
432 Zell :Erroneous Nickname: Illegal characters
Testing with the ~ in the middle:

In the first case, it echoed back &Zell, but it does not echo back ~Zell which does seem to be a bug.

syzop

2004-09-16 21:29

administrator   ~0007667

don't worry, I did notice... I was specificly talking about the second thing. The 1st issue is obvious of course, hence.. I didn't even bother to comment on it :p

codemastr

2004-09-18 22:58

reporter   ~0007715

This is interesting. Apparently, ~ is handled separately from the other checks, and I can't understand why. Everything else is handled by do_nick_name. But ~ is handled before all that. We find the first ~ and set it to NULL. I can't see any reason for this. It's really strange because it seems other IRCds do it the same way! I think the solution is just to move the ~ check to do_nick_name just like everything else. Unless anyone sees any reason why it is the way it is?

NOTE: The way it is, would allow SVSNICK to set a nick with a ~ in it which is IMHO pretty bad.

w00t

2004-09-21 01:25

reporter   ~0007746

I know nothing, but would that have anything to do with the whole "no ident, prefixing with '~'" thing...

syzop

2004-09-21 02:12

administrator   ~0007747

(w00t: no idea, but it's old [there are a few private bugnotes which you can't see here])

I've been working on 0002070, I'll also fix this ~ issue when I'm at it.

w00t

2004-09-21 02:17

reporter   ~0007748

I got an access denied on 002070 - just so you know :p

syzop

2004-09-21 02:22

administrator   ~0007749

yes, it's marked private so we don't get any w00t-replies *grin* ;).

w00t

2004-09-21 02:25

reporter   ~0007750

Am I really that bad? :/

syzop

2004-09-21 02:31

administrator   ~0007751

nah ;).
[anyway, I'm off to bed :p]

syzop

2005-02-26 18:57

administrator   ~0009326

Fixed in .191:
- Nicks with ~ are now also not cutoff anymore but rejected like any other illegal char (0002074).

Issue History

Date Modified Username Field Change
2004-09-16 01:34 Zell New Issue
2004-09-16 04:44 AngryWolf Note Added: 0007662
2004-09-16 18:38 syzop Note Added: 0007663
2004-09-16 20:45 Zell Note Added: 0007664
2004-09-16 21:00 codemastr Note Added: 0007665
2004-09-16 21:29 syzop Note Added: 0007667
2004-09-18 22:58 codemastr Note Added: 0007715
2004-09-21 01:25 w00t Note Added: 0007746
2004-09-21 02:12 syzop Note Added: 0007747
2004-09-21 02:17 w00t Note Added: 0007748
2004-09-21 02:22 syzop Note Added: 0007749
2004-09-21 02:25 w00t Note Added: 0007750
2004-09-21 02:31 syzop Note Added: 0007751
2005-02-26 18:57 syzop Status new => resolved
2005-02-26 18:57 syzop Fixed in Version => 3.2.3
2005-02-26 18:57 syzop Resolution open => fixed
2005-02-26 18:57 syzop Assigned To => syzop
2005-02-26 18:57 syzop Note Added: 0009326