cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Invalid value for confidentialAccessMode in updateLine when replying data received from getLine

157
Views
0
Helpful
1
Comments
Rising star

I think I found another one. For brevity, I'm stripping the soap headers.

First, I'm creating a new line using addLine

 

<line>
	<callForwardAll>
		<forwardToVoiceMail>true</forwardToVoiceMail>
		<callingSearchSpaceName>UnitTest-CallingSearchSpace-08062020_211546_2</callingSearchSpaceName>
	</callForwardAll>
	<callForwardBusy>
		<forwardToVoiceMail>true</forwardToVoiceMail>
		<callingSearchSpaceName>UnitTest-CallingSearchSpace-08062020_211546_2</callingSearchSpaceName>
		<destination>1234</destination>
	</callForwardBusy>
	<callForwardBusyInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardBusyInt>
	<callForwardNoAnswer>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNoAnswer>
	<callForwardNoAnswerInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNoAnswerInt>
	<callForwardNoCoverage>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNoCoverage>
	<callForwardNoCoverageInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNoCoverageInt>
	<CallForwardOnFailure>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</CallForwardOnFailure>
	<callForwardAlternateParty/>
	<callForwardNotRegistered>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNotRegistered>
	<callForwardNotRegisteredInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNotRegisteredInt>
	<pattern>8818</pattern>
	<usage>Device</usage>
	<routePartitionName>UnitTest-Partition-0-08062020_211544</routePartitionName>
	<aarKeepCallHistory>false</aarKeepCallHistory>
	<aarVoiceMailEnabled>true</aarVoiceMailEnabled>
	<autoAnswer>Auto Answer Off</autoAnswer>
	<networkHoldMohAudioSourceId>-1</networkHoldMohAudioSourceId>
	<userHoldMohAudioSourceId>1</userHoldMohAudioSourceId>
	<alertingName>Hänsli Meyer</alertingName>
	<asciiAlertingName>Haensli Meyer</asciiAlertingName>
	<presenceGroupName>Standard Presence group</presenceGroupName>
	<shareLineAppearanceCssName>UnitTest-CallingSearchSpace-08062020_211546_2</shareLineAppearanceCssName>
	<voiceMailProfileName>Default</voiceMailProfileName>
	<patternPrecedence>Default</patternPrecedence>
	<releaseClause>No Error</releaseClause>
	<hrDuration>5</hrDuration>
	<hrInterval>10</hrInterval>
	<cfaCssPolicy>With Configured CSS</cfaCssPolicy>
	<parkMonForwardNoRetrieveDn>2010</parkMonForwardNoRetrieveDn>
	<parkMonForwardNoRetrieveVmEnabled>false</parkMonForwardNoRetrieveVmEnabled>
	<parkMonForwardNoRetrieveIntVmEnabled>false</parkMonForwardNoRetrieveIntVmEnabled>
	<parkMonForwardNoRetrieveCssName>UnitTest-CallingSearchSpace-08062020_211546_0</parkMonForwardNoRetrieveCssName>
	<parkMonReversionTimer>10</parkMonReversionTimer>
	<partyEntranceTone>On</partyEntranceTone>
	<allowCtiControlFlag>false</allowCtiControlFlag>
	<rejectAnonymousCall>true</rejectAnonymousCall>
	<associatedDevices/>
	<useEnterpriseAltNum>false</useEnterpriseAltNum>
	<useE164AltNum>false</useE164AltNum>
	<description>This is descriptschion</description>
</line>

When I extract that line again, it has the confidentialAccess tag filled out with confidentialAccessMode being an empty tag, and confidentialAccessLevel being -1

 

