Deserialization on attachment id as Integer out of range
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Bắt đầu bằng cách xác định model attachment và luồng deserialization của Gson được sử dụng cho các message của Slack. Tái hiện issue với attachment id được hiển thị trong report, sau đó thêm coverage cho một id nằm ngoài phạm vi. Hoàn thành khi các message chứa id đó được deserialize thành công mà không gặp Exception đã nêu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Slack has generated attachments with id values that cannot be parsed into Java Integers. As a result, the Bolt SDK fails when reading those messages.
Team: T34263EUF / E7T5PNK3P
Channel: C08KGS622HL
Message TS: 1746210816.491199
"attachments": [
{
...
"id": 8861161648288
}
]
Reproducible in:
The Slack SDK version
1.45.2
Java Runtime version
17
OS info
n/a
Steps to reproduce:
Deserializing a message with an attachment that has an id that is too large for a Java Integer fails.
Expected result:
Parsing succeeds
Actual result:
An exception is thrown:
java.lang.NumberFormatException: Expected an int but was 8861161648288 at line 157 column 26 path $.attachments[0].id
com.google.gson.JsonSyntaxException:
at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:229)
at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:219)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:41)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82)
at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222)
at com.google.gson.Gson.fromJson(Gson.java:963)
at com.google.gson.Gson.fromJson(Gson.java:928)
at com.google.gson.Gson.fromJson(Gson.java:877)
at com.google.gson.Gson.fromJson(Gson.java:848)
Requirements
Please make sure if this topic is specific to this SDK. For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.
- Ngôn ngữ chính
- Java
- Star
- 602
- Fork
- 235
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc 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 slackapi/java-slack-sdk
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
slackapi/java-slack-sdk#1653 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Upgrade JettyCó thể đã có người làm @skrcode đã nhận 39 ngày trước. Đang mởauto-triage-skip dependencies good first issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
slackapi/java-slack-sdk#1567 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
auto-triage-skip discussion enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
slackapi/java-slack-sdk#1535 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Workflows, Slack Apps and formsĐang mởauto-triage-skip question untriaged
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
slackapi/java-slack-sdk#1528 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update okhttp to 5.xĐang mởauto-triage-skip dependencies project:slack-api-client project:slack-app-backend
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
slackapi/java-slack-sdk#1500 · 11 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của slackapi/java-slack-sdk
Issue tương tự
-
[BUG] 订单:会员凭订单号即可取消其他会员的待付款订单(取消接口不校验订单归属)Có thể đã có người làm @dadiyang đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
macrozheng/mall#1016 ·
-
[Bug] The producer summary counts an unreported client version as a second version and warns about a version mixCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
apache/rocketmq-dashboard#6110 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Python 3.15 supportCó thể đã có người làm @amnesiaof đã nhận hôm nay. Đang mởL: python L: python:uv
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dependabot/dependabot-core#16524 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`Processing lsp` never exits and leaves orphaned processesCó thể đã có người làm @overcast302 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
processing/processing4#1578 · 1 bình luận ·
-
bug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PlayersCommittee/gemp-swccg-public#1174 ·
Maintainer thường phản hồi trong vòng 2 ngày