API: getrenditions // list of ids not working!?

Hi,

it’s about this API call: http://wiki.razuna.com/display/ecp/Asset+API2#AssetAPI2-Getrenditionsofasset
It says for “assetid” parameter: “The id of the asset or a list of id’s (delimited with a “,”)”

So, here’s a sample of mine which works:
localhost/razuna/global/api2/asset.cfc?method=getrenditions&api_key=MYAPIKEYHERE&assettype=img&assetid=36D898E25ACC4B7D88F4DDCAD07942B2

or

localhost/razuna/global/api2/asset.cfc?method=getrenditions&api_key=MYAPIKEYHERE&assettype=img&assetid=C9D8316E64A247908DD196D10DE61629


Now I want renditions of 2 assets - which doesn’t work
localhost/razuna/global/api2/asset.cfc?method=getrenditions&api_key=MYAPIKEYHERE&assettype=img&assetid=36D898E25ACC4B7D88F4DDCAD07942B2, C9D8316E64A247908DD196D10DE61629

or without whitespace doesn’t work either
localhost/razuna/global/api2/asset.cfc?method=getrenditions&api_key=MYAPIKEYHERE&assettype=img&assetid=36D898E25ACC4B7D88F4DDCAD07942B2,C9D8316E64A247908DD196D10DE61629


What’s wrong with the string!?

We will take a look at this and reply to you soon.

Thanks

Any progress?

Hi Sushimaster ,

We are still testing with this , will update to you when we finish it.

Thanks

We tested this and it is working for us. Not sure why your API call doesn’t work. Here is the code, I’m using:

localhost:8080/razuna/global/api2/asset.cfc?method=getrenditions&api_key=3C8EBADF8CBF4A7487275DCA3665BD39&assetid=EFAE5D923BA142BF9537E76D141FA8A6,294801FD2F9246D997C157BC59F839BE

(assettype is deprecated)

As I mentioned before, I’m using Razuna self-hosted out-of-the-box. I just installed everything according your installation guide, no special deals. The only change: I’m using MySQL.

I get this error when trying to use more then one asset id:

{“COLUMNS”:[“responsecode”,“message”],“DATA”:[[“1”,“No permissible data
or action found for user! If you believe this is a mistake then please
check with your administrator to ensure that you have appropriate
permissions for access.”]]}

The problem is the folder permission check within the API code. When I bypass that (e.g. permission to “R”), the function is working properly.

I guess that function isn’t working with multiple IDs on a MySQL system (I guess you checked it against an installation with H2 db?)

Our tests are against multiple databases and with different API calls and
folder permissions. Speaking of, maybe your user is not assigned to the
folder or doesn’t have permissions to view the folder?

I can’t do anything without being able to replicate it.