Kailona / ehr

Private Electronic Health Records in Nextcloud
GNU Affero General Public License v3.0
54 stars 11 forks source link

Could not resolve OCA\EHR\Controller\FhirController #53

Closed ntimo closed 3 years ago

ntimo commented 3 years ago

Steps to reproduce

  1. Install the App from the AppStore
  2. Configure a fhir server using the default docker setup https://github.com/Kailona/kailona-fhir-server
  3. Configure the fhir server like this: http://fhir:9080/fhir-server/api/v4 username: fihruser password: custom set in "<user name="fhiruser" password="" in the server.xml
  4. Open the EHR tap in Nextcloud
  5. A error will appear that the connection could not be made
  6. In the nextcloud log the following will be written:
    
    OCP\AppFramework\QueryException: Could not resolve OCA\EHR\Controller\FhirController! Class OCA\EHR\Controller\FhirController does not exist/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php - line 126:OC\AppFramework\Utility\SimpleContainer->resolve("OCA\\EHR\\C ... r")/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 455:OC\AppFramework\Utility\SimpleContainer->query("OCA\\EHR\\C ... r")/var/www/html/lib/private/AppFramework/DependencyInjection/DIContainer.php - line 427:OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback("OCA\\EHR\\C ... r")/var/www/html/lib/private/AppFramework/App.php - line 139:OC\AppFramework\DependencyInjection\DIContainer->query("OCA\\EHR\\C ... r")/var/www/html/lib/private/Route/Router.php - line 309:OC\AppFramework\App::main("OCA\\EHR\\C ... r", "search", OC\AppFramew ... {}, { type: "Pat ... "})/var/www/html/lib/base.php - line 1008:OC\Route\Router->match("/apps/ehr/fhir/Patient")/var/www/html/index.php - line 37:OC::handleRequest()
    --

### Expected behaviour
No error should appear in the log and the app should work

### Actual behaviour
The error is written in the nextcloud log

### Server configuration
Nextcloud Docker 20.0.7 Apache image (https://hub.docker.com/layers/nextcloud/library/nextcloud/20.0.7-apache/images/sha256-ba7cf2958602c503fedfd586b735819470d022c54420f7d604685e8cd178160a?context=explore)

**Database:** mariadb 10.5

**List of activated apps:**

Enabled:

Client configuration

Browser: Chrome 88.0.4324.150 (Official Build) (x86_64)

Operating system: macOS Big Sur

ayselafsar commented 3 years ago

Thanks for the report!

I confirmed the bug and will release the fix soon.