jakartaee / jakartaee/servlet

Part.write(String) is system dependent

Open
#345 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
325
Forks
112
PR merge metrics
No merged PRs in 30d

Description

The API [`Part.write(String)`](https://jakarta.ee/specifications/servlet/4.0/apidocs/javax/servlet/http/Part.html#write-java.lang.String-) takes a system dependent string that can either be a path or a filename. This can make it difficult to write portable code.

A possible solution is to provide alternative methods should be provided, one that takes a `File` and another that explicitly takes a URI path.

Contributor guide

Open the contributing guide

Research direction

Start with the Part.write(String) API definition linked in the issue and review how its path-or-filename behavior is specified. Compare the proposed File and URI-path alternatives with the existing API conventions and compatibility requirements. Done means the API change and its portability semantics are agreed and specified; no test or implementation file is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.