Skip to content

ExtensionContext does not enforce preconditions for publishFile() and publishDirectory() #4896

@sbrannen

Description

@sbrannen

ExtensionContext.publishFile() and ExtensionContext.publishDirectory() both document that the supplied file or directory name must not be null or blank.

However, AbstractExtensionContext (which is the implementation of the ExtensionContext interface) does not check if the supplied name is blank.

We should therefore revise the precondition checks to comply with the documented behavior.

Metadata

Metadata

Assignees

Type

No fields configured for Task.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions