cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
379
Views
0
Helpful
1
Replies

updateUser - works even if I'm associating devices that do not exist

stephan.steiner
Spotlight
Spotlight

I've been working on a issue where my rollback didn't work properly. The code tried to roll back the deletion of a device, but it failed.

Following up the addPhone command is an updateUser command that associates the recreated phone back to the user.

So I'm sending

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/9.1"><soapenv:Header/><soapenv:Body><ns:updateUser sequence="0"> <uuid>{EF09521F-138E-9CF2-0F76-348A4B31E4B2}</uuid><associatedDevices><device>TCTTEST10</device></associatedDevices></ns:updateUser></soapenv:Body></soapenv:Envelope>

And get back this.

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:updateUserResponse sequence="0" xmlns:ns="http://www.cisco.com/AXL/API/9.1"><return>{EF09521F-138E-9CF2-0F76-348A4B31E4B2}</return></ns:updateUserResponse></soapenv:Body></soapenv:Envelope>

However, the device TCTTEST10 does not exist at this point. I think the proper behavior would be to throw an error telling me I'm specifying a device that does not exist (and not some kind of reference error as you so often get.. been fighting with such errors that only make marginal sense as they don't reference what's really going wrong all morning).

1 Reply 1

npetrele
Cisco Employee
Cisco Employee

Why report an error?  AXL is so intelligent, it knows the future, and can see that you're going to create the device.

Just kidding.  This seems to be a 9.1 issue, which I was able to reproduce on our 9.1.2 lab server.  10.5 correctly reports an error that the device does not exist.

I'll report the bug. 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: