Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit ed1958f

Browse files
author
alainv@google.com
committed
o Fix issue with resumable upload on update requests.
1 parent fbf8f8e commit ed1958f

4 files changed

Lines changed: 6 additions & 16 deletions

File tree

RELEASE_NOTES.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
Google Data API - Release Notes
2+
Notes for v1.47.1
3+
-----------------
4+
o Fix issue with resumable upload on update requests.
5+
26
Notes for v1.47.0
37
-----------------
48
o Use Google Guava library (version 11) instead of google-collections.
5-
o Add OAuth 2.0 support leveraging Google OAuth Client for Java http://code.google.com/p/google-oauth-java-client/).
9+
o Add OAuth 2.0 support leveraging Google OAuth Client for Java (http://code.google.com/p/google-oauth-java-client/).
610
o Fix date-time format in Audit API's AccountInfo class.
711
o Update Email Settings API samples to use new filter actions and multple domains.
812
o Update Provisioning API sample to add support for multi-domain aliases.
0 Bytes
Binary file not shown.

java/src/com/google/gdata/client/media/MediaService.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -680,27 +680,13 @@ URL createResumableUpdateSession(
680680
URL editMediaUrl, IEntry entry, MediaFileSource file, boolean isMediaOnly)
681681
throws IOException, ServiceException {
682682

683-
/**
684-
* All resumable update requests need to be POST with x-http-method-override
685-
* set to PUT. Set the system property to enable httpoverride.
686-
*/
687-
String methodOverrideProperty = System.getProperty(
688-
HttpGDataRequest.METHOD_OVERRIDE_PROPERTY);
689-
System.setProperty(HttpGDataRequest.METHOD_OVERRIDE_PROPERTY, "true");
690683
GDataRequest request;
691684
if (isMediaOnly) {
692685
request = createRequest(GDataRequest.RequestType.UPDATE, editMediaUrl,
693686
new ContentType(file.getContentType()));
694687
} else {
695688
request = createUpdateRequest(editMediaUrl);
696689
}
697-
if (methodOverrideProperty != null) {
698-
System.setProperty(
699-
HttpGDataRequest.METHOD_OVERRIDE_PROPERTY, methodOverrideProperty);
700-
} else {
701-
System.clearProperty(HttpGDataRequest.METHOD_OVERRIDE_PROPERTY);
702-
}
703-
704690
initResumableMediaRequest(request, file, null);
705691
if (entry.getEtag() != null) {
706692
request.setEtag(entry.getEtag());

java/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ youtube.spec.version=2.0
2424
webmastertools.spec.version=2.0
2525

2626
# Implementation version
27-
client.impl.version=1.47.0
27+
client.impl.version=1.47.1
2828
media.impl.version=1.0.2
2929
appsforyourdomain.impl.version=1.3.1
3030
analytics.impl.version=2.3.0

0 commit comments

Comments
 (0)