<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I’m very new to RT and am trying to write a python script to create a ticket in my RT database. The crux of my problem lies in non-alphanumeric characters. Submitting the ticket works fine with all the fields that have only alphanumeric
characters, but I have some fields with non-alphanumeric characters and those submissions return to me “Error 409 Syntax Error”.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am using python-rtkit to work with REST from my script. To try and solve this problem I have corresponded with the person who maintains python-rtkit to make sure that it wasn’t a bug in python-rtkit or my misuse of the module (<a href="https://github.com/z4r/python-rtkit/issues/31">https://github.com/z4r/python-rtkit/issues/31</a>
, you can find a copy of my script in this thread for reference). The conclusion reached at the end of that discussion was that I would need to upgrade my install of RT from its current version of 3.6.6 to 4.x. However I have discovered from my superior
(who is in charge of our install of RT) that that isn’t an option. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">After I tried that I tried to poke around and find some documentation on Error 409 but was unable to find any documentation of RT’s errors anywhere but WAS able to find a correspondence for a similar issue (<a href="http://www.gossamer-threads.com/lists/rt/users/95179?search_string=REST%20syntax;#95179">http://www.gossamer-threads.com/lists/rt/users/95179?search_string=REST%20syntax;#95179</a>)
unfortunately it is for a different version of RT (3.8.x) and the suggested fix involved a line in REST.pm that doesn’t exist in my install of RT. Which brings me to posting in this mailing list.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m wondering if there’s a fix similar to the other one posted in the mailing list (see second link in this post) for RT3.6.6 that I can use to enable the creation of tickets via an external script without having to upgrade RT or remove
those special characters<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m using RTv3.6.6 and the server is on Red Hat 4.1.2-54 and Apache 2.2.3. If you need any additional details, please ask.
<o:p></o:p></p>
</div>
<br>-<br />
The information contained in this message is privileged and confidential. It is intended only for the recipient or entity listed above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to the message and promptly deleting it from your computer.<br />
<br />
NOTICE TO RECIPIENT(S) OF INFORMATION: <br />
Information disclosed to you pertaining to certain conditions, such as treatment for alcohol or drug abuse, HIV/AIDS and other sexually transmitted diseases, behavioral health, and genetic marker information is protected by various federal and state laws which prohibit any further disclosure of this information by you without the express written consent of the person to whom it pertains or as otherwise permitted by such laws. Any unauthorized further disclosure in violation of state or federal law may result in a fine or jail sentence or both. A general authorization for the release of medical or other information is NOT sufficient consent for release of these types of information. The federal rule at 42 CFR Part 2 restricts use of the information disclosed to criminally investigate or prosecute any alcohol or drug abuse patient.</body>
</html>