Server will send the full URL in X-Object-Public
authorChristos KK Loverdos <loverdos@gmail.com>
Mon, 10 Jun 2013 13:12:04 +0000 (16:12 +0300)
committerChristos KK Loverdos <loverdos@gmail.com>
Mon, 10 Jun 2013 13:12:04 +0000 (16:12 +0300)
So there is no need to concatenate stuff.

Refs #3965

src/gr/grnet/pithos/web/client/FileShareDialog.java

index c314801..eea2c02 100644 (file)
@@ -118,7 +118,7 @@ public class FileShareDialog extends AbstractPropertiesDialog {
     private final HorizontalPanel privatePathPanel = new HorizontalPanel();
     private final TextBox privatePathText = new TextBox();
     private PermissionsList permList;
-       
+
     public interface PrivateSharingImages extends MessagePanel.Images {
 
         @Source("gr/grnet/pithos/resources/edit_user.png")
@@ -234,7 +234,7 @@ public class FileShareDialog extends AbstractPropertiesDialog {
                     Pithos.preventIESelection();
                 }
             });
-            publicPathText.setText(Window.Location.getHost() + file.getPublicUri());
+            publicPathText.setText(file.getPublicUri());
             publicPathText.setTitle("Use this link for sharing the file via e-mail, IM, etc. (crtl-C/cmd-C to copy to system clipboard)");
             publicPathText.setReadOnly(true);
             publicPathPanel.add(publicPathText);