From 0cea7ca9b26e136f4956ebd4a4d0bbef5a2457e4 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Thu, 17 May 2018 07:32:45 +0200 Subject: [PATCH] TT#36055 Fix code 500 on unauthorized provisioning Change-Id: I0fee5a6e2245ba2a7a2792abc33809242c8962bc --- lib/NGCP/Panel/Controller/Device.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NGCP/Panel/Controller/Device.pm b/lib/NGCP/Panel/Controller/Device.pm index 14cc06ee06..766a80482c 100644 --- a/lib/NGCP/Panel/Controller/Device.pm +++ b/lib/NGCP/Panel/Controller/Device.pm @@ -1121,7 +1121,7 @@ sub dev_field_config :Chained('/') :PathPart('device/autoprov/config') :Args() { ($c->user_exists && ($c->user->roles eq "admin" || $c->user->roles eq "reseller")) || defined $c->request->env->{SSL_CLIENT_M_DN} ) { - $c->log->notice("unauthenticated config access to id '$id' via ip " . $c->req->address); + $c->log->info("unauthenticated config access to id '$id' via ip " . $c->req->address); $c->response->content_type('text/plain'); if($c->config->{features}->{debug}) { $c->response->body("403 - unauthenticated config access"); @@ -1181,7 +1181,7 @@ sub dev_field_config :Chained('/') :PathPart('device/autoprov/config') :Args() { $dn = lc($dn); $dn =~ s/[:\-]//g; if (index($dn, $id) == -1) { - $c->log->notice("unauthorized config access to id '$id' from dn '$dn' via ip '$ip'"); + $c->log->info("unauthorized config access to id '$id' from dn '$dn' via ip '$ip'"); $c->response->content_type('text/plain'); if($c->config->{features}->{debug}) { $c->response->body("403 - unauthorized config access");