Object modification via SOAP is killing app-rights
Hi,
I'm trying to define app-right in a user object by SOAP.
But actually on my V13r1SR21 this is not possible.
While breaking down the problem it seems, that loading a user
object from the PBX and storing the same (unchanged) object back to
the PBX is killing all app rights for that object.
This is my simple code:
$user = $anlage_soapfd->ladeUserAlsXml('Thomas Neugebauer');
echo "Vorher:\n".$user->asXML()."\n\n";
echo "Vorher:\n".$user->asXML()."\n\n";
$anlage_soapfd->speichereUser($user);
$user = $anlage_soapfd->ladeUserAlsXml('Thomas Neugebauer');
echo "Nachher:\n".$user->asXML()."\n\n";
$user = $anlage_soapfd->ladeUserAlsXml('Thomas Neugebauer');
echo "Nachher:\n".$user->asXML()."\n\n";
The functions
ladeUserAlsXML()
and speichereUser()
are simple wrapper functions to the official SOAP API calls like
<show><user cn='Thomas Neugebauer'></show>
and <modify><user....>...</user></modify>
The results are:
Vorher:
<user cn="Thomas Neugebauer" guid="4ac631409ef55f0171000050563f00ca" e164="20" dn="Thomas Neugebauer" h323="Thomas Neugebauer" pwd="********" pwdx="41e8570bda7a1595fe39d10877756766879ea46a6bc6ea53" text="Thomas Neugebauer" apps-my="chat,calllist,dev%3ASwPh_Thomas%20Neugebauer_5ff5b7be,users-admin" loc="pbx_cloud_k100000_v13cubbi" node="pbx_cloud_k100000_v13cubbi" uclic="true" type="ep"><app name="profile"/><app name="softphone"/><app name="users"/><device hw="009033466A83" text="IP222 20" tls="true"/><device hw="sip_individual_2246"/><device hw="SwPh_Thomas Neugebauer_5ff5b7be" app="softphone" text="Softphone"/><grp name="AUTOPROV"/><grp name="gr_TAPI_"/></user>
Nachher:
<user cn="Thomas Neugebauer" guid="4ac631409ef55f0171000050563f00ca" e164="20" dn="Thomas Neugebauer" h323="Thomas Neugebauer" pwd="********" pwdx="41e8570bda7a1595fe39d10877756766879ea46a6bc6ea53" text="Thomas Neugebauer" apps-my="chat,calllist,dev%3ASwPh_Thomas%20Neugebauer_5ff5b7be,users-admin" loc="pbx_cloud_k100000_v13cubbi" node="pbx_cloud_k100000_v13cubbi" uclic="true" type="ep"><device hw="009033466A83" text="IP222 20" tls="true"/><device hw="sip_individual_2246"/><device hw="SwPh_Thomas Neugebauer_5ff5b7be" app="softphone" text="Softphone"/><grp name="AUTOPROV"/><grp name="gr_TAPI_"/></user>
<user cn="Thomas Neugebauer" guid="4ac631409ef55f0171000050563f00ca" e164="20" dn="Thomas Neugebauer" h323="Thomas Neugebauer" pwd="********" pwdx="41e8570bda7a1595fe39d10877756766879ea46a6bc6ea53" text="Thomas Neugebauer" apps-my="chat,calllist,dev%3ASwPh_Thomas%20Neugebauer_5ff5b7be,users-admin" loc="pbx_cloud_k100000_v13cubbi" node="pbx_cloud_k100000_v13cubbi" uclic="true" type="ep"><app name="profile"/><app name="softphone"/><app name="users"/><device hw="009033466A83" text="IP222 20" tls="true"/><device hw="sip_individual_2246"/><device hw="SwPh_Thomas Neugebauer_5ff5b7be" app="softphone" text="Softphone"/><grp name="AUTOPROV"/><grp name="gr_TAPI_"/></user>
Nachher:
<user cn="Thomas Neugebauer" guid="4ac631409ef55f0171000050563f00ca" e164="20" dn="Thomas Neugebauer" h323="Thomas Neugebauer" pwd="********" pwdx="41e8570bda7a1595fe39d10877756766879ea46a6bc6ea53" text="Thomas Neugebauer" apps-my="chat,calllist,dev%3ASwPh_Thomas%20Neugebauer_5ff5b7be,users-admin" loc="pbx_cloud_k100000_v13cubbi" node="pbx_cloud_k100000_v13cubbi" uclic="true" type="ep"><device hw="009033466A83" text="IP222 20" tls="true"/><device hw="sip_individual_2246"/><device hw="SwPh_Thomas Neugebauer_5ff5b7be" app="softphone" text="Softphone"/><grp name="AUTOPROV"/><grp name="gr_TAPI_"/></user>
As you can see, the <app name="profile"/><app name="softphone"/><app name="users"/> are missing after the Modify-Operation.
Is this a bug or am I doing anything wrong with my SOAP request?
Best regards
Thomas Neugebauer