<div dir="ltr">Hi<div><br></div><div>We have implemented few custom aspects which creates approval request on resource assignment to user and role.</div><div><br></div><div>When we enable these aspects and user requests a resource approval request is raised appropriately and on approving the user request resource is assigned correctly. </div><div><br></div><div>Now the problem we see after this assignment if we try to search this user/ role using web service, search is failing with following error:</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font color="#ff0000" size="1">2015-03-31 14:33:14,270 [] [http-bio-8080-exec-10] WARN (org.apache.cxf.phase.PhaseInterceptorChain): Interceptor for {<a href="http://midpoint.evolveum.com/xml/ns/public/model/model-3}modelWebService#{http://midpoint.evolveum.com/xml/ns/public/model/model-3}searchObjects">http://midpoint.evolveum.com/xml/ns/public/model/model-3}modelWebService#{http://midpoint.evolveum.com/xml/ns/public/model/model-3}searchObjects</a> has thrown exception, unwinding now</font></div></div><div><div><font color="#ff0000" size="1">org.apache.cxf.interceptor.Fault: Could not generate the XML stream caused by: javax.xml.stream.XMLStreamException: Non-default namespace can not map to empty URI (as per Namespace 1.0 # 2) in XML 1.0 documents.</font></div></div><div><div><font color="#ff0000" size="1"><span class="" style="white-space:pre">        </span>at org.apache.cxf.databinding.source.XMLStreamDataWriter.write(XMLStreamDataWriter.java:94) ~[cxf-core-3.0.1.e3.jar:3.0.1.e3]</font></div></div></blockquote><div><br></div><div>After some research I found that if a resource assignment is going through approval cycle somehow midpoint is not storing the namespace of assignment attributes. I tried disabling the workflow and namespace for every attribute was set correctly.</div><div><br></div><div>Without approval:</div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>   <assignment id="1"></div><div>      <construction></div></div></blockquote></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div> <attribute></div></div></blockquote><div><div>            <ref xmlns:qn650="<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3</a>">qn650:name</ref></div></div><div><div>            <outbound></div></div><div><div>               <expression></div></div><div><div>                  <value>Test1</value></div></div><div><div>               </expression></div></div><div><div>            </outbound></div></div><div><div>         </attribute></div></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>..............</div></blockquote></blockquote><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><br></div></blockquote>With approval:<div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>   <assignment id="1"></div><div>      <construction></div></blockquote></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"> <attribute></blockquote><div>            <ref>qn650:name</ref></div><div>            <outbound></div><div>               <expression></div><div>                  <value>Test2</value></div><div>               </expression></div><div>            </outbound></div><div>         </attribute></div></blockquote></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>...................</div><div><br></div></blockquote></div></blockquote><div>I think the approval engine is somehow ignoring the namespaces. This has broken our solution so i request you to provide some quick solution/workaround if possible.</div><div><br></div><div><br></div><div><br></div><div>Regards</div><div>Dharmendra</div></div>