[ASTPPCOM-518] Can't install addons in ASTPP 4.0 Created: 08/Jun/19  Updated: 01/Apr/21  Resolved: 01/Apr/21

Status: Closed
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: v4.0.2

Type: Bug
Reporter: timur-v Assignee: (Community) DN (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hello,
When I try to install addons "Support Tickets" and "Switch Monitoring" the installation fails (the same way in both cases):

The addon "Account Number Range" was installed successfully.
I'm trying ASTPP 4.0 on a virtual machine.



 Comments   
Comment by meshtask [ 09/Jun/19 ]

Just tested. Same thing is happening on my install. I cannot install any other plugins except "Account Number Range"

Comment by timur-v [ 09/Jun/19 ]

I found what causes this issue. It happens due to incorrect read/write permissions in /var/www/html/astpp/ directory. Owner of those files is root user, so web-server may not write new files there. ASTPP installation script consists this: "chown -Rf www-data.www-data /var/www/html/astpp", but /var/www/html/astpp/ is actually a symbolic link and chown doesn't change symbolic links by default. Files are actually placed in /opt/ASTPP/web_interface/astpp directory.
So, solution for this issue may be either "chown -LRf www-data.www-data /var/www/html/astpp" or "chown -Rf www-data.www-data /opt/ASTPP/web_interface/astpp".
I did this and was able to install addons then.
But I'd prefer to have developers' confirmation that such a solution doesn't create a breach in web server security.

Comment by redbehrend [ 13/Jun/19 ]

can confirm this also fixes importing rates into ASTPP

Comment by Samir Doshi [ 14/Jun/19 ]

Hi @timur-v

The solution which you mentioned make sense and as far as I understand, It will not create a security issue.
However, we will still investigate on it and update script accordingly.

Comment by (Community) DN (Inactive) [ 23/Jun/19 ]

Modified permissions in installation script, Commit: 10fb4b69a72f56a7d40e0ed682cca9292a618016
It will work now.

Comment by hemdip [ 31/Jul/19 ]

@timur-v Issue has beed resolve, please take updated source and verify.

Generated at Sat Feb 10 07:17:53 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.