pengovbr / mod-wssei

32 stars 25 forks source link

Erro ao obter Acompanhamentos Especiais #60

Closed sergiorru closed 6 months ago

sergiorru commented 1 year ago

Descreva o erro Ao executar a chamada para a obtenção de acompanhamentos especiais o endpoint esta retornando erro.


Para reproduzir Efetuar a chamada para endpoint '/acompanhamentoespecial/listar?limit=10&start=0&grupoAcompanhamento=1'


Comportamento esperado Listagem dos acompanhamentos especiais.


Contexto da falha (Por favor, complete a seguinte informação):

Informações adicionais Detalhes do erro:

{ "message": "Slim Application Error", "error": [ { "type": "Error", "code": 0, "message": "Call to a member function getStrNomeMarcador() on array", "file": "\/fonte\/sei\/web\/modulos\/mod-wssei\/rn\/MdWsSeiAcompanhamentoRN.php", "line": 270, "trace": [ "#0 \/fonte\/infra\/infra_php\/InfraRN.php(151): MdWsSeiAcompanhamentoRN->listaAcompanhamentosUnidadeConectado(Object(AcompanhamentoDTO))", "#1 \/fonte\/sei\/web\/modulos\/mod-wssei\/versao\/v2\/MdWsSeiServicosV2.php(1488): InfraRN->__call('listaAcompanham...', Array)", "#2 [internal function]: MdWsSeiServicosV2->{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Array)", "#3 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/Handlers\/Strategies\/RequestResponse.php(41): call_user_func(Object(Closure), Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Array)", "#4 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/Route.php(344): Slim\\Handlers\\Strategies\\RequestResponse->__invoke(Object(Closure), Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Array)", "#5 \/fonte\/sei\/web\/modulos\/mod-wssei\/controlador_ws.php(34): Slim\\Route->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))", "#6 [internal function]: TokenValidationMiddleware->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\Route))", "#7 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/DeferredCallable.php(43): call_user_func_array(Object(TokenValidationMiddleware), Array)", "#8 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\Route))", "#9 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/MiddlewareAwareTrait.php(73): call_user_func(Object(Slim\\DeferredCallable), Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Slim\\Route))", "#10 \/fonte\/sei\/web\/modulos\/mod-wssei\/controlador_ws.php(64): Slim\\Route->Slim\\{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))", "#11 [internal function]: ModuleVerificationMiddleware->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))", "#12 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/DeferredCallable.php(43): call_user_func_array(Object(ModuleVerificationMiddleware), Array)", "#13 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))", "#14 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/MiddlewareAwareTrait.php(73): call_user_func(Object(Slim\\DeferredCallable), Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))", "#15 \/fonte\/sei\/web\/modulos\/mod-wssei\/controlador_ws.php(75): Slim\\Route->Slim\\{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))", "#16 [internal function]: EncodingMiddleware->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))", "#17 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/DeferredCallable.php(43): call_user_func_array(Object(EncodingMiddleware), Array)", "#18 [internal function]: Slim\\DeferredCallable->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))", "#19 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/MiddlewareAwareTrait.php(73): call_user_func(Object(Slim\\DeferredCallable), Object(Slim\\Http\\Request), Object(Slim\\Http\\Response), Object(Closure))", "#20 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/MiddlewareAwareTrait.php(122): Slim\\Route->Slim\\{closure}(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))", "#21 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/Route.php(316): Slim\\Route->callMiddlewareStack(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))", "#22 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/App.php(476): Slim\\Route->run(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))", "#23 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/MiddlewareAwareTrait.php(122): Slim\\App->__invoke(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))", "#24 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/App.php(370): Slim\\App->callMiddlewareStack(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))", "#25 \/fonte\/sei\/web\/modulos\/mod-wssei\/vendor\/slim\/slim\/Slim\/App.php(295): Slim\\App->process(Object(Slim\\Http\\Request), Object(Slim\\Http\\Response))", "#26 \/fonte\/sei\/web\/modulos\/mod-wssei\/controlador_ws.php(90): Slim\\App->run()", "#27 {main}" ] } ] }

caduvieira commented 9 months ago

Reproduzir o problema: 1 - Crie um processo 2 - Adicione um documento 3 - Adicione um marcador no processo 4 - Adicione o processo em acompanhamento especial 5 - Chame o /acompanhamentoespecial/listar?limit=10&start=0&grupoAcompanhamento=1

caduvieira commented 9 months ago

Precisa criar testes para acompanhamento especial com marcadores no processo.