Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro no endpoint Listar Contextos Órgão #43

Open
viniciusfonseca-trt17 opened this issue Nov 25, 2022 · 2 comments
Open

Erro no endpoint Listar Contextos Órgão #43

viniciusfonseca-trt17 opened this issue Nov 25, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@viniciusfonseca-trt17
Copy link

Descreva o erro
O endpoint {{baseurl}}/contexto/listar/:orgao retorna o erro abaixo:

Slim Application Error
The application could not run because of the following error:

Details
Type: Error
Message: Class 'ContextoRN' not found
File: /opt/sei/web/modulos/mod-wssei/rn/MdWsSeiContextoRN.php
Line: 20
Trace
#0 /opt/infra/infra_php/InfraRN.php(140): MdWsSeiContextoRN->listarContextoConectado(Object(OrgaoDTO))
#1 /opt/sei/web/modulos/mod-wssei/versao/v2/MdWsSeiServicosV2.php(79): InfraRN->__call('listarContexto', Array)
#2 [internal function]: MdWsSeiServicosV2->{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Array)
#3 /opt/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 /opt/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 /opt/sei/web/modulos/mod-wssei/controlador_ws.php(64): Slim\Route->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#6 [internal function]: ModuleVerificationMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#7 /opt/sei/web/modulos/mod-wssei/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(ModuleVerificationMiddleware), Array)
#8 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\Route))
#9 /opt/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 /opt/sei/web/modulos/mod-wssei/controlador_ws.php(82): Slim\Route->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#11 [internal function]: EncodingMiddleware->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#12 /opt/sei/web/modulos/mod-wssei/vendor/slim/slim/Slim/DeferredCallable.php(43): call_user_func_array(Object(EncodingMiddleware), Array)
#13 [internal function]: Slim\DeferredCallable->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Closure))
#14 /opt/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 /opt/sei/web/modulos/mod-wssei/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(122): Slim\Route->Slim\{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))
#16 /opt/sei/web/modulos/mod-wssei/vendor/slim/slim/Slim/Route.php(316): Slim\Route->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#17 /opt/sei/web/modulos/mod-wssei/vendor/slim/slim/Slim/App.php(476): Slim\Route->run(Object(Slim\Http\Request), Object(Slim\Http\Response))
#18 /opt/sei/web/modulos/mod-wssei/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(122): Slim\App->__invoke(Object(Slim\Http\Request), Object(Slim\Http\Response))
#19 /opt/sei/web/modulos/mod-wssei/vendor/slim/slim/Slim/App.php(370): Slim\App->callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))
#20 /opt/sei/web/modulos/mod-wssei/vendor/slim/slim/Slim/App.php(295): Slim\App->process(Object(Slim\Http\Request), Object(Slim\Http\Response))
#21 /opt/sei/web/modulos/mod-wssei/controlador_ws.php(97): Slim\App->run()
#22 {main}

Para reproduzir
Passos para reproduzir o comportamento:

  1. Acesse o endpoint Autenticar via Postman e obtenha um token de autenticação;
  2. Insira o token de autenticação no Environment do Postman.
  3. Execute um HTTP GET no endpoint {{baseurl}}/contexto/listar/:orgao.

Comportamento esperado
Pela documentação do Postman, deveria ser retornado um JSON com os contextos. Exemplo:

{
    "sucesso": true,
    "data": [
        {
            "id": "72",
            "nome": "Contexto 1",
            "descricao": "",
            "base_dn_ldap": "xxx"
        },
        {
            "id": "73",
            "nome": "Contexto 2",
            "descricao": "",
            "base_dn_ldap": "yyy"
        }
    ]
}

Screenshots
erro


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

  • Versão do sistema: SEI 4.0.8, WSSEI 2.0.0;
  • Navegador: Postman
  • Perfil do Usuário: básico
@viniciusfonseca-trt17 viniciusfonseca-trt17 added the bug Something isn't working label Nov 25, 2022
@caduvieira
Copy link
Member

Essa classe ContextoRN não existe mais no SEI 4.0.X. Precisamos verificar se foi removida ou renomeada. Foi removido também qualquer menção no WS SEI/SIP.

@alexandrellemes
Copy link

Bom dia,

Quando irão lançar as correções sem as chamadas da tabela ContextoDTO()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants