Skip to content

Notice invalid_input_files_in_subfolder not triggered if zip file and subfolder have the same name #1912

@praneethd7

Description

@praneethd7

Describe the bug

As the title says. Currently, the notice invalid_input_files_in_subfolder is not triggered when the zip file (without .zip) and the sub folder have the same name.

Possible Reason:
The condition is not satisfied here and the notice is not raised

if (containsSubfolder && entryName.contains(subfolder) && entryName.endsWith(".txt")) {

Steps/Code to Reproduce

Example Case [has subfolder piercetransit-wa-us--flex-v2]:
piercetransit-wa-us_zip.zip - Will raise the notice
piercetransit-wa-us--flex-v2.zip - Does not raise the notice

Expected Results

Image

Actual Results

Image

Screenshots

No response

Files used

No response

Validator version

6.0.0

Operating system

Windows

Java version

No response

Additional notes

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working (crash, a rule has a problem)good first issueGood task for newcomers to work on.status: Needs triageApplied to all new issues

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions