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

PI 3.1 Rest API - PUT wlanProvisioning/wlanTemplate not working

simotwan
Cisco Employee
Cisco Employee

Hi Team,

Customer is running : PI 3.1

Issue: While trying to execute the wlanProvisioning PUT API, with Json, customer is getting http 500 response.

10.9.178.122/webacs/api/v1/op/wlanProvisioning/wlanTemplate

JSON Request Payload:

{"wlanTemplate":{"adminStatus":true,"broadcastSsidEnabled":true,"interfaceName":"wifidmz","interfaceType":"INTERFACE","lanType":"WIRELESS","profileName":"qadev_eawifi","ssid":"eawifi","templateName":"qadev_eawifi"}}

RESPONSE:

Getting Error:

"httpResponseCode": 500,

"httpMethod": "PUT",

"message": "org.hibernate.HibernateException: reassociated object has dirty collection reference (or an array)",

"exception": "javax.ws.rs.WebApplicationException: org.hibernate.HibernateException: reassociated object has dirty collection reference (or an array)",

"uriPath": "op/wlanProvisioning/wlanTemplate",

"queryParams": "{}"

Tried using XML Request Payload:

<?xml version="1.0" ?>

<wlanTemplate>

  <adminStatus>true</adminStatus>

  <broadcastSsidEnabled>true</broadcastSsidEnabled>

  <interfaceName>wifidmz</interfaceName>

  <interfaceType>INTERFACE</interfaceType>

  <lanType>WIRELESS</lanType>

  <profileName>qadev_eawifi</profileName>

  <ssid>eawifi</ssid>

  <templateName>qadev_eawifi</templateName>

</wlanTemplate>

and with that we get the below error in Response:

API Response

<errorDocument>

<httpResponseCode>406</httpResponseCode>

<httpMethod>PUT</httpMethod>

<exception>javax.ws.rs.ClientErrorException</exception>

<uriPath>op/wlanProvisioning/wlanTemplate</uriPath>

<queryParams>{}</queryParams>

</errorDocument>

would appreciate any help on this.

1 Reply 1

Spencer Zier
Cisco Employee
Cisco Employee

Looks like a bug.  Reached out to you internally.