ReaderRevenueSubscriptionLinking: Unexpected POST Request Instead of PATCH When Calling `UpdateEntitlements`
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Bắt đầu với phương thức UpdateEntitlements được tạo trong SubscriptionLinking.java tại dòng mã nguồn được tham chiếu, sau đó theo dõi cách NetHttpTransport và ApacheHttpTransport tạo request. Tái hiện lệnh gọi với các phiên bản thư viện được liệt kê và so sánh các phương thức HTTP được gửi; hoàn tất khi NetHttpTransport gửi PATCH cho UpdateEntitlements giống như ApacheHttpTransport.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 725
- Fork
- 394
- Merge trung bình
- 45 phút
- Pull request đã merge (30 ngày)
- 240
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googleapis/google-api-java-client-services
-
priority: p3 type: docs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
-
priority: p3 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 50/100
googleapis/google-api-java-client-services#29581 · 2 bình luận ·
-
priority: p3 type: bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
googleapis/google-api-java-client-services#26505 · 7 bình luận · 1 reaction ·
-
priority: p3 type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Tất cả issue của googleapis/google-api-java-client-services
Issue tương tự
-
executions.Query — startDate and timeRange filters are sent with inverted comparison operators Đang mởarea/plugin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
kestra-io/plugin-kestra#190 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Add canonical URLs and a sitemap Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/rocketmq-dashboard#5064 ·