jcledera / sardine

Automatically exported from code.google.com/p/sardine
0 stars 0 forks source link

Got BAD REQUEST from Sharepoint when list of custom properties to remove is empty #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Sardine sardine= SardineFactory.begin("...", "...");
sardine.setCredentials(...);
sardine.setCustomProps(
   url
   , new HashMap<String, String>(){{
      put("Author", "me");
   }}
   , new ArrayList<String>()
);

If 3rd parameter contains at least one property name, everything is ok.

Original issue reported on code.google.com by serge.sh...@gmail.com on 9 Jun 2011 at 9:21

GoogleCodeExporter commented 9 years ago
Can you test against the latest version in trunk. The custom properties support 
was rewritten. See Sardine#patch().

Original comment by dkocher@sudo.ch on 9 Jun 2011 at 1:49

GoogleCodeExporter commented 9 years ago
If the issue persists, please paste the HTTP transcript.

Original comment by dkocher@sudo.ch on 9 Jun 2011 at 1:49

GoogleCodeExporter commented 9 years ago
Use the logging configuration attached and add it to your classpath to get the 
HTTP wire log.

Original comment by dkocher@sudo.ch on 9 Jun 2011 at 1:51

Attachments:

GoogleCodeExporter commented 9 years ago
Tried with new version. 

Have no BAD REQUEST, but got another issues. For example, put method returned 
w/o any errors, but file wasn't created.

Will create new issues probably when logs will be available.

Thanks.

Original comment by serge.sh...@gmail.com on 9 Jun 2011 at 1:54

GoogleCodeExporter commented 9 years ago
In r266.

Original comment by dkocher@sudo.ch on 9 Jun 2011 at 4:17