Hi Francesco, I am creating the new Connector from scratch + adding the new Resource. Looking at core-rest.log I see the following:
16:24:39.799 DEBUG org.apache.syncope.core.rest.controller.AbstractController - Resource creation: org.apache.syncope.common.to.ResourceTO@1e2fce9c[ name=H2 Resource connectorId=1000 umapping=org.apache.syncope.common.to.MappingTO@54a5733f[ accountLink=<null> items=[org.apache.syncope.common.to.MappingItemTO@3a315883[ id=<null> intAttrName=<null> intMappingType=Username extAttrName=<null> accountid=true password=false mandatoryCondition=true ], org.apache.syncope.common.to.MappingItemTO@2bab91af[ id=<null> intAttrName=<null> intMappingType=Password extAttrName=<null> accountid=false password=true mandatoryCondition=true ], org.apache.syncope.common.to.MappingItemTO@398e54e8[ id=<null> intAttrName=surname intMappingType=UserSchema extAttrName=SURNAME accountid=false password=false mandatoryCondition=true ], org.apache.syncope.common.to.MappingItemTO@6fbc9d7b[ id=<null> intAttrName=<null> intMappingType=Username extAttrName=__NAME__ accountid=true password=false mandatoryCondition=true ], org.apache.syncope.common.to.MappingItemTO@48072f8c[ id=<null> intAttrName=<null> intMappingType=Password extAttrName=__PASSWORD__ accountid=false password=true mandatoryCondition=true ]] Unless I am mistaken, it appears to be creating 5 mappings here? a) Username -> AccountId b) Password -> Password c) surname -> SURNAME and the extra: d) Username -> AccountId (with extAttrName=__NAME__) e) Password -> Password (with extAttrName=__PASSWORD__) Colm. On Mon, Jan 28, 2013 at 4:13 PM, Francesco Chicchiriccò <ilgro...@apache.org > wrote: > On 28/01/2013 16:48, Colm O hEigeartaigh wrote: > >> Hi guys, >> >> I'm getting a strange error when adding some Resource User Mappings in the >> Console on trunk. I have a H2 backend, and I configure a Connector for it. >> I am adding a Username/Password/User Schema attribute mapping. When I try >> to save it, I see an "Error:null" on the top of the screen + the following >> error in the logs: >> >> 15:43:51.031 ERROR org.apache.syncope.console.**pages.AbstractBasePage - >> Failure managing resource org.apache.syncope.common.to.** >> ResourceTO@d0bbe47..... >> >> The weird thing is when I cancel the Resource creation it still appears in >> the table, and when I edit it again and look at the User mappings, I see >> that the Username + Password (AccountId + Password) mappings show up with >> an external attribute configured from the table in the backend. >> >> Can someone confirm this is a bug? >> > > At least it smells like that :-) > > You should take a deeper log to both console's and core's logs to > understand what's happening. > > Are you creating the H2 connector in the same session as the associated > resource or is the connector pre-existing? My guess is that the schema() > call on the connector is failing for some reason. > > Regards. > > -- > Francesco Chicchiriccò > > ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member > http://people.apache.org/~**ilgrosso/<http://people.apache.org/~ilgrosso/> > > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com