Last Updated: 12/29/2011



NEXT EMAIL
From: Mendis, Michael E. Sent: Thursday, December 29, 2011 10:51 AM To: Peter Beninato; i2b2 AUG Members Subject: Re: SOLUTION -i2b2 - v1.6_02 - webclient - admin - Requires ADMIN role
Peter,
Glad that it working for you now. We are in the process of updating some the documentation based on your experience to make it easier to understand for other users.
Thanks again
mike

From: Peter Beninato Sent: Wednesday, December 28, 2011 7:20 PM To: Peter Beninato; i2b2 AUG Members Subject: RE: SOLUTION -i2b2 - v1.6_02 - webclient - admin - Requires
ADMIN role
Whoops... if this step is necessary...
Step 3) Edit index.php
//$pmURL = "http://127.0.0.1:8080/i2b2/rest/PMService/getServices";
$pmURL = "http://127.0.0.1:9090/i2b2/rest/PMService/getServices";
Peter

On 12/28/11 6:37 PM, Peter Beninato wrote:
Hi,
Below are the steps to get the ADMIN site available via the thinclient. Please note that some of the
scripting (sql) is geared for Oracle, but easily modified.
Please consider modifying the code for future editions so others won't have to struggle with this.
For instance, the INSERT does not exist in:
i2b2\v1_6_02\i2b2createdb?1602\edu.harvard.i2b2.data\Release_1?6\NewInstall\Pmdata\scripts or i2b2\v1_6_02\i2b2createdb?1602\edu.harvard.i2b2.data\Release_1?6\Upgrade\Pmdata\scripts
Also the project_management_installation_guide.pdf should probably be edited too.
The steps to get the ADMIN site via the thin client is as follows:
1) INSERT INTO I2B2PM.PM_PROJECT_USER_ROLES
2) Edit the file: i2b2\v1_6_02\i2b2core?src?1602\src\admin\i2b2_config_data.js (before deployment or the same file under the apache server after deployment) for the parameters: domain, name, urlCellPM
Step 1(code):
INSERT INTO I2B2PM.PM_PROJECT_USER_ROLES
(
PROJECT_ID,
USER_ID,
USER_ROLE_CD,
CHANGE_DATE,
ENTRY_DATE,
CHANGEBY_CHAR,
STATUS_CD
)
VALUES
(
'@' ,
'i2b2' ,
'ADMIN' ,
sysdate ,
sysdate ,
'i2b2' ,
'A'
);
Commit;

Step2:
domain: have this parameter match the value in i2b2pm.pm_hive_data.domain_name
name: set this to "localhost"
ulrCellPM: http://localhost:9090/i2b2/rest/PMService/
Below is example admin/i2b2_config_data.js:
{
urlProxy: "index.php",
urlFramework: "js?i2b2/",
//??????????????????????????????????????????????????????????????????????????????????????????
// THESE ARE ALL THE DOMAINS A USER CAN LOGIN TO
lstDomains: [
{ domain: "i2b2demo",
name: "localhost",
urlCellPM: "http://localhost:9090/i2b2/rest/PMService/",
allowAnalysis: false,
adminOnly: true,
debug: true
}
]
//??????????????????????????????????????????????????????????????????????????????????????????
}
Peter Beninato - OCTRI DW Developer Oregon Health & Science University


NEXT EMAIL
From: Peter Beninato [beninato.ohsu] Sent: Wednesday, December 28, 2011 2:50 PM To: Mendis, Michael E.; Michael.C.Ford.kp Cc: i2b2 AUG Members Subject: RE: i2b2 - v1.6_02 - webclient - admin - Requires ADMIN role
Webclient update... Not sure this was valid test?
When I look at the webclient i2b2_config_data.js, it seems that the urlCellPM is pointing to i2b2.org, and not a localhost.
I just copied over the webclient folder, let me troll through the documentation to see what I might need to edit.
urlCellPM: "http://webservices.i2b2.org/i2b2/rest/PMService/",

From: Mike Mendis [mmendis.partners] Sent: Wednesday, December 28, 2011 11:01 AM To: Peter Beninato; Michael.C.Ford.kp Cc: i2b2 AUG Members Subject: Re: i2b2 - v1.6_02 - webclient - admin - Requires ADMIN role
The entries all look correct.
A few things, is this a new install or upgrade? Can you log into the regular webclient without issues? If not, try install curl. Also is php installed on the linux machine
mike

On 12/28/11 1:55 PM, "Peter Beninato" <beninato.ohsu> wrote:
Hi,
I'm wondering if the "@" entry in PM_PROJECT_USER_ROLES for "i2b2" needs anything else like "USER" too? And/or if I should DELETE other entries for "i2b2" from that table?
Below is my i2b2_config_data.js. I changed domain to "i2b2" since that was the domain_id in pm_hive_data. I can change it back. The domain_name is "i2b2demo"
I have also edited the index.php for $pmURL, and added this line, "http://localhost:9090/i2b2/rest/",
to the $WHITELIST.
index.php
//$pmURL = "http://127.0.0.1:8080/i2b2/rest/PMService/getServices"; $pmURL = "http://127.0.0.1:9090/i2b2/rest/PMService/getServices";
i2b2_config_data.js
{
urlProxy: "index.php",
urlFramework: "js-i2b2/",
//------------------------------------------------------------------------------------------
// THESE ARE ALL THE DOMAINS A USER CAN LOGIN TO
lstDomains: [
{ //domain: "i2b2demo",
domain: "i2b2",
name: "i2b2demo",
urlCellPM: "http://localhost:9090/i2b2/rest/PMService/",
allowAnalysis: false,
adminOnly: true,
debug: false
}
]
//------------------------------------------------------------------------------------------}

From: Mike Mendis [mmendis.partners] Sent: Wednesday, December 28, 2011 10:47 AM To: Peter Beninato; Michael.C.Ford.kp Cc: i2b2 AUG Members Subject: Re: i2b2 - v1.6_02 - webclient - admin - Requires ADMIN role
What does your i2b2_config_data.js look like. It does looks like port 9090 is the correct based on that response you got back from the jboss

On 12/28/11 1:28 PM, "Peter Beninato" <beninato.ohsu> wrote:
Hi,
Might there need to be some edits to index.php too?
Like the $pmURL? Should I change the port to 9090. Also, I don't see an entry in the $WHITELIST for something like http://localhost:9090/i2b2/rest