JAL-3070 set host URL correctly from parsed description in web service UIinfo
[jalview.git] / src / jalview / ws / rest / RestServiceDescription.java
index 285b795..b07f3b6 100644 (file)
@@ -67,7 +67,7 @@ public class RestServiceDescription
           boolean vseparable, char gapCharacter)
   {
     super();
-    this.details = new UIinfo(action, name, description);
+    this.details = new UIinfo(action, action, name, description, postUrl);
     this.postUrl = postUrl == null ? "" : postUrl;
     this.urlSuffix = urlSuffix == null ? "" : urlSuffix;
     if (inputParams != null)
@@ -521,7 +521,8 @@ public class RestServiceDescription
     {
       p++;
     }
-    details = new UIinfo(list[p + 1], list[p], list[p + 2]);
+    String action = list[p + 1], name = list[p], descrip = list[p + 2];
+
     invalid |= !configureFromServiceInputProperties(list[p + 3], warnings);
     if (list.length - p > 5 && list[p + 5] != null
             && list[p + 5].trim().length() > 5)
@@ -541,6 +542,7 @@ public class RestServiceDescription
         p += 5;
       }
     }
+    details = new UIinfo(action, action, name, descrip, postUrl);
     return invalid ? -1 : p;
   }