<?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>Limit on number of items in playlist created via REST API?</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=" />
  <subtitle>Limit on number of items in playlist created via REST API?</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=</id>
  <updated>2013-05-18T12:23:29Z</updated>
  <dc:date>2013-05-18T12:23:29Z</dc:date>
  <entry>
    <title>RE: Limit on number of items in playlist created via REST API?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3752465" />
    <author>
      <name>Alex Cowan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3752465</id>
    <updated>2011-04-19T23:54:02Z</updated>
    <published>2011-04-19T23:54:02Z</published>
    <summary type="html">Just as an aside... If the same XML (or even larger) is submitted via command line curl then it works as expected. No idea why libcurl and the DMS API Tester both fail in Tomcat.

# curl -v
curl 7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
Protocols: tftp ftp telnet dict ldap ldaps http file https ftps 
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 

# curl -d @test.xml -0 https://USERNAME:PASSWORD@DMMIPADDRESS:8443/xTAS-core/api/rest/playlist --insecure -H "Content-Type: application/xml;charset=UTF-8" --verbose</summary>
    <dc:creator>Alex Cowan</dc:creator>
    <dc:date>2011-04-19T23:54:02Z</dc:date>
  </entry>
  <entry>
    <title>Limit on number of items in playlist created via REST API?</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3745431" />
    <author>
      <name>Alex Cowan</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=3745431</id>
    <updated>2011-04-19T04:50:39Z</updated>
    <published>2011-04-19T04:50:05Z</published>
    <summary type="html">Hi,
 
We're creating playlists on a 5.2.2 DMM via the playlist_add service and we're running into issues if we have more than 18 elements in our playlists.
We are able to reproduce the issue both via our software submitting the XML and via the DMS API Tester (AIR application). The DMS API Tester only allows us to select 5.2.1 or 5.2 (we're running against 5.2.2) but all other methods work.
 
The following XML file consists of 20 identical items (assetID of 550) with 10 second durations: http://pastebin.com/QW8gYTYP
Submitting the XML via the DMS API Tester results in a 500 error with no additional information provided.
 
If two Items are removed (18 total items down from 20) then the playlist addition submits successfully with a 200 return code.
The playlist can then be increased in size via the DMM web interface to have 20+ items, so the error is not a function of the playlist created, but rather the API.
 
If the same XML is submitted by our application then we get the following Apache Tomcat error back: http://pastebin.com/rMGv3WBP
 
Is this a known issue? If so, is there a plan to address in the upcoming release?
 
Thanks very much.</summary>
    <dc:creator>Alex Cowan</dc:creator>
    <dc:date>2011-04-19T04:50:05Z</dc:date>
  </entry>
</feed>

