Commit 6f1e544c authored by Sylvain Renault's avatar Sylvain Renault
Browse files

Bug fixed for the issue related to the new response format.

Bug fixed for the issue with the header token (added a function in the IHttpInterface).
parent 6fbf9394
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -562,7 +562,7 @@ namespace ETSI.ARF.WorldStorage.UI
                        TrackableRequest.CreateTrackableAsync(worldStorageServer, trackable, (response) =>
                        {
                            //change the uuid in its edges, if there is a new edge to be added in the world storage it needs to have the correct uuid
                            String uuid = response.result;
                            String uuid = response.result.Message;

                            uuid = uuid.Replace("\"", "");
                            foreach (ARFEdgeLink edge in aRFNodeTrackable.portIn.connections)
@@ -592,8 +592,7 @@ namespace ETSI.ARF.WorldStorage.UI

                        WorldAnchorRequest.CreateWorldAnchorAsync(worldStorageServer, worldAnchor, (response) =>
                        {

                            String uuid = response.result;
                            String uuid = response.result.Message;
                            //change the uuid in its edges, if there is a new edge to be added in the world storage it needs to have the correct uuid
                            uuid = uuid.Replace("\"", "");
                            foreach (ARFEdgeLink edge in aRFNodeWorldAnchor.portIn.connections)
@@ -659,7 +658,7 @@ namespace ETSI.ARF.WorldStorage.UI
                        WorldLink worldLink = aRFEdgeLink.worldLink;
                        WorldLinkRequest.CreateWorldLinkAsync(worldStorageServer, worldLink, (response) =>
                        {
                            string uuid = response.result;
                            string uuid = response.result.Message;
                            uuid = uuid.Replace("\"", "");

                            aRFEdgeLink.worldLink.UUID = Guid.Parse(uuid);
+3 −3
Original line number Diff line number Diff line
@@ -524,7 +524,7 @@ namespace ETSI.ARF.WorldStorage.Editor.Windows

                        WorldAnchorRequest.CreateWorldAnchorAsync(SaveInfo.instance.worldStorageServer, worldAnchor, (response) =>
                        {
                            String uuid = response.result;
                            String uuid = response.result.Message;

                            //change the uuid in its edges, if there is a new edge to be added in the world storage it needs to have the correct uuid
                            uuid = uuid.Replace("\"", "");
@@ -977,7 +977,7 @@ namespace ETSI.ARF.WorldStorage.Editor.Windows
                        trackable.KeyvalueTags["unityAuthoringPosY"] = posY;
                        TrackableRequest.CreateTrackableAsync(SaveInfo.instance.worldStorageServer, trackable, (response) =>
                        {
                            String uuid = response.result;
                            String uuid = response.result.Message;

                            //change the uuid in its edges, if there is a new edge to be added in the world storage it needs to have the correct uuid
                            uuid = uuid.Replace("\"", "");
@@ -1239,7 +1239,7 @@ namespace ETSI.ARF.WorldStorage.Editor.Windows
                        {
                            WorldLinkRequest.CreateWorldLinkAsync(SaveInfo.instance.worldStorageServer, worldLink, (response) =>
                            {
                                String uuid = response.result;
                                String uuid = response.result.Message;

                                //Add the newly saved WorldLink to the SaveInfo singleton
                                uuid = uuid.Replace("\"", "");
+2 −2
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ namespace ETSI.ARF.WorldStorage.UI
                    Trackable obj = GenerateObject();
                    TrackableRequest.UpdateTrackableAsync(worldStorageServer, obj, (response) =>
                    {
                        UUID = response.result;
                        UUID = response.result.Message;
                        UUID = UUID.Trim('"'); //Bugfix: remove " from server return value

                        if (WorldStorageWindow.WorldStorageWindowSingleton != null)
@@ -313,7 +313,7 @@ namespace ETSI.ARF.WorldStorage.UI
            Trackable obj = GenerateObject();
            TrackableRequest.CreateTrackableAsync(worldStorageServer, obj, (response) =>
            {
                UUID = response.result;
                UUID = response.result.Message;
                UUID = UUID.Trim('"'); //Bugfix: remove " from server return value
                WorldStorageWindow.WorldStorageWindowSingleton.GetTrackables();
            });
+2 −2
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ namespace ETSI.ARF.WorldStorage.UI
                    WorldAnchor obj = GenerateObject();
                    WorldAnchorRequest.UpdateWorldAnchorAsync(worldStorageServer, obj, (response) =>
                    {
                        UUID = response.result;
                        UUID = response.result.Message;
                        UUID = UUID.Trim('"'); //Bugfix: remove " from server return value

                        if (WorldStorageWindow.WorldStorageWindowSingleton != null)
@@ -291,7 +291,7 @@ namespace ETSI.ARF.WorldStorage.UI
            WorldAnchor obj = GenerateObject();
            WorldAnchorRequest.CreateWorldAnchorAsync(worldStorageServer, obj, (response) =>
            {
                UUID = response.result;
                UUID = response.result.Message;
                UUID = UUID.Trim('"'); //Bugfix: remove " from server return value
                WorldStorageWindow.WorldStorageWindowSingleton.GetWorldAnchors();
            });
+2 −2
Original line number Diff line number Diff line
@@ -275,7 +275,7 @@ namespace ETSI.ARF.WorldStorage.UI
                    WorldLink obj = GenerateObject();
                    WorldLinkRequest.UpdateWorldLinkAsync(worldStorageServer, obj, (response) =>
                    {
                        UUID = response.result;
                        UUID = response.result.Message;
                        UUID = UUID.Trim('"'); //Bugfix: remove " from server return value

                        if (WorldStorageWindow.WorldStorageWindowSingleton != null)
@@ -469,7 +469,7 @@ namespace ETSI.ARF.WorldStorage.UI
            WorldLink obj = GenerateObject();
            WorldLinkRequest.CreateWorldLinkAsync(worldStorageServer, obj, (response) =>
            {
                UUID = response.result;
                UUID = response.result.Message;
                UUID = UUID.Trim('"'); //Bugfix: remove " from server return value
                WorldStorageWindow.WorldStorageWindowSingleton.GetWorldLinks();
            });
Loading