mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 02:17:41 +00:00 
			
		
		
		
	Use userId instead of username to build the webdavurl
This commit is contained in:
		
							parent
							
								
									634c4a0f93
								
							
						
					
					
						commit
						351682cc7f
					
				| @ -52,17 +52,9 @@ public class AccountUtils { | |||||||
|      */ |      */ | ||||||
|     public static String getWebDavUrlForAccount(Context context, Account account) |     public static String getWebDavUrlForAccount(Context context, Account account) | ||||||
|             throws AccountNotFoundException { |             throws AccountNotFoundException { | ||||||
|         String webDavUrlForAccount = ""; |  | ||||||
| 
 | 
 | ||||||
|         try { |         return getBaseUrlForAccount(context, account) + OwnCloudClient.WEBDAV_FILES_PATH_4_0 | ||||||
|             OwnCloudCredentials ownCloudCredentials = getCredentialsForAccount(context, account); |                 + AccountUtils.getUserId(account, context); | ||||||
|             webDavUrlForAccount = getBaseUrlForAccount(context, account) + OwnCloudClient.WEBDAV_FILES_PATH_4_0 |  | ||||||
|                     + ownCloudCredentials.getUsername(); |  | ||||||
|         } catch (OperationCanceledException | AuthenticatorException | IOException e) { |  | ||||||
|             Timber.e(e); |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         return webDavUrlForAccount; |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user