View Issue Details

IDProjectCategoryView StatusLast Update
0006166unrealircdpublic2022-08-29 08:56
Reporteradamus1red Assigned To 
PrioritylowSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version6.0.4 
Summary0006166: Chathistory fails when target is a nickname
DescriptionWhen requesting a chathistory with the BEFORE subcommand on a nickname unrealircd returns a INVALID_TARGET failure message.
Steps To ReproduceUsing gamja connect to a websocket port.
Open a new chat or recieve a new chat message.
gamja will request chathistory.
failure message generated.
Additional InformationReported to gamja developers who indicated it was a server issue. https://todo.sr.ht/~emersion/gamja/145

Raw Log:
CAP REQ :account-notify away-notify batch chghost echo-message extended-join invite-notify labeled-response message-tags multi-prefix sasl server-time setname draft/chathistory draft/extended-monitor
:irc.lan CAP terst ACK :account-notify away-notify batch chghost echo-message extended-join invite-notify labeled-response message-tags multi-prefix sasl server-time setname draft/chathistory draft/extended-monitor
<MOTD, etc>
<Get message from adamus1red>
MONITOR + adamus1red
@label=2 WHO adamus1red %tfhnrua,0
@label=3 CHATHISTORY BEFORE adamus1red timestamp=2022-08-22T10:45:01.632Z 50
:irc.lan 730 terst :adamus1red!~M@this.is.my.vhost
@label=2 :irc.lan BATCH +QrRa85QmK7yw4QMO9cbOg5 labeled-response
@batch=QrRa85QmK7yw4QMO9cbOg5 :irc.lan 354 terst 0 ~M this.is.my.vhost adamus1red Hrs* adamus1red :Mario
@batch=QrRa85QmK7yw4QMO9cbOg5 :irc.lan 315 terst adamus1red :End of /WHO list.
:irc.lan BATCH -QrRa85QmK7yw4QMO9cbOg5
@label=3 :irc.lan FAIL CHATHISTORY INVALID_TARGET BEFORE adamus1red :Messages could not be retrieved, not an existing channel
TagsNo tags attached.
3rd party modules

Activities

syzop

2022-08-29 08:56

administrator   ~0022626

I suppose it is a similar situation to https://github.com/ircv3/ircv3-specifications/issues/437#issuecomment-981057377 (when a channel is not +H)

We could change it in UnrealIRCd to do the same as that case, send an empty batch.

Issue History

Date Modified Username Field Change
2022-08-22 13:08 adamus1red New Issue
2022-08-29 08:56 syzop Note Added: 0022626