ReaderRevenueSubscriptionLinking: Unexpected POST Request Instead of PATCH When Calling `UpdateEntitlements`
まだ誰も着手していません。
評価
調査の方向性
参照されているソース行にある SubscriptionLinking.java の生成された UpdateEntitlements メソッドから始め、次に NetHttpTransport と ApacheHttpTransport がリクエストをどのように構築するかを追跡します。記載されているライブラリバージョンで呼び出しを再現し、送出される HTTP メソッドを比較します。NetHttpTransport が ApacheHttpTransport と同様に UpdateEntitlements に対して PATCH を送信すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When instantiating SubscribewithGoogle using com.google.api.client.http.javanet.NetHttpTransport, and calling the UpdateEntitlements method from the Reader Revenue Subscription Linking API (v1), a POST request is sent instead of the expected PATCH request.
Reference:
UpdateEntitlements method source
https://github.com/googleapis/google-api-java-client-services/blob/700b41fb705bb8b817f5d4103ccfed5f411866e6/clients/google-api-services-readerrevenuesubscriptionlinking/v1/2.0.0/com/google/api/services/readerrevenuesubscriptionlinking/v1/SubscriptionLinking.java#L649
Environment details
-
OS Type and Version
Windows 11 (64-bit) -
Java Version
1.8.0_60
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) Client VM (build 25.60-b23, mixed mode) -
Library Versions
implementation 'com.google.api-client:google-api-client:2.6.0'
implementation 'com.google.auth:google-auth-library-oauth2-http:1.23.0'
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20240709-2.0.0'
implementation 'com.google.apis:google-api-services-readerrevenuesubscriptionlinking:v1-rev20250611-2.0.0'
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
- Build Tools
- Gradle 7.0.2
- Apache Ant(TM) version 1.10.9
- JVM: 1.8.0_60 (Oracle Corporation 25.60-b23)
Steps to reproduce
- Instantiate
SubscribewithGoogleusingcom.google.api.client.http.javanet.NetHttpTransport. - Call the
UpdateEntitlementsmethod from the Reader Revenue Subscription Linking API v1.
Any additional information below
Additionally, although deprecated, we confirmed that using an instance of com.google.api.client.http.apache.ApacheHttpTransport results in a PATCH request being sent as expected.
- 主要言語
- Java
- スター
- 725
- フォーク
- 394
- 平均マージ
- 45分
- マージ済み PR(30日)
- 240
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
googleapis/google-api-java-client-services のほかの issue
-
priority: p3 type: docs
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
-
priority: p3 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
googleapis/google-api-java-client-services#29581 · コメント 2 件 ·
-
priority: p3 type: bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
googleapis/google-api-java-client-services#26505 · コメント 7 件 · リアクション 1 件 ·
-
priority: p3 type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
googleapis/google-api-java-client-services の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
HL7/fhir-ig-publisher#1375 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
Flaky: a relaunched catch-up replay can still report catching up right after its marker is written オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
johanhaleby/occurrent#1134 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
objectionary/jeo-maven-plugin#1811 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100