aws / aws/amazon-s3-encryption-client-java

Range queries for undefined start or end bytes fails due to regex

Open
#182 3 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
34
Forks
21
PR merge metrics
No merged PRs in 30d

Description

### Problem:

Range queries without a start or end byte range fail due to https://github.com/aws/amazon-s3-encryption-client-java/blob/main/src/main/java/software/amazon/encryption/s3/legacy/internal/RangedGetUtils.java#L21.

### Solution:

Adjust the regex to allow for start or end byte range to not exist.

Contributor guide

Open the contributing guide

Research direction

Start by reading src/main/java/software/amazon/encryption/s3/legacy/internal/RangedGetUtils.java at line 21 and trace how range queries are parsed. Reproduce requests with an undefined start or end byte, then verify both forms are accepted without breaking fully specified ranges.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, java
Domain
api, backend, cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.