Revision 259d316d

b/trunk/Pithos.Interfaces/AccountSettings.cs
57 57

  
58 58
        public Uri AccountKey
59 59
        {
60
            get { return new Uri(new Uri(ServerUrl,UriKind.Absolute),AccountName); }
60
            //get { return new Uri(new Uri(ServerUrl,UriKind.Absolute),AccountName); }
61
            //In the new AUTH, Username is a GUID and the StorageUri is different from the account root Uri
62
            get { return new Uri(AccountName,UriKind.Relative); }
63

  
61 64
        }
62 65

  
63 66

  
b/trunk/Pithos.Network/AccountInfo.cs
53 53

  
54 54
        public Uri AccountKey
55 55
        {
56
            get{return new Uri(StorageUri,"../" + UserName);}
56
            //get{return new Uri(StorageUri,"../" + UserName);}
57
            //In the new AUTH, Username is a GUID and the StorageUri is different from the account root Uri
58
            get { return new Uri(UserName,UriKind.Relative); }
57 59
        }
58 60
        
59 61
        private string _accountPath;
b/trunk/Pithos.Network/CloudFilesClient.cs
167 167
            _userCatalogUrl = "https://pithos.okeanos.io/user_catalogs";
168 168
            //Get the root address (StorageUrl without the account)
169 169
            var storageUrl = StorageUrl.AbsoluteUri;
170
            var usernameIndex = storageUrl.LastIndexOf(UserName);
171
            var rootUrl = storageUrl.Substring(0, usernameIndex);
172
            RootAddressUri = new Uri(rootUrl);
170
            //var usernameIndex = storageUrl.LastIndexOf(UserName);
171
            //var rootUrl = storageUrl.Substring(0, usernameIndex);
172
//            RootAddressUri = new Uri(rootUrl);
173
            RootAddressUri = new Uri(storageUrl);
173 174

  
174 175
            var httpClientHandler = new HttpClientHandler
175 176
            {

Also available in: Unified diff