Skip to content

TXT record not properly translated to textAttributes #13

@annovanvliet

Description

@annovanvliet

The key-values pairs in a TXT record are not always properly translated to a Map with the correct textAttributes, when the values contain white-spaces.

IN:
tester1@mymachine._presence._tcp.local. 4500 IN TXT "last=van Tester" "hash=SHA-1" "status=avail" "ver=NfJ3flxICtbypursw=" "msg=A Message with whitespace !" "node=http://www.igniterealtime.org/projects/smack" "email=null" "1st=Test1" "port.p2ppj=2300" "txtvers=1"

OUT:
registerService Services Successfully Registered: Service ("tester1@mymachine._presence._tcp.local." can be reached at "MYMACHINE.local." [MYMACHINE.local./192.168.2.9, MYMACHINE.local./fe80:0:0:0:e5c1:5739:49ad:3b0c] on port 2300
TXT: last="van", Tester="", hash="SHA-1", status="avail", ver="NfJ3flI83zSdUDzCEICtbypursw=", msg="A", Message="",

When browsing through the code, I would say that the error is in the split function of the ServiceInstance. A boolean 'inQuote' is declared and set, but not used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions