Type |
Bug
|
Priority |
Normal
|
Assignee | |
Version |
tigase-server-8.2.0, tigase-server-8.1.2
|
Related
Issue Votes (0)
Watchers (0)
Type |
Bug
|
Priority |
Normal
|
Assignee | |
Version |
tigase-server-8.2.0, tigase-server-8.1.2
|
Steps to reproduce:
<subject/>
after initial presence)<message/>
packet with<subject/>
being sent.Initial analysis: While this issue was reported earlier (#issue #103) and fixed in commit:c7b63584 the problem exists and is most likely a result of repository rework (switch from UserRepository to dedicated MUC repository). Previously in MUCDao we were also calling
setSubject();
when creating the room. Currently call tosetSubject();
doesn't happen without actually changing the room, and without itsubject_creator_nick
andsubject_date
are not populated in the database when persisting the room.Proposed solution(s):
tigase.muc.modules.PresenceModuleImpl#processEntering
method responsible for generating the message (around L617) so in case of missing subject/subjectCreator/SubjectDate it would simply generate stanza with empty subject and would useroom.getCreationDate()
as a fallback.