<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:15:09 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Jira</title>
    <link>https://jira.astppbilling.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.13.3</version>
        <build-number>813003</build-number>
        <build-date>14-01-2021</build-date>
    </build-info>


<item>
            <title>[ASTPPCOM-212] Database Error when trying to save origination rate</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-212</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;Hello,&lt;br/&gt;
I&apos;ve saved origination rates in the past and have 100s of them setup infact. However, I tried to add a new rate this evening and nothing happened.&lt;br/&gt;
I discovered that the AJAX call to origination_rate_save/ was returning an E500 and the error is duplicated below.&lt;/p&gt;

&lt;p&gt;`A Database Error Occurred&lt;/p&gt;

&lt;p&gt;Error Number: 1064&lt;/p&gt;

&lt;p&gt;You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near &apos;net&apos;,&apos;0&apos;,&apos;0&apos;,&apos;0&apos;,&apos;10&apos;,&apos;1&apos;,&apos;1&apos;,&apos;&apos;,&apos;2017-07-15 19:51:40&apos;) ON DUPLICATE KEY UPDATE&apos; at line 1&lt;/p&gt;

&lt;p&gt;Insert into routes (pricelist_id,pattern,comment,status,connectcost,includedseconds,cost,init_inc,inc,trunk_id,creation_date) values(&apos;1&apos;,&apos;^0220.&lt;em&gt;&apos;,&apos;NG T&apos;net&apos;,&apos;0&apos;,&apos;0&apos;,&apos;0&apos;,&apos;10&apos;,&apos;1&apos;,&apos;1&apos;,&apos;&apos;,&apos;2017-07-15 19:51:40&apos;) ON DUPLICATE KEY UPDATE pricelist_id = &apos;1&apos;,pattern = &apos;^0220.&lt;/em&gt;&apos;,comment = &apos;NG T&apos;net&apos;,status = &apos;0&apos;,connectcost = &apos;0&apos;,includedseconds = &apos;0&apos;,cost = &apos;10&apos;,init_inc = &apos;1&apos;,inc = &apos;1&apos;,trunk_id = &apos;&apos;,creation_date = &apos;2017-07-15 19:51:40&apos;&lt;/p&gt;

&lt;p&gt;Filename: /var/www/html/astpp/modules/rates/models/rates_model.php&lt;/p&gt;

&lt;p&gt;Line Number: 355`&lt;/p&gt;

&lt;p&gt;I have done an update 5 mins ago and it did not help.&lt;/p&gt;</description>
                <environment></environment>
        <key id="12032">ASTPPCOM-212</key>
            <summary>Database Error when trying to save origination rate</summary>
                <type id="10201" iconUrl="https://jira.astppbilling.org/secure/viewavatar?size=xsmall&amp;avatarId=10700&amp;avatarType=issuetype">New Feature</type>
                                                <status id="10001" iconUrl="https://jira.astppbilling.org/images/icons/status_generic.gif" description="">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="samir.doshi">Samir Doshi</assignee>
                                    <reporter username="dedayoa">dedayoa</reporter>
                        <labels>
                    </labels>
                <created>Sun, 16 Jul 2017 01:26:28 +0530</created>
                <updated>Thu, 24 Jun 2021 20:34:25 +0530</updated>
                            <resolved>Thu, 1 Apr 2021 19:01:55 +0530</resolved>
                                                    <fixVersion>v3.5</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                    <timespent seconds="9000">2.5h</timespent>
                                <comments>
                            <comment id="12892" author="dedayoa" created="Sun, 16 Jul 2017 02:49:31 +0530"  >&lt;p&gt;OK, so i discovered what the problem is. The &quot;Destination&quot;, stored in the database in column &quot;&lt;b&gt;comment&lt;/b&gt;&quot; does not accept the &quot;&lt;b&gt;&apos;&lt;/b&gt;&quot; - the apostrophe. My guess is that it&apos;s not being properly escaped before being sent to the database or the query builder (if there&apos;s one) has a bug.&lt;/p&gt;</comment>
                            <comment id="12893" author="smrdoshi" created="Tue, 5 Sep 2017 18:04:17 +0530"  >&lt;p&gt;Issue has been fixed in version v3.5. Upgrade to latest version and test it out.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10703" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>212</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10006" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i009xz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>