RESTful knowledge exchange
Post Reply
Mardock
Influencer
Posts: 23
Liked: never
Joined: Jul 10, 2014 3:40 pm
Contact:

Query resource representation of recycle bin not working

Post by Mardock »

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.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Query resource representation of recycle bin not working

Post by veremin »

Tracked as a bug; should be fixed in one of the next patches. Thank you for drawing our attention!
tsightler
VP, Product Management
Posts: 6009
Liked: 2842 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Query resource representation of recycle bin not working

Post by tsightler »

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
nefes
Veeam Software
Posts: 643
Liked: 162 times
Joined: Dec 10, 2012 8:44 am
Full Name: Nikita Efes
Contact:

Re: Query resource representation of recycle bin not working

Post by nefes »

Tom, unfortunately it won't help. Problem is in dot, not in dollar sign.
Mardock
Influencer
Posts: 23
Liked: never
Joined: Jul 10, 2014 3:40 pm
Contact:

Re: Query resource representation of recycle bin not working

Post by Mardock »

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

Thank you,
Mardock.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Query resource representation of recycle bin not working

Post by veremin »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests