[Spce-user] Can't delete registration from API
Alex Lutay
alutay at sipwise.com
Mon Apr 25 03:58:34 EDT 2022
Hi Jon,
The issue has been confirmed and reported internally as TT#173300.
Thank you for your bugreport!
On 4/16/22 23:35, Jon Bonilla (Manwe) wrote:
> mr9.5.4 with ignore_auth_realm set to yes.
>
> When trying to delete some permanent registrations from the API I get an error:
>
> ERROR: IP=127.0.0.1 CALLED=API[DELETE
> 200]/api/subscriberregistrations/ulcx-623f4cef-628-6
> LOG="Caught exception in
> NGCP::Panel::Controller::API::SubscriberRegistrationsItem->DELETE "Use of
> uninitialized value in concatenation (.) or string at
> /usr/share/perl5/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm line
> 204."" DURATION=1.148773
>
>
> I had to change the controller this way:
>
> sub delete_item {
> my ($self, $c, $item) = @_;
>
> my $sub = $self->subscriber_from_item($c, $item);
> return unless($sub);
> #my $aor = $item->username . '@' . $item->domain;
> my $aor = $item->username;
>
>
> Shouldn't it be aware of ignore_auth_realm?
--
Alex Lutay
More information about the Spce-user
mailing list