<line uuid="{30EEDC27-D095-9716-5B6B-BD525FBEB83F}">
	<pattern>8818</pattern>
	<description>This is descriptschion</description>
	<usage>Device</usage>
	<routePartitionName uuid="{065C7359-A74D-93C0-FEA8-7AD3FCAED1E7}">UnitTest-Partition-0-08062020_211544</routePartitionName>
	<aarNeighborhoodName/>
	<aarDestinationMask />
	<aarKeepCallHistory>false</aarKeepCallHistory>
	<aarVoiceMailEnabled>true</aarVoiceMailEnabled>
	<callForwardAll>
		<forwardToVoiceMail>true</forwardToVoiceMail>
		<callingSearchSpaceName uuid="{210FEAED-7939-627F-B4ED-999D9518E09C}">UnitTest-CallingSearchSpace-08062020_211546_2</callingSearchSpaceName>
		<secondaryCallingSearchSpaceName xsi:nil="true" uuid="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
		<destination />
	</callForwardAll>
	<callForwardBusy>
		<forwardToVoiceMail>true</forwardToVoiceMail>
		<callingSearchSpaceName uuid="{210FEAED-7939-627F-B4ED-999D9518E09C}">UnitTest-CallingSearchSpace-08062020_211546_2</callingSearchSpaceName>
		<destination>1234</destination>
	</callForwardBusy>
	<callForwardBusyInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
		<callingSearchSpaceName xsi:nil="true" uuid="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
		<destination />
	</callForwardBusyInt>
	<callForwardNoAnswer>
		<forwardToVoiceMail>false</forwardToVoiceMail>
		<callingSearchSpaceName xsi:nil="true" uuid="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
		<destination />
		<duration />
	</callForwardNoAnswer>
	<callForwardNoAnswerInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
		<callingSearchSpaceName xsi:nil="true" uuid="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
		<destination />
		<duration />
	</callForwardNoAnswerInt>
	<callForwardNoCoverage>
		<forwardToVoiceMail>false</forwardToVoiceMail>
		<callingSearchSpaceName xsi:nil="true" uuid="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
		<destination />
	</callForwardNoCoverage>
	<callForwardNoCoverageInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
		<callingSearchSpaceName xsi:nil="true" uuid="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
		<destination />
	</callForwardNoCoverageInt>
	<callForwardOnFailure>
		<forwardToVoiceMail>false</forwardToVoiceMail>
		<callingSearchSpaceName xsi:nil="true" uuid="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
		<destination />
	</callForwardOnFailure>
	<callForwardAlternateParty>
		<callingSearchSpaceName xsi:nil="true" uuid="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
		<destination />
		<duration />
	</callForwardAlternateParty>
	<callForwardNotRegistered>
		<forwardToVoiceMail>false</forwardToVoiceMail>
		<callingSearchSpaceName xsi:nil="true" uuid="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
		<destination />
	</callForwardNotRegistered>
	<callForwardNotRegisteredInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
		<callingSearchSpaceName xsi:nil="true" uuid="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
		<destination />
	</callForwardNotRegisteredInt>
	<callPickupGroupName xsi:nil="true" uuid="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
	<autoAnswer>Auto Answer Off</autoAnswer>
	<networkHoldMohAudioSourceId>-1</networkHoldMohAudioSourceId>
	<userHoldMohAudioSourceId>1</userHoldMohAudioSourceId>
	<alertingName>Hänsli Meyer</alertingName>
	<asciiAlertingName>Haensli Meyer</asciiAlertingName>
	<presenceGroupName uuid="{AD243D17-98B4-4118-8FEB-5FF2E1B781AC}">Standard Presence group</presenceGroupName>
	<shareLineAppearanceCssName uuid="{210FEAED-7939-627F-B4ED-999D9518E09C}">UnitTest-CallingSearchSpace-08062020_211546_2</shareLineAppearanceCssName>
	<voiceMailProfileName uuid="{16C584EA-6A81-4138-9EA1-AF452DE8F75A}">Default</voiceMailProfileName>
	<patternPrecedence>Default</patternPrecedence>
	<releaseClause>No Error</releaseClause>
	<hrDuration>5</hrDuration>
	<hrInterval>10</hrInterval>
	<cfaCssPolicy>With Configured CSS</cfaCssPolicy>
	<defaultActivatedDeviceName/>
	<parkMonForwardNoRetrieveDn>2010</parkMonForwardNoRetrieveDn>
	<parkMonForwardNoRetrieveIntDn />
	<parkMonForwardNoRetrieveVmEnabled>false</parkMonForwardNoRetrieveVmEnabled>
	<parkMonForwardNoRetrieveIntVmEnabled>false</parkMonForwardNoRetrieveIntVmEnabled>
	<parkMonForwardNoRetrieveCssName uuid="{2E1C3758-939A-0F3C-1986-7824A706B1FC}">UnitTest-CallingSearchSpace-08062020_211546_0</parkMonForwardNoRetrieveCssName>
	<parkMonForwardNoRetrieveIntCssName/>
	<parkMonReversionTimer>10</parkMonReversionTimer>
	<partyEntranceTone>On</partyEntranceTone>
	<directoryURIs/>
	<allowCtiControlFlag>false</allowCtiControlFlag>
	<rejectAnonymousCall>true</rejectAnonymousCall>
	<patternUrgency>false</patternUrgency>
	<confidentialAccess>
		<confidentialAccessMode />
		<confidentialAccessLevel>-1</confidentialAccessLevel>
	</confidentialAccess>
	<externalCallControlProfile/>
	<enterpriseAltNum>
		<numMask />
		<isUrgent>f</isUrgent>
		<addLocalRoutePartition>f</addLocalRoutePartition>
		<routePartition/>
		<advertiseGloballyIls>f</advertiseGloballyIls>
	</enterpriseAltNum>
	<e164AltNum>
		<numMask />
		<isUrgent>f</isUrgent>
		<addLocalRoutePartition>f</addLocalRoutePartition>
		<routePartition/>
		<advertiseGloballyIls>f</advertiseGloballyIls>
	</e164AltNum>
	<pstnFailover />
	<callControlAgentProfile />
	<associatedDevices/>
	<useEnterpriseAltNum>false</useEnterpriseAltNum>
	<useE164AltNum>false</useE164AltNum>
	<active>true</active>
