stephan.steiner

Incorrect case in User update notification

Discussion created by stephan.steiner on Jan 29, 2016

Hi

 

I thought I had the last one for today, but since my devsupport access is broken I have to spam here..

 

As per the user API, a Finesse user is contained in <User> tag. For both single user extraction and user list extraction. The doc matches the actual behavior (I'm on a 10.6.1.10000-39 release here). However, for notifications, the doc states that the user object in the data tag starts with an upper case, so <User>. Yet, when I look what the server sends to me when I change the state of an agent, it is in lower case. Since XML is case sensitive, that's a problem. Of course I can work around this using a regex to swap the case.. but that very much feels like a bug. Here's the data I'm receiving

 

<Update>

  <data>

    <user>

      <dialogs>/finesse/api/User/lsste/Dialogs</dialogs>

      <extension>7881</extension>

      <firstName>Stephan</firstName>

      <lastName>Steiner</lastName>

      <loginId>lsste</loginId>

      <loginName>lsste</loginName>

      <pendingState></pendingState>

      <roles>

        <role>Agent</role>

        <role>Supervisor</role>

      </roles>

      <settings>

        <wrapUpOnIncoming></wrapUpOnIncoming>

      </settings>

      <state>READY</state>

      <stateChangeTime>2016-01-29T18:56:32.577Z</stateChangeTime>

      <teamId>2</teamId>

      <teamName>LUPS</teamName>

      <teams>

        <Team>

          <id>3</id>

          <name>Development</name>

          <uri>/finesse/api/Team/3</uri>

        </Team>

        <Team>

          <id>2</id>

          <name>LUPS</name>

          <uri>/finesse/api/Team/2</uri>

        </Team>

      </teams>

      <uri>/finesse/api/User/lsste</uri>

    </user>

  </data>

  <event>PUT</event>

  <requestId>6a4e2bba-b0be-436a-ba53-1e89dc0601e3</requestId>

  <source>/finesse/api/User/lsste</source>

</Update>

Outcomes