Query resource representation of recycle bin not working

RESTful knowledge exchange

Query resource representation of recycle bin not working

Veeam Logoby Mardock » Wed Dec 03, 2014 11:23 am

Hi,
I am building a piece of code to read a resource representation of a folder in the VM guest OS.

My code work well when I query any file system path like C:/Users or C:/ProgramData and so on.
When I query to get the content of recycle bin (C:/$Recycle.Bin) the server return the following message:
Code: Select all
 <?xml version="1.0" encoding="utf-8"?>
   <Error StatusCode="501"
      Message="File entity view is not supported."
      xmlns="http://www.veeam.com/ent/v1.0"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>


I make the following HTTP GET:
1) /catalog/vms/{vmname}/vmRestorePoints /{ID}/guestfs/C:/$Recycle.Bin?action=listAll
2) /catalog/vms/{vmname}/vmRestorePoints /{ID}/guestfs/C:/$Recycle.Bin?action=listFiles&pageSize=10&page=1


Suggestions on how to go about resolving this?

Thak you.
Mardock.
Mardock
Influencer
 
Posts: 19
Liked: never
Joined: Thu Jul 10, 2014 3:40 pm

Re: Query resource representation of recycle bin not working

Veeam Logoby v.Eremin » Wed Dec 03, 2014 1:50 pm

Tracked as a bug; should be fixed in one of the next patches. Thank you for drawing our attention!
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Query resource representation of recycle bin not working

Veeam Logoby tsightler » Wed Dec 03, 2014 8:22 pm

Mardock wrote:I make the following HTTP GET:
1) /catalog/vms/{vmname}/vmRestorePoints /{ID}/guestfs/C:/$Recycle.Bin?action=listAll
2) /catalog/vms/{vmname}/vmRestorePoints /{ID}/guestfs/C:/$Recycle.Bin?action=listFiles&pageSize=10&page=1


Curious, have you tried encoding the "$" sign in the URL?

/catalog/vms/{vmname}/vmRestorePoints /{ID}/guestfs/C:/%24Recycle.Bin?action=listAll
tsightler
Veeam Software
 
Posts: 4768
Liked: 1737 times
Joined: Fri Jun 05, 2009 12:57 pm
Full Name: Tom Sightler

Re: Query resource representation of recycle bin not working

Veeam Logoby nefes » Thu Dec 04, 2014 10:21 am

Tom, unfortunately it won't help. Problem is in dot, not in dollar sign.
nefes
Veeam Software
 
Posts: 534
Liked: 125 times
Joined: Mon Dec 10, 2012 8:44 am
Full Name: Nikita Efes

Re: Query resource representation of recycle bin not working

Veeam Logoby Mardock » Thu Dec 04, 2014 1:24 pm

Hi,
I have tried encoding the "$" and the "." signs in the URL but the server returns the same error. :-(

Thank you,
Mardock.
Mardock
Influencer
 
Posts: 19
Liked: never
Joined: Thu Jul 10, 2014 3:40 pm

Re: Query resource representation of recycle bin not working

Veeam Logoby v.Eremin » Thu Dec 04, 2014 1:30 pm

As mentioned, we've marked that as a bug. According to the plan, the problem should be addressed in one of the next patches. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to RESTful API



Who is online

Users browsing this forum: No registered users and 2 guests