This content has been marked as final. Show 3 replies
I see two potential flaws:
- either your user from
does not authenticate the correct user (there can be a typo, etc.), or
userContext = new IdcContext(user);
- you don't use the userContext properly (e.g.
It is difficult to guess from provided lines only.
Thanks for the pointers , but they are being used properly.
I can give more background on the issue.
I am trying to bring in a list of folders defined in UCM to webcenter Portal
I have defined a user - user1 in webcenter and I am using the logged in user name to pass it to RIDC to authenticate.
Then I defined the same user - user1 in the UCM console as global user and added role - folder_access_role , I have a set of folders in UCM on which I have defined Security Group as "SecureGroup1" . I have then assigned the "read , write" permissions on the "securityGroup1"
Following the is code to fetch the list of folders.
DataBinder dataBinder = myIdcClient.createBinder();
Long folderID = getFolderIDFromPath(path, user);
String collectionId = Long.toString(folderID);
ServiceResponse response =
DataBinder serverBinder = response.getResponseAsBinder();
Collection<String> names = serverBinder.getResultSetNames();
Iterator namesIter = names.iterator();
DataResultSet resultSet = serverBinder.getResultSet("COLLECTIONS");
List rows = resultSet.getRows();
Iterator rowIter = rows.iterator();
List<ContentFolder> folderContents = new ArrayList<ContentFolder>();
ContentFolder folderInfo = null;
DataObject dobj = (DataObject)rowIter.next();
folderInfo = new ContentFolder();
Thanks in advance
Then I defined the same user - user1 in the UCM console as global user and added roleThis looks like a problem. Just try to log in with this user to WebCenter Content web gui and you will see what happens.
Or, follow http://docs.oracle.com/cd/E23943_01/doc.1111/e10792/c05_security.htm#BGBEFEBB
As of 11g Release 1 (11.1.1), user logins must be edited using the Oracle WebLogic Server Administration Console. Although user logins can be managed in the Content Server system for special purposes, they are not valid for authentication to the Content Server system until they have been created with the Oracle WebLogic Server Administration Console. For information and instructions on editing and managing user logins, see Oracle Fusion Middleware Oracle WebLogic Server Administration Console Online Help.