I think I have set up the Hubic developer stuff correctly and have got the Key and Secret Key.
Now in the TMS Demo App I can't get it to connect.
What should I use for the HubicCallBack?
I have tried http://localhost/ but I don't know if this is correct or even if this is the problem.
Any help much appreciated
Graham
Hi,
For example: https://www.tmssoftware.com/
For example: https://www.tmssoftware.com/site/default.asp
I need to know exactly what to set up in the Hubic developer configuration and what to set in the demo program.
Your example CallBackURL does not seem to work with or without a / at the end.
I just want this to work in the same way as DropBox etc. as follows:
Click Connect
Type in the login details
The Auth form closes and returns to my application.
Any more sugggestions?
Graham
Can you please make sure the port number is included in the redirect domain of your Hubic developer configuration?
Well it's getting better with the 8888 added.
Now what happens is that before it asks you for the login details for the authorization, you get a couple of JSON error screens pop up. If you click through these and then enter the login details all appears to be fine.
OK, not a problem. Now on to the next issue.
Login to Hubic and the directory structure is displayed.
Navigate down to some empty folder and try and delete it.
Boom... exception generated.
The problem appears to be in "CloudCustomOpenStack"
Possible bodge fix shown below:
if Assigned(Item) then
begin
//Only empty folders may be deleted.
//If the item is a folder, first delete all subfolders and files
if (Assigned(Item.Folder)) and //ADDED THIS BECAUSE IT'S NIL IN THIS CASE
(Item.ItemType = ciFolder) then
begin
for I := 0 to Item.Folder.Count - 1 do
Delete(Item.Folder.Items);
end;
url := FOpenStackEndpoint + '/' + FOpenStackContainer + '/' + (ci as TOpenStackItem).ID;
AddHeader(headers, 'X-Auth-Token', FopenStackToken);
res := HttpsDelete(extractserver(url), removeserver(url), headers, resdat);
if (res = 204) then
begin
Result := true;
end;
end;
This issue was fixed internally.
The update will be available with the next release of the TMS Cloud Pack.
OK, thanks.
There is also an issue with uploading a file to an empty folder. It looks like a similar problem.
Issues with empty folders have been fixed.
The update will be available with the next release of the TMS Cloud Pack.