[ASTPPCOM-517] Origination Rates Import doesn't work in ASTPP 4.0 Created: 08/Jun/19  Updated: 01/Apr/21  Resolved: 01/Apr/21

Status: Done
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature
Reporter: timur-v Assignee: Samir Doshi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hello,
Tariff -> Origination Rates - > Import
A correctly formed file is not accepted:

For that test I took the file downloaded from ASTPP itself ("Get sample file" section on the same page in ASTPP 4.0 demo).
Here is the test file content:

Meantime in demo http://latest.astppbilling.org/rates/origination_rate_import/ this feature works fine.
My instance of ASTPP 4.0 is working on virtual machine.



 Comments   
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 download rates and 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 Samir Doshi [ 14/Jun/19 ]

Bug is duplicate of ASTPPCOM-518

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