Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274680 - Problems installing OTRS-Modules by splitting the otrs directory into hostroot and htdocs
Summary: Problems installing OTRS-Modules by splitting the otrs directory into hostroo...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-19 09:36 UTC by Elias Probst
Modified: 2015-01-21 13:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Probst 2009-06-19 09:36:39 UTC
When installing OTRS modules using the OTRS PackageManager the images installed by the Package go to the wrong location, resulting in missing images for buttons etc. in the webfrontend.

Reproducible: Always

Steps to Reproduce:
1. Install and setup otrs using webapp-config
2. Go to the Admin → PackageManager
3. Install a package which adds an icon to the menu (e.g. FAQ)
4. Logout and login again

Actual Results:  
Only the 'alt'-text of the image/button in the menu is shown

Expected Results:  
The button should be shown as any other button in the menu

Images are searched in /otrs-web/images/Standard/
/otrs-web is an Alias set in the webserver's config for OTRS - it is pointing to the htdocs directory of the OTRS setup.

When OTRS installs an package, the location of files is specified like this in the XML file of the package:
<File Location="var/httpd/htdocs/images/Standard/itsm_service.png" Permission="644" Encode="Base64">BINARY BLOB GOES HERE</File>

This results in having the file in $HOSTROOT while it is expected to be found in $HTDOCS.

This is caused by moving $HTDOCS out of the root directory of OTRS.
So a setup like this looks like this:

HOSTROOT
ScriptAlias /otrs /var/www/localhost/otrs-2.3.4/bin/cgi-bin

HTDOCS
Alias /otrs-web /var/www/localhost/htdocs/tickets (this directory originally resides in the HOSTROOT directory itself but is moved to HTDOCS by the OTRS ebuild)


The most simple solution to this issue would be (if possible) just using a symlink for the HTDOCS directory pointing to the directory var/httpd/htdocs inside the HOSTROOT - so the /otrs-web Alias could still point to a directory outside of an ScriptAlias and files when installing a package would go to the right location.