<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Server may crush when working with strings]]></title><description><![CDATA[<p dir="auto">We are planning to use NetXMS with our custom push-type counters. All numeric counters seem to work well, but string one has some problems.</p>
<p dir="auto">First of all, they are limited to 255 chars (according to database configuration). Moreover, they can cause server to crush due to lack of string NULL-terminator.</p>
<p dir="auto">Way to reproduce:</p>
<ol>
<li>Create DCI, Parameter:Test, Type: string; Origin: Push Agent</li>
<li>Excute:</li>
</ol>
<blockquote>
<p dir="auto">C:\NetXMS\bin&gt;nxpush.exe -H localhost -u user -P pass host.local:Test=123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789</p>
</blockquote>
<p dir="auto">(it is string with 300+ symbols)<br />
3) Open "Last values" -- here you will see probably all of string<br />
4) Open "Show history" -- here are 2 possibilities:<br />
   a) server crush and you wont see anything<br />
   b) you are lucky to see first 127 symbols and a bunch of garbage from server memory till first NULL-symbol</p>
<p dir="auto">Server 1.0.4, Windows; DB: MSSQL</p>
<p dir="auto">In spite of server crush, Is there a way work with strings longer than 127 symbols?</p>
]]></description><link>https://forum.netxms.org/topic/993/server-may-crush-when-working-with-strings</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:17:09 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/993.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Oct 2010 19:54:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Server may crush when working with strings on Tue, 19 Oct 2010 07:57:52 GMT]]></title><description><![CDATA[<p dir="auto">It's because server not working with UNICODE texts. All texts coming from client (in UNICODE) converted to server's code page, which is set by CodePage parameter in netxmsd.conf. You can try to set codepage to UTF-8, but it may or may not work.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4547</link><guid isPermaLink="true">https://forum.netxms.org/post/4547</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 19 Oct 2010 07:57:52 GMT</pubDate></item><item><title><![CDATA[Reply to Server may crush when working with strings on Mon, 18 Oct 2010 13:31:03 GMT]]></title><description><![CDATA[<p dir="auto">Hello again!</p>
<p dir="auto">I'm not sure weather it's a new bug or it has been already fixed, so I decided to write about it anyway.</p>
<p dir="auto">When we try to set description of any DCI with non-english and non-russian language the description is saved as "?" symbols, for example: نوع محل or 测试服务 will be saved as "????".</p>
<p dir="auto">Same behavior in "Parameter" field of DCI.</p>
]]></description><link>https://forum.netxms.org/post/4545</link><guid isPermaLink="true">https://forum.netxms.org/post/4545</guid><dc:creator><![CDATA[Mongi]]></dc:creator><pubDate>Mon, 18 Oct 2010 13:31:03 GMT</pubDate></item><item><title><![CDATA[Reply to Server may crush when working with strings on Fri, 08 Oct 2010 20:21:36 GMT]]></title><description><![CDATA[<p dir="auto">Character escaping bug fixed as well. I agree that we should switch to nvarchar from varchar in MS SQL, and we definitely will do that, but it's a major change, which will require careful examination of many SQL statements within existing code.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4521</link><guid isPermaLink="true">https://forum.netxms.org/post/4521</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 08 Oct 2010 20:21:36 GMT</pubDate></item><item><title><![CDATA[Reply to Server may crush when working with strings on Fri, 08 Oct 2010 18:19:29 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for fast reply!</p>
<p dir="auto">In addition, there is another problem with strings: some special chars get escaped on push, but never decoded in History.</p>
<p dir="auto">For example:</p>
<blockquote>
<p dir="auto">C:\NetXMS\bin&gt;nxpush.exe -H localhost -u user -P pass host.local:Test=\\//!@#$%^&amp;*</p>
</blockquote>
<p dir="auto">Will be saved and showed as</p>
<blockquote>
<p dir="auto">#5C#5C//!@#23$#25&amp;*</p>
</blockquote>
<p dir="auto">Also, if you add non-english characters, then they are showed as they were UTF8 encoded, so "ЙЦУКЕН" will become "Р<img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/2122.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--tm" style="height:1.4em;width:auto;vertical-align:middle" title="™" alt="™" />Р¦РЈРљР•Рќ". You are using simple varchar type in MSSQL in order to store values and it will be better to switch to nvarchar, or there are limitations from other DB engines?</p>
]]></description><link>https://forum.netxms.org/post/4520</link><guid isPermaLink="true">https://forum.netxms.org/post/4520</guid><dc:creator><![CDATA[Mongi]]></dc:creator><pubDate>Fri, 08 Oct 2010 18:19:29 GMT</pubDate></item><item><title><![CDATA[Reply to Server may crush when working with strings on Fri, 08 Oct 2010 08:57:17 GMT]]></title><description><![CDATA[<p dir="auto">I have fixed this bug. Fix will be included in next release.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/4513</link><guid isPermaLink="true">https://forum.netxms.org/post/4513</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 08 Oct 2010 08:57:17 GMT</pubDate></item><item><title><![CDATA[Reply to Server may crush when working with strings on Thu, 07 Oct 2010 14:46:48 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for the report, we will check it ASAP.</p>
]]></description><link>https://forum.netxms.org/post/4512</link><guid isPermaLink="true">https://forum.netxms.org/post/4512</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Thu, 07 Oct 2010 14:46:48 GMT</pubDate></item></channel></rss>