JAL-3070 set host URL correctly from parsed description in web service UIinfo
authorJim Procter <jprocter@issues.jalview.org>
Thu, 2 Aug 2018 10:07:59 +0000 (11:07 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 2 Aug 2018 10:07:59 +0000 (11:07 +0100)
src/jalview/ws/rest/RestServiceDescription.java

index 9268975..b07f3b6 100644 (file)
@@ -521,8 +521,8 @@ public class RestServiceDescription
     {
       p++;
     }
-    details = new UIinfo(list[p + 1], list[p + 1], list[p], list[p + 2],
-            postUrl);
+    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)
@@ -542,6 +542,7 @@ public class RestServiceDescription
         p += 5;
       }
     }
+    details = new UIinfo(action, action, name, descrip, postUrl);
     return invalid ? -1 : p;
   }