<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SDK 9.7P1 cifs-session-file-get-iter crashing on special charctor \005 &amp;quot;ENQ&amp;quot; in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/SDK-9-7P1-cifs-session-file-get-iter-crashing-on-special-charctor-005-quot-ENQ/m-p/157833#M3065</link>
    <description>&lt;P&gt;We have run into an issue with cifs-session-file-get-iter crashing.&amp;nbsp; We have a cifs share that is appending "^EQ30lsldxJoudresxAaaqpcawXc" to the end of the file name.&amp;nbsp; A search for&amp;nbsp; Q30lsldxJoudresxAaaqpcawXc explains that it is a windows feature "Created by Indexing service on images" or "Alternate Data Streaming" not sure which applies or if they are saying the same thing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result is a crash of the command:&lt;/P&gt;
&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "./cifs_sessions_get_iter.py", line 47, in &amp;lt;module&amp;gt;&lt;BR /&gt;xo = s.invoke_elem(api)&lt;BR /&gt;File "/data/netapp/netapp-manageability-sdk-9.7P1/lib/python/NetApp/NaServer.py", line 518, in invoke_elem&lt;BR /&gt;return self.parse_xml(xml_response)&lt;BR /&gt;File "/data/netapp/netapp-manageability-sdk-9.7P1/lib/python/NetApp/NaServer.py", line 715, in parse_xml&lt;BR /&gt;p.Parse(xmlresponse, 1)&lt;BR /&gt;xml.parsers.expat.ExpatError: not well-formed (invalid token): line 4, column 377&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Using python 2.7 and 3.6&lt;/P&gt;
&lt;P&gt;I was able to work around this by adding a line of code at line 504 to remove the special charter.&amp;nbsp; I am figuring if one broke it the rest might also so I am pruning the special charters before the xml parser in NaServer.py:&lt;/P&gt;
&lt;P&gt;xml_response = re.sub('[\000-\031]','',xml_response)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there another way to doing this without modifying NaServer.py?&lt;/P&gt;
&lt;P&gt;If not can I have your recommendations?&lt;/P&gt;
&lt;P&gt;Maybe a fix can be put in to process special charters?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 11:00:38 GMT</pubDate>
    <dc:creator>AllenTR</dc:creator>
    <dc:date>2025-06-04T11:00:38Z</dc:date>
    <item>
      <title>SDK 9.7P1 cifs-session-file-get-iter crashing on special charctor \005 "ENQ"</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/SDK-9-7P1-cifs-session-file-get-iter-crashing-on-special-charctor-005-quot-ENQ/m-p/157833#M3065</link>
      <description>&lt;P&gt;We have run into an issue with cifs-session-file-get-iter crashing.&amp;nbsp; We have a cifs share that is appending "^EQ30lsldxJoudresxAaaqpcawXc" to the end of the file name.&amp;nbsp; A search for&amp;nbsp; Q30lsldxJoudresxAaaqpcawXc explains that it is a windows feature "Created by Indexing service on images" or "Alternate Data Streaming" not sure which applies or if they are saying the same thing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result is a crash of the command:&lt;/P&gt;
&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "./cifs_sessions_get_iter.py", line 47, in &amp;lt;module&amp;gt;&lt;BR /&gt;xo = s.invoke_elem(api)&lt;BR /&gt;File "/data/netapp/netapp-manageability-sdk-9.7P1/lib/python/NetApp/NaServer.py", line 518, in invoke_elem&lt;BR /&gt;return self.parse_xml(xml_response)&lt;BR /&gt;File "/data/netapp/netapp-manageability-sdk-9.7P1/lib/python/NetApp/NaServer.py", line 715, in parse_xml&lt;BR /&gt;p.Parse(xmlresponse, 1)&lt;BR /&gt;xml.parsers.expat.ExpatError: not well-formed (invalid token): line 4, column 377&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Using python 2.7 and 3.6&lt;/P&gt;
&lt;P&gt;I was able to work around this by adding a line of code at line 504 to remove the special charter.&amp;nbsp; I am figuring if one broke it the rest might also so I am pruning the special charters before the xml parser in NaServer.py:&lt;/P&gt;
&lt;P&gt;xml_response = re.sub('[\000-\031]','',xml_response)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there another way to doing this without modifying NaServer.py?&lt;/P&gt;
&lt;P&gt;If not can I have your recommendations?&lt;/P&gt;
&lt;P&gt;Maybe a fix can be put in to process special charters?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:00:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/SDK-9-7P1-cifs-session-file-get-iter-crashing-on-special-charctor-005-quot-ENQ/m-p/157833#M3065</guid>
      <dc:creator>AllenTR</dc:creator>
      <dc:date>2025-06-04T11:00:38Z</dc:date>
    </item>
  </channel>
</rss>

