<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>CUPI and rowsperpage=0 / pageNumber=0</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=7640147" />
  <subtitle>CUPI and rowsperpage=0 / pageNumber=0</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=7640147</id>
  <updated>2013-05-24T21:55:10Z</updated>
  <dc:date>2013-05-24T21:55:10Z</dc:date>
  <entry>
    <title>RE: CUPI and rowsperpage=0 / pageNumber=0</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7731543" />
    <author>
      <name>GEERT DEWINTER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7731543</id>
    <updated>2012-10-17T07:38:04Z</updated>
    <published>2012-10-17T07:38:04Z</published>
    <summary type="html">Hi Anil,
I will have to ask for an upgrade then. Thanks a lot!!
Best regards,
Geert
 </summary>
    <dc:creator>GEERT DEWINTER</dc:creator>
    <dc:date>2012-10-17T07:38:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI and rowsperpage=0 / pageNumber=0</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7710312" />
    <author>
      <name>Anil Singh</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7710312</id>
    <updated>2012-10-16T17:25:10Z</updated>
    <published>2012-10-16T17:25:10Z</published>
    <summary type="html">Hi Geert,

That’s good you are able to get list of users using 2nd API.
I have checked in code for first API and I found that there is code missing to get total number of users when pagenumber=0 or rowsperpage=0.
But this problem has been fixed in 8.5 &amp; above version, its not in CUC 7.
 
Thanks
Anil Singh</summary>
    <dc:creator>Anil Singh</dc:creator>
    <dc:date>2012-10-16T17:25:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI and rowsperpage=0 / pageNumber=0</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7708491" />
    <author>
      <name>GEERT DEWINTER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7708491</id>
    <updated>2012-10-16T16:10:14Z</updated>
    <published>2012-10-16T16:10:14Z</published>
    <summary type="html">Hi Anil,
The second command seems to work. I get a list of users.
I activated the trace for VMREST and got the message "A syntax error has occurred" again.
The trace looks like :
12/30/2011 11:44:20.292 |8404,,,-1,-1,Logging initialized for Tomcat (Cuca CuService CiscoPCA PCAUnifiedCM PCAMeetingPlace UnityAssistant UnityInbox UnityPCTR AudioStore MediaMasterControl MediaMasterWeb MediaMasterUMS TranscodeWeb TRAP BulkAdministrationTool RSS Cuals MessageEventService VMWS VMREST)|
10/15/2012 14:48:22.642 |3054,,,VMREST,0,ERROR [http-8443-9] com.cisco.connection.rest.helper.Utilities  - query returns more than the maximum allowable results, use rowsperpage query parameter to limit results: max=2000|
10/15/2012 14:48:30.326 |3054,,,VMREST,0,ERROR [http-8443-9] com.cisco.connection.rest.impl.GeneratedUserRestImpl  - unable to get a list: user|
10/15/2012 14:48:30.326 |3054,,,VMREST,0,ERROR [http-8443-9] com.cisco.connection.rest.helper.Utilities  - A syntax error has occurred.|
10/15/2012 16:16:09.400 |3054,,,VMREST,0,ERROR [http-8443-9] com.cisco.connection.rest.impl.GeneratedUserRestImpl  - unable to get a list: user|
10/15/2012 16:16:09.400 |3054,,,VMREST,0,ERROR [http-8443-9] com.cisco.connection.rest.helper.Utilities  - A syntax error has occurred.|
10/16/2012 17:30:50.521 |11609,,,Cuca,0,com.cisco.unity.logging.log4j.ConfigLoader: update called for diag grid VMREST old flags: 1, new flags: 15.|
10/16/2012 17:30:50.700 |11609,,,Cuca,0,com.cisco.unity.logging.log4j.ConfigLoader: VMREST: setting category 1 to true.|
10/16/2012 17:30:50.700 |11609,,,Cuca,0,com.cisco.unity.logging.log4j.ConfigLoader: VMREST: setting category 2 to true.|
10/16/2012 17:30:50.700 |11609,,,Cuca,0,com.cisco.unity.logging.log4j.ConfigLoader: VMREST: setting category 3 to true.|
10/16/2012 17:31:41.727 |28416,,,VMREST,3,DEBUG [http-8443-10] com.cisco.connection.rest.impl.GeneratedUserRestImpl  - setting rows per page: 100|
10/16/2012 17:31:41.727 |28416,,,VMREST,3,DEBUG [http-8443-10] com.cisco.connection.rest.impl.GeneratedUserRestImpl  - setting page number: 0|
10/16/2012 17:31:41.727 |28416,,,VMREST,3,DEBUG [http-8443-10] com.cisco.connection.rest.impl.GeneratedUserRestImpl  - query: null|
10/16/2012 17:31:41.727 |28416,,,VMREST,3,DEBUG [http-8443-10] com.cisco.connection.rest.impl.GeneratedUserRestImpl  - parse sort: null|
10/16/2012 17:31:41.782 |28416,,,VMREST,3,DEBUG [http-8443-10] com.cisco.connection.rest.impl.GeneratedUserRestImpl  - created authentication information: username=xxxxxxxxx|
10/16/2012 17:31:41.836 |28416,,,VMREST,3,ERROR [http-8443-10] com.cisco.connection.rest.impl.GeneratedUserRestImpl  - unable to get a list: user|
10/16/2012 17:31:41.846 |28416,,,VMREST,3,ERROR [http-8443-10] com.cisco.connection.rest.helper.Utilities  - A syntax error has occurred.|
Thanks a lot in advance for your help.
Best regards,
Geert</summary>
    <dc:creator>GEERT DEWINTER</dc:creator>
    <dc:date>2012-10-16T16:10:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI and rowsperpage=0 / pageNumber=0</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7647922" />
    <author>
      <name>Anil Singh</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7647922</id>
    <updated>2012-10-15T16:01:17Z</updated>
    <published>2012-10-15T16:01:17Z</published>
    <summary type="html">Geert,
