nextcloud / nextcloud/Android-SingleSignOn

SEARCH HTTP method is not supported

Open
#427 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
74
Forks
36
Avg merge
1d 19h
Merged PRs (30d)
17

Description

Issue

When trying to make a request using SEARCH method like desribed here, exception is thrown
https://docs.nextcloud.com/server/latest/developer_manual/client_apis/WebDAV/search.html

Example code:
val request = NextcloudRequest.Builder()  
        .setRequestBody(body)  
        .setMethod("SEARCH")  
        .setUrl(Uri.encode("/remote.php/dav/", "/"))  
        .build()
val response = nextcloudApi?.performNetworkRequestV2(request)
Exception:
com.nextcloud.android.sso.exceptions.NextcloudUnsupportedMethodException: The requested HTTP Method is not supported yet! Please contact the developers of the Android Single-On Library for Android

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the NextcloudRequest.Builder call using setMethod("SEARCH") and trace it into performNetworkRequestV2, where the unsupported-method exception is reported. Check how other HTTP methods are handled and add coverage for the example request; done means SEARCH no longer raises NextcloudUnsupportedMethodException.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
api, mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.