unable to locate component mapping file in wordpress

Smarter Balanced Portal
Post Reply
sameer
Posts: 12
Joined: Wed Oct 29, 2014 11:59 am

unable to locate component mapping file in wordpress

Post by sameer » Fri Oct 31, 2014 8:35 am

We have portal code to read component mapping file in file front-page.php (line number ~84)
$lines = file('/var/www/etc/component_mapping.txt', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
But the physical file is missing in the codebase. Where do we find this one?

User avatar
ramilevy
Posts: 160
Joined: Thu Jun 27, 2013 1:07 am

Re: unable to locate component mapping file in wordpress

Post by ramilevy » Mon Nov 03, 2014 10:26 pm

Hello Sameer,

Please have a look at the README in Portal (https://bitbucket.org/sbacoss/portal_release/overview). You will notice near the bottom there are three steps, including a crontab that needs to be configured. That crontab goes out to the Program Management and Permissions components and populates that file with the proper info.

You will find these scripts in the Administrative repository:
https://bitbucket.org/sbacoss/administr ... at=default
Note that the current version of the dump_component_mapping.pl file has URLs which will need to change to match your environment.

-Rami

unger.james
Posts: 13
Joined: Mon Oct 13, 2014 1:42 pm

Re: unable to locate component mapping file in wordpress

Post by unger.james » Wed Nov 05, 2014 2:31 pm

Hi,

I also had to add oauth2 functionality to the dump script since it talks to progman and needs auth. Maybe there is another way around this?

If folks want my modified version let me know.

thanks,

James

dharmeshmodi
Posts: 6
Joined: Thu Oct 30, 2014 8:47 am

Re: unable to locate component mapping file in wordpress

Post by dharmeshmodi » Wed Nov 12, 2014 2:24 pm

Hi James,

It will be great if you will share the oauth 2.0 setup for openam.

I am facing issue while deploying permission component as machine to machine call uses oauth 2.0.

Regards,
Dharmesh Modi

Post Reply