grouper-users - Re: [grouper-users] WS Assign Attributes Batch
Subject: Grouper Users - Open Discussion List
List archive
- From: Scott Koranda <>
- To: Chris Hyzer <>
- Cc: grouper-users <>
- Subject: Re: [grouper-users] WS Assign Attributes Batch
- Date: Wed, 3 Oct 2012 13:06:14 -0500
Hi,
Unfortunately I cannot verify the fix.
Here is what I did:
svn co
http://anonsvn.internet2.edu/svn/i2mi/branches/GROUPER_2_1_BRANCH/grouper
cd group
ant dist
Everything built fine. I see this for the jar:
$ md5sum dist/lib/grouper.jar
564691194799c56304f1d7e286c21709 dist/lib/grouper.jar
I then copied that jar to my Grouper WS deployment:
# pwd
/opt/grouper/grouper-ws/grouper-ws/build/dist/grouper-ws/WEB-INF/lib
# md5sum grouper.jar
564691194799c56304f1d7e286c21709 grouper.jar
#
I then restarted tomcat 6:
# /etc/init.d/tomcat6 restart
Stopping Tomcat servlet engine: tomcat6.
Starting Tomcat servlet engine: tomcat6.
#
I did an equivalent POST as before and again the attributes
were assigned but I received a 500 error along with the
"resultCode": "PROBLEM_WITH_ASSIGNMENT",
Did I checkout the incorrect code?
Thanks,
Scott
> This is fixed in the 2.1 branch, try it out and let us know
>
> https://bugs.internet2.edu/jira/browse/GRP-851
>
> Thanks,
> Chris
> ________________________________________
> From:
>
>
> []
> on behalf of Scott Koranda
> []
> Sent: Saturday, September 29, 2012 10:29 AM
> To: grouper-users
> Subject: [grouper-users] WS Assign Attributes Batch
>
> Hi,
>
> I am using Grouper 2.1.2.
>
> I am receiving a 500 from the assign attributes batch, though the
> assignments are being done as verified using the Lite UI.
>
> I am sending in this JSON:
>
> {
> "WsRestAssignAttributesBatchRequest": {
> "actAsSubjectId": "GrouperSystem",
> "wsAssignAttributeBatchEntries": [
> {
> "attributeAssignOperation": "assign_attr",
> "attributeAssignType": "imm_mem",
> "wsAttributeDefNameLookup": {
> "name":
> "Reference:COmanageDataSource:cm_co_group_members_id"
> },
> "attributeAssignValueOperation": "add_value",
> "values": [
> {
> "valueSystem": "123-456-789"
> }
> ],
> "wsOwnerMembershipLookup": {
> "uuid": "6b1fa2ac3a73406c9bca8084a6692e57"
> }
> },
> {
> "attributeAssignOperation": "assign_attr",
> "attributeAssignType": "imm_mem",
> "wsAttributeDefNameLookup": {
> "name":
> "Reference:COmanageDataSource:cm_co_group_members_co_group_id"
> },
> "attributeAssignValueOperation": "add_value",
> "values": [
> {
> "valueSystem":
> "5065d314-ba50-4ccc-825f-4eba7e6afd6a"
> }
> ],
> "wsOwnerMembershipLookup": {
> "uuid": "6b1fa2ac3a73406c9bca8084a6692e57"
> }
> }
> ]
> }
> }
>
> I am receiving this back:
>
> {
> "WsAssignAttributesBatchResults": {
> "responseMetadata": {
> "millis": "160",
> "serverVersion": "2.1.2"
> },
> "resultMetadata": {
> "resultCode": "PROBLEM_WITH_ASSIGNMENT",
> "resultMessage": "clientVersion: 2.1.0,
> includeSubjectDetail: false, actAsSubject: null,
> subjectAttributeNames: null\n, paramNames: \n, params: null\n,
> wsAssignAttributeBatchEntries: 0. wsAssignAttributeBatchEntry:
> attributeAssignOperation: assign_attr, attributeAssignType: imm_mem,
> attributeAssignValueOperation: add_value, values: 0. valueSystem:
> 123-456-789, , wsAttributeDefNameLookup:
> WsAttributeDefNameLookup[pitAttributeDefNames=[],name=Reference:COmanageDataSource:cm_co_group_members_id],
> wsOwnerMembershipLookup:
> WsMembershipLookup[uuid=6b1fa2ac3a73406c9bca8084a6692e57], \n,
> edu.internet2.middleware.grouper.util.PropertyDoesNotExistUnchecked:
> Cant find getter: getName, in: class java.lang.Object, callOnSupers:
> true,\nProblem in HibernateSession: HibernateSession: isNew: true,
> isReadonly: true, grouperTransactionType: NONE\n\tat
> edu.internet2.middleware.grouper.util.GrouperUtil.getterHelper(GrouperUtil.java:4875)\n\tat
> edu.internet2.middleware.grouper.util.GrouperUtil.getterHelper(GrouperUtil.java:4870)\n\tat
> edu.internet2.middleware.grouper.util.GrouperUtil.getter(GrouperUtil.java:4845)\n\tat
> edu.internet2.middleware.grouper.util.GrouperUtil.propertyValue(GrouperUtil.java:7263)\n\tat
> edu.internet2.middleware.grouper.ws.util.GrouperServiceUtils.mergeArrays(GrouperServiceUtils.java:1330)\n\tat
> edu.internet2.middleware.grouper.ws.coresoap.WsAssignAttributesBatchResults.addResult(WsAssignAttributesBatchResults.java:490)\n\tat
> edu.internet2.middleware.grouper.ws.GrouperServiceLogic$12.callback(GrouperServiceLogic.java:7443)\n\tat
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO$1.callback(Hib3TransactionDAO.java:66)\n\tat
> edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHibernateSession(HibernateSession.java:571)\n\tat
> edu.internet2.middleware.grouper.internal.dao.hib3.Hib3TransactionDAO.transactionCallback(Hib3TransactionDAO.java:56)\n\tat
> edu.internet2.middleware.grouper.hibernate.GrouperTransaction.callbackGrouperTransaction(GrouperTransaction.java:87)\n\tat
> edu.internet2.middleware.grouper.ws.GrouperServiceLogic.assignAttributesBatch(GrouperServiceLogic.java:7336)\n\tat
> edu.internet2.middleware.grouper.ws.coresoap.GrouperService.assignAttributesBatch(GrouperService.java:3174)\n\tat
> edu.internet2.middleware.grouper.ws.rest.GrouperServiceRest.assignAttributesBatch(GrouperServiceRest.java:2052)\n\tat
> edu.internet2.middleware.grouper.ws.rest.method.GrouperWsRestPut$3.service(GrouperWsRestPut.java:201)\n\tat
> edu.internet2.middleware.grouper.ws.rest.method.GrouperRestHttpMethod$3.service(GrouperRestHttpMethod.java:104)\n\tat
> edu.internet2.middleware.grouper.ws.rest.GrouperRestServlet.service(GrouperRestServlet.java:199)\n\tat
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)\n\tat
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)\n\tat
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\n\tat
> edu.internet2.middleware.grouper.ws.GrouperServiceJ2ee.doFilter(GrouperServiceJ2ee.java:653)\n\tat
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)\n\tat
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)\n\tat
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)\n\tat
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)\n\tat
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)\n\tat
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)\n\tat
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)\n\tat
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)\n\tat
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)\n\tat
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)\n\tat
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)\n\tat
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)\n\tat
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)\n\tat
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)\n\tat
> java.lang.Thread.run(Thread.java:636)",
> "success": "F"
> },
> "wsAssignAttributeBatchResultArray": [
> {
> "changed": "T",
> "deleted": "F",
> "resultMetadata": {
> "resultCode": "SUCCESS",
> "resultMessage": ", Found 1 results.",
> "success": "T"
> },
> "valuesChanged": "T",
> "wsAttributeAssignValueResults": [
> {
> "changed": "T",
> "deleted": "F",
> "wsAttributeAssignValue": {
> "id": "87d6637b0f90450cb80c3931b2a52482",
> "valueSystem": "123-456-789"
> }
> }
> ],
> "wsAttributeAssigns": [
> {
> "attributeAssignActionId":
> "ebb0cbcf63b74287ac16407be9a53ac1",
> "attributeAssignActionName": "assign",
> "attributeAssignActionType": "immediate",
> "attributeAssignDelegatable": "FALSE",
> "attributeAssignType": "imm_mem",
> "attributeDefId":
> "0a0252ca3bd7482e86fbde8150cec427",
> "attributeDefName":
> "Reference:COmanageDataSource:cm_co_group_members_id",
> "attributeDefNameId":
> "2d4943f3ba954159bb5b9cc96cc9d24e",
> "attributeDefNameName":
> "Reference:COmanageDataSource:cm_co_group_members_id",
> "createdOn": "2012/09/29 09:15:42.236",
> "disallowed": "F",
> "enabled": "T",
> "id": "e41087d116ca40398b891bfce5320592",
> "lastUpdated": "2012/09/29 09:15:42.236",
> "ownerMembershipId":
> "6b1fa2ac3a73406c9bca8084a6692e57",
> "wsAttributeAssignValues": [
> {
> "id": "87d6637b0f90450cb80c3931b2a52482",
> "valueSystem": "123-456-789"
> }
> ]
> }
> ]
> },
> null
> ],
> "wsAttributeDefNames": [
> {
> "attributeDefId": "0a0252ca3bd7482e86fbde8150cec427",
> "attributeDefName":
> "Reference:COmanageDataSource:cm_co_group_members_id",
> "description": "cm_co_group_members_id",
> "displayExtension": "cm_co_group_members_id",
> "displayName": "Reference:COmanage Data
> Source:cm_co_group_members_id",
> "extension": "cm_co_group_members_id",
> "name":
> "Reference:COmanageDataSource:cm_co_group_members_id",
> "uuid": "2d4943f3ba954159bb5b9cc96cc9d24e"
> },
> {
> "attributeDefId": "df8b54538e3d4b668b94059e2c4a38bc",
> "attributeDefName":
> "Reference:COmanageDataSource:cm_co_group_members_co_group_id",
> "description": "cm_co_group_members_co_group_id",
> "displayExtension": "cm_co_group_members_co_group_id",
> "displayName": "Reference:COmanage Data
> Source:cm_co_group_members_co_group_id",
> "extension": "cm_co_group_members_co_group_id",
> "name":
> "Reference:COmanageDataSource:cm_co_group_members_co_group_id",
> "uuid": "9f172af40ef84acf9a4a852539c88820"
> }
> ],
> "wsAttributeDefs": [
> {
> "attributeDefType": "attr",
> "description": "cm_co_group_members_id",
> "extension": "cm_co_group_members_id",
> "multiAssignable": "F",
> "multiValued": "F",
> "name":
> "Reference:COmanageDataSource:cm_co_group_members_id",
> "uuid": "0a0252ca3bd7482e86fbde8150cec427",
> "valueType": "string"
> },
> {
> "attributeDefType": "attr",
> "description": "cm_co_group_members_co_group_id",
> "extension": "cm_co_group_members_co_group_id",
> "multiAssignable": "F",
> "multiValued": "F",
> "name":
> "Reference:COmanageDataSource:cm_co_group_members_co_group_id",
> "uuid": "df8b54538e3d4b668b94059e2c4a38bc",
> "valueType": "string"
> }
> ],
> "wsMemberships": [
> {
> "createTime": "2012/09/29 09:15:42.086",
> "enabled": "T",
> "groupId": "05d0f83fe67a4a78a482ccfad631c856",
> "groupName": "Reference:COmanageDataSource:COmanage:admin",
> "immediateMembershipId": "6b1fa2ac3a73406c9bca8084a6692e57",
> "listName": "members",
> "listType": "list",
> "memberId": "c6d18b72c67a4e6c8f257aa77c7852e5",
> "membershipId":
> "6b1fa2ac3a73406c9bca8084a6692e57:540125519a1a47b3958dce4604a8b73d",
> "membershipType": "immediate",
> "subjectId": "1",
> "subjectSourceId": "jdbc"
> }
> ]
> }
> }
>
> Any ideas?
>
> Thanks,
>
> Scott
- RE: [grouper-users] WS Assign Attributes Batch, Chris Hyzer, 10/02/2012
- Re: [grouper-users] WS Assign Attributes Batch, Scott Koranda, 10/03/2012
- RE: [grouper-users] WS Assign Attributes Batch, Chris Hyzer, 10/03/2012
- Re: [grouper-users] WS Assign Attributes Batch, Scott Koranda, 10/03/2012
- RE: [grouper-users] WS Assign Attributes Batch, Chris Hyzer, 10/03/2012
- Re: [grouper-users] WS Assign Attributes Batch, Scott Koranda, 10/03/2012
Archive powered by MHonArc 2.6.16.