One more thing..
Have you tried with 2nd url.
https://XX.XX.XX.XX:8443/vmrest/users?rowsPerPage=100&amp;pageNumber=1</summary>
    <dc:creator>Anil Singh</dc:creator>
    <dc:date>2012-10-15T16:01:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI and rowsperpage=0 / pageNumber=0</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7647597" />
    <author>
      <name>Anil Singh</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7647597</id>
    <updated>2012-10-15T15:49:57Z</updated>
    <published>2012-10-15T15:49:57Z</published>
    <summary type="html">Hi Geert,
I have tested on CUC verison 8.5 &amp; above, and everywhere its working fine.
You are using CUC version 7, so i need to check on that version. so can you share logs and URL which you calling.
First enable micro traces of VMREST .
Log path: /var/opt/cisco/connection/log/diag_Tomcat
Thanks
Anil Singh
 </summary>
    <dc:creator>Anil Singh</dc:creator>
    <dc:date>2012-10-15T15:49:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI and rowsperpage=0 / pageNumber=0</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7643811" />
    <author>
      <name>GEERT DEWINTER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7643811</id>
    <updated>2012-10-15T14:19:22Z</updated>
    <published>2012-10-15T14:19:22Z</published>
    <summary type="html">thanks Anil,
I tried your first query and it gives me =&gt; syntax error
When putting all in lower case it returns =&gt; query returns more than the maximum allowable results, use rowsperpage query parameter to limit results: max=2000
Any ideas?
Thanks,
Geert
 </summary>
    <dc:creator>GEERT DEWINTER</dc:creator>
    <dc:date>2012-10-15T14:19:22Z</dc:date>
  </entry>
  <entry>
    <title>RE: CUPI and rowsperpage=0 / pageNumber=0</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7641795" />
    <author>
      <name>Anil Singh</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7641795</id>
    <updated>2012-10-15T13:36:50Z</updated>
    <published>2012-10-15T13:36:50Z</published>
    <summary type="html">Hi Geert,
Correct API that need to be called are:
1) https://XX.XX.XX.XX:8443/vmrest/users?rowsPerPage=100&amp;pageNumber=0
it will return total count of users.
2) https://XX.XX.XX.XX:8443/vmrest/users?rowsPerPage=100&amp;pageNumber=1
it will return users detail and you can here change page number to traverse.
 
Thanks
Anil Singh
 </summary>
    <dc:creator>Anil Singh</dc:creator>
    <dc:date>2012-10-15T13:36:50Z</dc:date>
  </entry>
  <entry>
    <title>CUPI and rowsperpage=0 / pageNumber=0</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7640146" />
    <author>
      <name>GEERT DEWINTER</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7640146</id>
    <updated>2012-10-15T12:56:56Z</updated>
    <published>2012-10-15T12:47:14Z</published>
    <summary type="html">Hi,
CUC Version 7
When I try "https://xx.xx.xx.xx:8443/vmrest/users?rowsperpage=0" as mentioned in the wiki, I always get the following result  :
&lt;code&gt;&lt;ErrorDetails&gt;&lt;errors&gt;&lt;code&gt;DATA_EXCEPTION&lt;/code&gt;&lt;message&gt;
query
 returns more than the maximum allowable results, use rowsperpage query 
parameter to limit results: 
max=2000&lt;/message&gt;&lt;/errors&gt;&lt;/ErrorDetails&gt;&lt;/code&gt;
 
Can anyone tell me how to get a number and not a list of all the users? 
 
When
 using the "pageNumber=0" option 
&lt;code&gt;&lt;ErrorDetails&gt;&lt;errors&gt;&lt;code&gt;DATA_EXCEPTION&lt;/code&gt;&lt;message&gt;A
 syntax error has 
occurred.&lt;/message&gt;&lt;/errors&gt;&lt;/ErrorDetails&gt;&lt;/code&gt;
 
Thanks,
Best Regards,
Geert</summary>
    <dc:creator>GEERT DEWINTER</dc:creator>
    <dc:date>2012-10-15T12:47:14Z</dc:date>
  </entry>
</feed>