</line>

Then I try to modify some properties, leaving confidentialAccess as it. My code is written in a way to discard empty properties, so confidentialAccessMode is stripped, while confidentialAccessLevel remains (at -1)

 

So this is the update that trips it up

 

<line>
	<callForwardAll>
		<forwardToVoiceMail>true</forwardToVoiceMail>
		<callingSearchSpaceName uuid="{EC7F0B4B-931D-1403-AF66-0DD33E03846E}">UnitTest-CallingSearchSpace-08062020_211950_2</callingSearchSpaceName>
	</callForwardAll>
	<callForwardBusy>
		<forwardToVoiceMail>true</forwardToVoiceMail>
		<callingSearchSpaceName uuid="{EC7F0B4B-931D-1403-AF66-0DD33E03846E}">UnitTest-CallingSearchSpace-08062020_211950_2</callingSearchSpaceName>
		<destination>1234</destination>
	</callForwardBusy>
	<callForwardBusyInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardBusyInt>
	<callForwardNoAnswer>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNoAnswer>
	<callForwardNoAnswerInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNoAnswerInt>
	<callForwardNoCoverage>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNoCoverage>
	<callForwardNoCoverageInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNoCoverageInt>
	<callForwardOnFailure>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardOnFailure>
	<callForwardAlternateParty/>
	<callForwardNotRegistered>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNotRegistered>
	<callForwardNotRegisteredInt>
		<forwardToVoiceMail>false</forwardToVoiceMail>
	</callForwardNotRegisteredInt>
	<pattern>8818</pattern>
	<usage>Device</usage>
	<routePartitionName uuid="{2C079190-CAC0-264D-B17C-D8AAA367A33A}">UnitTest-Partition-0-08062020_211948</routePartitionName>
	<aarKeepCallHistory>false</aarKeepCallHistory>
	<aarVoiceMailEnabled>true</aarVoiceMailEnabled>
	<autoAnswer>Auto Answer Off</autoAnswer>
	<networkHoldMohAudioSourceId>-1</networkHoldMohAudioSourceId>
	<userHoldMohAudioSourceId>1</userHoldMohAudioSourceId>
	<alertingName>Hänsli Mülier</alertingName>
	<asciiAlertingName>Haensli Blubberli</asciiAlertingName>
	<presenceGroupName>Standard Presence group</presenceGroupName>
	<shareLineAppearanceCssName>UnitTest-CallingSearchSpace-08062020_211950_1</shareLineAppearanceCssName>
	<voiceMailProfileName/>
	<patternPrecedence>Default</patternPrecedence>
	<releaseClause>No Error</releaseClause>
	<hrDuration>1</hrDuration>
	<hrInterval>1</hrInterval>
	<cfaCssPolicy>With Activating Device/Line CSS</cfaCssPolicy>
	<parkMonForwardNoRetrieveDn/>
	<parkMonForwardNoRetrieveIntDn/>
	<parkMonForwardNoRetrieveVmEnabled>false</parkMonForwardNoRetrieveVmEnabled>
	<parkMonForwardNoRetrieveIntVmEnabled>false</parkMonForwardNoRetrieveIntVmEnabled>
	<parkMonForwardNoRetrieveCssName>UnitTest-CallingSearchSpace-08062020_211950_2</parkMonForwardNoRetrieveCssName>
	<parkMonReversionTimer>20</parkMonReversionTimer>
	<partyEntranceTone>Off</partyEntranceTone>
	<allowCtiControlFlag>false</allowCtiControlFlag>
	<rejectAnonymousCall>true</rejectAnonymousCall>
	<patternUrgency>false</patternUrgency>
	<confidentialAccess>
		<confidentialAccessLevel>-1</confidentialAccessLevel>
	</confidentialAccess>
	<associatedDevices/>
	<useEnterpriseAltNum>false</useEnterpriseAltNum>
	<useE164AltNum>false</useE164AltNum>
	<active>true</active>
	<description>gugus gaga</description>
	<uuid>{994D01C0-58CD-FD2A-82A7-78740EA18ED8}</uuid>
</line>

The full response is

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Body>
		<soapenv:Fault>
			<faultcode>soapenv:Server</faultcode>
			<faultstring>Invalid value for confidentialAccessMode</faultstring>
			<detail>
				<axlError>
					<axlcode>5003</axlcode>
					<axlmessage>Invalid value for confidentialAccessMode</axlmessage>
					<request>updateLine</request>
				</axlError>
			</detail>
		</soapenv:Fault>
	</soapenv:Body>
</soapenv:Envelope>

Now, assuming axlapi:XInteger is a positive integer, I understand the error... but, then the value returned in the get is incorrect. If it is optional, and no value was set, it should return an empty value again.

 

This is on a CUCM 11.5.1.15073-1.

1 Comment
Rising star

actually, I wrapped the updateLine statement with a <line> tag so that I could properly format it here.. the request is of course made without the <line> wrapper (otherwise the error would be something else entirely)

This widget could not be displayed.