View Issue Details

IDProjectCategoryView StatusLast Update
0001298bareos-corewebuipublic2024-05-15 15:38
ReporterDragon Assigned Tofrank  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionopen 
PlatformLinuxOSGenToo 
Product Version20.0.0 
Summary0001298: WebUI Login shows PHP-Notices then 404 (Dashboard)
DescriptionIn development mode various PHP warnings/notices are shown on the login page

Notice: compact(): Undefined variable: extras in <webroot>/admin/bareos-webui/vendor/zendframework/zend-view/src/Helper/HeadLink.php on line 403

Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in <webroot>/admin/bareos-webui/vendor/zendframework/zend-i18n/src/Translator/Loader/Gettext.php on line 142

When logging in then ending up with 404 page not found. Looks like after login "<baseurl>/admin/bareos-webui/public/dashboard/" is attempted to be loaded and Apache returns 404. The file really does not exist. It seems as a PHP module so something is wrong.

Apache 2.4 contains this config (besides others):
"""
Alias /admin/bareos-webui <webroot>/admin/bareos-webui/public
<Directory <webroot>/admin/bareos-webui/public>
  AllowOverride None
  Options FollowSymLinks
  # ... authorization parameters for restricted internal access only ...
  RewriteEngine on
  RewriteBase /admin/bareos-webui
  RewriteCond %{REQUEST_FILENAME} -s [OR]
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [NC,L]
  RewriteRule ^.*$ index.php [NC,L]
</Directory>
"""

WebUI is located under "<webroot>/admin/bareos-webui"

Apache logs:
XXX - xxx [04/Jan/2021:14:34:27 +0100] "GET /admin/bareos-webui/public/dashboard/ HTTP/1.1" 404 254
Steps To ReproduceFresh install
Tagswebui

Activities

Skylord

Skylord

2021-02-25 10:09

reporter  

webui-update-dep.patch (2,388 bytes)   
--- composer.json	2021-02-24 21:34:14.255172000 +0100
+++ composer.json	2021-02-24 21:55:09.112190000 +0100
@@ -15,29 +15,29 @@
    ],
    "require": {
       "php": ">=5.3.23",
-      "zendframework/zend-stdlib": "2.4.*",
-      "zendframework/zend-config": "2.4.*",
-      "zendframework/zend-eventmanager": "2.4.*",
-      "zendframework/zend-filter": "2.4.*",
-      "zendframework/zend-serializer": "2.4.*",
-      "zendframework/zend-servicemanager": "2.4.*",
-      "zendframework/zend-json": "2.4.*",
-      "zendframework/zend-i18n": "2.4.*",
-      "zendframework/zend-mvc": "2.4.*",
-      "zendframework/zend-view": "2.4.*",
-      "zendframework/zend-version": "2.4.*",
-      "zendframework/zend-session": "2.4.*",
-      "zendframework/zend-validator": "2.4.*",
-      "zendframework/zend-inputfilter": "2.4.*",
-      "zendframework/zend-form": "2.4.*",
-      "zendframework/zend-loader": "2.4.*",
-      "zendframework/zend-modulemanager": "2.4.*",
-      "zendframework/zend-cache": "2.4.*",
-      "zendframework/zend-log": "2.4.*",
-      "zendframework/zend-console": "2.4.*",
-      "zendframework/zend-http": "2.4.*",
-      "zendframework/zend-escaper": "2.4.*",
-      "zendframework/zend-uri": "2.4.*",
-      "zendframework/zend-navigation": "2.4.*"
+      "zendframework/zend-stdlib": "2.7.*",
+      "zendframework/zend-config": "2.6.*",
+      "zendframework/zend-eventmanager": "2.6.*",
+      "zendframework/zend-filter": "2.7.*",
+      "zendframework/zend-serializer": "2.9.*",
+      "zendframework/zend-servicemanager": "2.7.*",
+      "zendframework/zend-json": "2.6.*",
+      "zendframework/zend-i18n": "2.9.*",
+      "zendframework/zend-mvc": "2.6.*",
+      "zendframework/zend-view": "2.10.*",
+      "zendframework/zend-version": "2.5.*",
+      "zendframework/zend-session": "2.8.*",
+      "zendframework/zend-validator": "2.7.*",
+      "zendframework/zend-inputfilter": "2.7.*",
+      "zendframework/zend-form": "2.8.*",
+      "zendframework/zend-loader": "2.6.*",
+      "zendframework/zend-modulemanager": "2.8.*",
+      "zendframework/zend-cache": "2.8.*",
+      "zendframework/zend-log": "2.9.*",
+      "zendframework/zend-console": "2.7.*",
+      "zendframework/zend-http": "2.5.*",
+      "zendframework/zend-escaper": "2.6.*",
+      "zendframework/zend-uri": "2.5.*",
+      "zendframework/zend-navigation": "2.9.*"
    }
 }
webui-update-dep.patch (2,388 bytes)   
Skylord

Skylord

2021-02-25 10:09

reporter   ~0004092

Got the same errors on php 7.4 - it seems that ZendFramework dependencies are too old. Have updated composer.json in webui root and run "composer install" - working fine now. There are few notices on some pages but not very annoying.
arogge

arogge

2024-05-15 15:38

manager   ~0005932

This was reported for an end-of-life (EOL) version of Bareos.

If you can reproduce this bug against a currently maintained version of
Bareos please feel free to open a new issue against that version at
https://github.com/bareos/bareos/issues

Thank you for reporting this bug and we are sorry it could not be fixed.

Issue History

Date Modified Username Field Change
2021-01-04 14:43 Dragon New Issue
2021-01-04 14:43 Dragon Tag Attached: webui
2021-02-25 10:09 Skylord File Added: webui-update-dep.patch
2021-02-25 10:09 Skylord Note Added: 0004092
2021-04-29 10:58 frank Assigned To => frank
2021-04-29 10:58 frank Status new => assigned
2024-05-15 15:38 arogge Note Added: 0005932
2024-05-15 15:38 arogge Status assigned => closed