munkireport / munkireport-php

A reporting tool for munki
MIT License
392 stars 138 forks source link

Apps Version Report - Space in app name - Forbidden, You don't have permission to access this resource. #1524

Open davisriglsd opened 1 year ago

davisriglsd commented 1 year ago

Having issues with data in reports when the app to track has a space in the name. Which is most Adobe products, DetectX Swift, Cricut Design Space and a few others. The apps will appear in the Apps Version Report with no data. Clicking on the menu to show "known versions of the app" results in a page that says "Forbidden. You don't have permission to access this resource."

If I change my .yml file and replace the space with an underscore the apps list will show the various versions available in the module, but then clicking on the menu or any of the versions available to see the devices results in an empty list.

Before: (with space)

0:
    app1: {appName: "Adobe Acrobat", widget: "app"}
    app2: {appName: "Adobe Acrobat Reader DC", widget: "app"}
    app25: {appName: "Creative Cloud", widget: "app"}

Result: with space

After: (without space)

0:
    app1: {appName: "Adobe_Acrobat", widget: "app"}
    app2: {appName: "Adobe_Acrobat_Reader_DC", widget: "app"}
    app25: {appName: "Creative_Cloud", widget: "app"}

Result: with_underscore

no data in table
miawri commented 1 year ago

I'm experiencing this issue too.

precursorca commented 11 months ago

Hmm, I am using 5.8.0.4284 with PHP 8.2.7 on macOS 13.6 and don't see this issue.

davisriglsd commented 11 months ago

Hmm, I wonder if it is time to compare Apples to Oranges. I am using the Docker image with PHP Version 8.2.7, MySql version 5.7.42 on a Ubuntu Server.

tuxudo commented 11 months ago

I too do not have this issue when using the provided sample URL. My guess is that your web server doesn't like it or is configured incorrectly. For reference, I'm using nginx

flammable commented 11 months ago

@davisriglsd and I are both using Docker, so it's possible something needs to be adjusted for the bundled version of Apache.

bamtan commented 6 months ago

Also seeing this with the latest version of the Docker deployment (from the Wiki) - version 5.8.0.4284

Edit: Manually mapped the .htaccess file in Docker from sphen13's PR, working now. Thank you!