<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">If I don’t specify “reseller_id” as you can see, nothing should happen to it, or ?<div class=""><br class=""></div><div class=""><div class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 24 Feb 2017, at 12:39 PM, Rene Krenn <<a href="mailto:rkrenn@sipwise.com" class="">rkrenn@sipwise.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">it is likely you tried to clear out the "reseller_id" field with the<br class="">PATCH request. that field is mandatory for customercontacts.<br class=""><br class="">users privileged to govern all resellers are allowed to change the<br class="">reseller_id, thats what you observed.<br class=""><br class="">while changing the reseller_id field is supposed to be supported,<br class="">clearing out the field is to be prevented actually. a customer contract<br class="">with empty reseller is a systemcontact; there's a separate api rail for<br class="">that.<br class=""><br class="">regards, rene<br class=""><br class="">On Fri, 2017-02-24 at 12:14 +0800, Walter Klomp wrote:<br class=""><blockquote type="cite" class="">Hi Alex,<br class=""><br class=""><br class="">I made the account used to call the PATCH command a “supervisor” and<br class="">the problem was fixed (even on mr4.5.1)…   I do find this a little<br class="">dangerous to be honest…<br class=""><br class=""><br class="">But… problem solved.<br class=""><br class="">Walter<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 24 Feb 2017, at 12:48 AM, Alex Lutay <<a href="mailto:alutay@sipwise.com" class="">alutay@sipwise.com</a>> wrote:<br class=""><br class="">Hi,<br class=""><br class="">Is it reproducible with the latest mr4.5.3?<br class=""><br class="">Does one customer affected only or all?<br class="">(if one - probably DB issue, if all - we need to check the code<br class="">then).<br class=""><br class="">Can you please provide steps to reproduce it on _clean_ vagrant VM?<br class="">You can find it here:<br class=""><blockquote type="cite" class=""><a href="https://www.sipwise.org/doc/mr4.5.3/spce/ar01s03.html#_vagrant_box_for_virtualbox" class="">https://www.sipwise.org/doc/mr4.5.3/spce/ar01s03.html#_vagrant_box_for_virtualbox</a><br class=""></blockquote><br class="">It will speed up fix a lot here. Thank you!<br class=""><br class="">P.S. I wasn't able to find any similar bugfixes internally.<br class=""><br class="">On 02/23/2017 04:57 PM, Walter Klomp wrote:<br class=""><blockquote type="cite" class="">We’re trying to get REST interface to work in our system.<br class=""> (running mr4.5.1)<br class=""><br class="">Why does this fail ?  Anything more we can do to debug?<br class=""></blockquote>...<br class=""><blockquote type="cite" class="">Feb 23 14:33:46 sipwise ngcp-panel: ERROR: IP=xx.xx.xx.xx<br class="">CALLED=API[PATCH 200]/api/customercontacts/6567<br class="">TX=14A5CD28A1B708D0<br class="">USER=ossuser DATA={} MSG="" LOG="Caught exception in<br class="">NGCP::Panel::Controller::API::CustomerContactsItem->PATCH "Use of<br class="">uninitialized value in numeric ne (!=) at<br class="">/usr/share/perl5/NGCP/Panel/Role/API/CustomerContacts.pm line 102,<br class=""><$fh><br class="">line 1.""<br class=""></blockquote><br class="">-- <br class="">Alex Lutay<br class="">_______________________________________________<br class="">Spce-user mailing list<br class=""><a href="mailto:Spce-user@lists.sipwise.com" class="">Spce-user@lists.sipwise.com</a><br class="">https://lists.sipwise.com/listinfo/spce-user<br class=""><br class=""></blockquote><br class=""><br class="">_______________________________________________<br class="">Spce-user mailing list<br class=""><a href="mailto:Spce-user@lists.sipwise.com" class="">Spce-user@lists.sipwise.com</a><br class="">https://lists.sipwise.com/listinfo/spce-user<br class=""></blockquote><br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>