EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Azure and Dropbox questions

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#36808
Posted: 05/26/2016 09:16:30
by Romana Romandini (Standard support level)
Joined: 10/22/2013
Posts: 34

Hello,
I have two questions

1)The file names that contains '&' character, in windows azure, are stipped from that character on. That causes problems on all transactions. What could be done about that?

2)AcquireObject, in dropbox,has as a 'path' parameter but it doesn't work. What's the problem? Can you provide an example of correct use of this method?

thanks in advance!
#36810
Posted: 05/26/2016 09:27:31
by Alexander Ionov (EldoS Corp.)

Thank you for reporting these.

Quote
Romana Romandini wrote:
1)The file names that contains '&' character, in windows azure, are stipped from that character on. That causes problems on all transactions. What could be done about that?

Could you please provide us with step-by-step instructions in order to reproduce this issue?

Quote
Romana Romandini wrote:
2)AcquireObject, in dropbox,has as a 'path' parameter but it doesn't work.

What exactly doesn't work for you? What do you get when call the AcquireObject method with Path parameter?


--
Best regards,
Alexander Ionov
#36811
Posted: 05/26/2016 09:59:16
by Romana Romandini (Standard support level)
Joined: 10/22/2013
Posts: 34

The version of SecureBlackBox libraries is the last one available on your site

1)
Code
NewPath := 'folder\test & test.txt'
Azure.WriteObject(AContainer, NewPath, Stream, '', '', '', nil, nil, nil);
Name will be 'folder\test '

2)
After connection established
Code
AObject: TElDropboxDataStorageObject;
   
Path := 'DropboxFolder/DropboxFileName'
AObject := Dropbox.AcquireObject(Path);
I get the error: "HTTP request failed with code 404, message is Not Found"
#36815
Posted: 05/27/2016 02:44:05
by Alexander Ionov (EldoS Corp.)

Quote
Romana Romandini wrote:
NewPath := 'folder\test & test.txt'
Name will be 'folder\test '

Thank you very much. We'll try to reproduce the issue on our side.

Quote
Romana Romandini wrote:
Path := 'DropboxFolder/DropboxFileName'
AObject := Dropbox.AcquireObject(Path);
I get the error: "HTTP request failed with code 404, message is Not Found"

Did you try to use "/DropboxFolder/DropboxFileName"?


--
Best regards,
Alexander Ionov
#36816
Posted: 05/27/2016 03:06:18
by Romana Romandini (Standard support level)
Joined: 10/22/2013
Posts: 34

Quote
Did you try to use "/DropboxFolder/DropboxFileName"?


Yes also it, but it doesn't work.
#36818
Posted: 05/27/2016 03:16:06
by Alexander Ionov (EldoS Corp.)

Thank you again. We'll check this.


--
Best regards,
Alexander Ionov
#36828
Posted: 05/27/2016 07:27:37
by Alexander Ionov (EldoS Corp.)

Regarding the Dropbox issue.
We cannot reproduce it. The code below:
Code
Obj := Dropbox.AcquireObject('/aaaa/quaqua/test.bin');
Log('Got: name = [' + Obj.Name + '], path = [' + Obj.Path + '], size = ' + Obj.SizeStr);
Obj.Release();

produces the following output:
Quote
Got: name = [test.bin], path = [/aaaa/quaqua/test.bin], size = 172.3 MB


But could you please check the value of EmbeddedMetadataMode property? If it is set to False, the component also requests a metadata file (used for security related features). If no such file exists in Dropbox, this may result in rasing of the reported exception, but it should be handled inside the component and must not be thrown outside of the methods. Just switch the property vaule to True to prevent the component from requesting metadata files (if you don't use the security related features - encryption and integrity protection).

Regarding the Azure issue.
We can reproduce it. We're going to find a reason of the bug and will get back to you as soon as we have any news.


--
Best regards,
Alexander Ionov
#36831
Posted: 05/27/2016 09:39:07
by Romana Romandini (Standard support level)
Joined: 10/22/2013
Posts: 34

Quote
But could you please check the value of EmbeddedMetadataMode property? If it is set to False, the component also requests a metadata file (used for security related features). If no such file exists in Dropbox, this may result in rasing of the reported exception, but it should be handled inside the component and must not be thrown outside of the methods. Just switch the property vaule to True to prevent the component from requesting metadata files (if you don't use the security related features - encryption and integrity protection).
EmbeddedMetadataMode was the problem. Thank you so much.

Quote
Regarding the Azure issue.
We can reproduce it. We're going to find a reason of the bug and will get back to you as soon as we have any news.
Thanks again
#36832
Posted: 05/27/2016 12:45:35
by Alexander Ionov (EldoS Corp.)

Well, we have found and fixed the bug in the Azure access component. The fix will be available in the next build of SecureBlackbox 15.

If you need the fix in currently available SecureBlackbox 14, have the sources and can rebuild the CloudBlackbox package, we can tell you what exactly to change to have the fix applied.


--
Best regards,
Alexander Ionov
#37201
Posted: 07/08/2016 03:28:14
by Romana Romandini (Standard support level)
Joined: 10/22/2013
Posts: 34

Sorry but,
the problem isn't solved
if the file has the '&' character in the name, this is the problem
code
Code
WindowsAzure.List(Container, Objs, Path, '', 0, LPrefixes, nil);

error
Quote
exception class EElWinAzureDataStorageError with message 'HTTP request failed with code 403, message is Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.'
Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.

Reply

Statistics

Topic viewed 2071 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!