Community discussions

MikroTik App
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26385
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: v6.40.4 [current]

Mon Nov 06, 2017 9:43 am

I think I found a TR069 bug.

If a DHCP hostname has a space (or possibly a special character) on the end (doesn't show up in winbox in the name, but shows up if I print the names via scripting), the MikroTik makes a malformed request to the TR069 ACS, if the Device.Host table is requested by the ACS, which contains those host names.

This crashes the ACS (GenieACS in this case).

If I delete the two DHCP leases on the MikroTik that are associated with devices with the space or special character at the end of the hostname, TR069 works perfectly.
Can you make a support ticket?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: v6.40.4 [current]

Mon Nov 06, 2017 11:30 am

Consult with your ACS provider if they are thinking of fixing the issue of special characters in hostnames, such as spaces. Also, it could be useful if you could sniff the exchange to see what exactly is sent to your ACS and send that to support.
 
mducharme
Trainer
Trainer
Posts: 1777
Joined: Tue Jul 19, 2016 6:45 pm
Location: Vancouver, BC, Canada

Re: v6.40.4 [current]

Mon Nov 06, 2017 11:39 pm

Can you make a support ticket?
Done.
Consult with your ACS provider if they are thinking of fixing the issue of special characters in hostnames, such as spaces. Also, it could be useful if you could sniff the exchange to see what exactly is sent to your ACS and send that to support.
I don't think it's an issue with the ACS. The XML is initially parsed by libxmljs (part of node.js) as soon as it arrives, and libxmljs fails to parse the reply from the MikroTik because it says it is invalid XML, causing GenieACS to crash since it relies on libxmljs. Perhaps it is an issue with some special character not being escaped or something. I would think it is more likely a bug in the XML that the MikroTik generates rather than the libxmljs module itself. I had encountered a bug like this before with special characters in the WPA2 key, where the MikroTik would generate a blank TR069 request to the ACS, causing a malfunction.

Spaces in the middle of hostnames appear to cause no issue, so I am not sure if the character at fault is a space or something else, it only happens with a few devices where such things appear at the end of the hostname. It might actually be a carriage return or a line feed or something, I might have to use a script to read the value of the character at fault.
 
User avatar
strods
MikroTik Support
MikroTik Support
Topic Author
Posts: 1627
Joined: Wed Jul 16, 2014 7:22 am
Location: Riga, Latvia

Re: v6.40.4 [current]

Tue Nov 07, 2017 11:00 am

Version 6.40.5 has been released:
viewtopic.php?f=21&t=127485

Who is online

Users browsing this forum: eworm, jprietove, peri, txfz and 61 guests