Fix the response uri when making a GET request by username to /pithos/rest/users/
[pithos] / src / gr / ebs / gss / client / FileList.java
index e23187c..db4a970 100644 (file)
@@ -17,7 +17,7 @@
  * along with GSS.  If not, see <http://www.gnu.org/licenses/>.
  */
 package gr.ebs.gss.client;
-
+import gr.ebs.gss.client.commands.GetUserCommand;
 import gr.ebs.gss.client.dnd.DnDSimpleFocusPanel;
 import gr.ebs.gss.client.dnd.DnDTreeItem;
 import gr.ebs.gss.client.rest.GetCommand;
@@ -674,7 +674,13 @@ public class FileList extends Composite implements ClickHandler {
                                                "(view)" + "</a>");
                        else
                                table.setHTML(i, 1, file.getName());
-                       table.setText(i, 2, file.getOwner());
+
+                       if(GSS.get().findUserFullName(file.getOwner()) == null){
+                               GetUserCommand guc = new GetUserCommand(file.getOwner());
+                               guc.execute();
+                               GSS.get().putUserToMap(file.getOwner(), file.getOwner());
+                       }
+                       table.setText(i, 2, GSS.get().getUserFullName(file.getOwner()));
                        table.setText(i, 3, file.getPath());
                        table.setText(i, 4, String.valueOf(file.getVersion()));
                        table.setText(i, 5, String.valueOf(file.getFileSizeAsString()));