Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not Found after upgrade from 2.7.0 to 2.19.0 (2.8.0) #1507

Open
Toprakete opened this issue Jul 26, 2024 · 0 comments
Open

File not Found after upgrade from 2.7.0 to 2.19.0 (2.8.0) #1507

Toprakete opened this issue Jul 26, 2024 · 0 comments

Comments

@Toprakete
Copy link

Hi,
I want to list files of a folder. I did this with:


public boolean requestFileList() {
	ReadFolderRemoteOperation refreshOperation;
	// prepare client
	prepare();
	// request
	if (TextUtils.isEmpty(mFolder)) {
		refreshOperation = new ReadFolderRemoteOperation(FileUtils.PATH_SEPARATOR);
	} else {
		refreshOperation = new ReadFolderRemoteOperation(FileUtils.PATH_SEPARATOR + mFolder);
	}

	refreshOperation.execute(mClient, new OnRemoteOperationListener() {
		@Override
		public void onRemoteOperationFinish(RemoteOperation operation, RemoteOperationResult result) {
			if (!result.isSuccess()) {
				mProjectHandlerDelegate.projectDataDownloadFailed(result.getHttpCode(), result.getLogMessage());
			} else {
				// create db filelist
				processFileList ((ReadFolderRemoteOperation)operation, result);
			}
		}
	}, mHandler);
}

private void prepare()
{
	// already inited?
	if (mClient != null) return;
	// create client
	Uri serverUri = Uri.parse(mServer);
	mClient = OwnCloudClientFactory.createOwnCloudClient(serverUri, getContext(), true);
	mClient.setCredentials(
			OwnCloudCredentialsFactory.newBasicCredentials(
					mLogin,
					mPassword
			)
	);
}

This worked fine, until I upgraded to 2.19.0 (it happens already in 2.8.0).
The result is then 404, File not Found
As I saw the the query url has a null where the userid should be.
How can I fix this?
Thx and br
Klaus

@Toprakete Toprakete changed the title File not Found after uipgrade from 2.7.0 to 2.19.0 (2.8.0) File not Found after upgrade from 2.7.0 to 2.19.0 (2.8.0) Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant