RADAR-base / RADAR-Rest-Source-Auth

A simple application to support authorization of wearable devices using OAuth using a webservice with REST Endpoints.
https://radar-base.org/
Apache License 2.0
1 stars 0 forks source link

Project not found in Management Portal #238

Closed Hsankesara closed 8 months ago

Hsankesara commented 11 months ago

Radar-Rest Source Auth cannot fetch the project details from the management portal.

Screenshot 2023-07-26 at 15 41 54

mpgxvii commented 11 months ago

When getting users from radar-jersey, it returns project_not_found error:

ERROR - [404] GET projects/STAGING_PROJECT/users - project_not_found: Project STAGING_PROJECT not found in Management Portal. (HttpApplicationExceptionMapper.kt:30)

This is caused by using the old MP (before MP2.0). The old MP doesn't have the organization structure, so when checking permissions of the user for the project, it fails. This is because it checks the organization first then if the organization is null, it just says the project does not exist.

Added the issue to radar-jersey here: https://github.com/RADAR-base/radar-jersey/issues/75

mpgxvii commented 8 months ago

Solved and fixed in #244 and https://github.com/RADAR-base/radar-jersey/releases/tag/v0.11.0