Remove `routes-compiler-injected-routes-compilation` scripted test as duplicate by ihostage · Pull Request #13230 · playframework/playframework · GitHub
Skip to content

Remove routes-compiler-injected-routes-compilation scripted test as duplicate#13230

Open
ihostage wants to merge 1 commit intoplayframework:mainfrom
ihostage:drop-routes-compiler-injected-routes-compilation
Open

Remove routes-compiler-injected-routes-compilation scripted test as duplicate#13230
ihostage wants to merge 1 commit intoplayframework:mainfrom
ihostage:drop-routes-compiler-injected-routes-compilation

Conversation

@ihostage
Copy link
Copy Markdown
Member

@ihostage ihostage commented Apr 4, 2025

StaticRoutesGenerator was removed more than 7 years ago (#8049) and InjectedRoutesGenerator has become the only possible way. Therefore, I see no reason to have a two very similar scripted tests.

After analysing the difference between routes-compiler-injected-routes-compilation and routes-compiler-routes-compilation folders I copied some cases that were not covered by routes-compiler-routes-compilation and completely removed routes-compiler-injected-routes-compilation.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This case is covered by routes-compiler-routes-compilation-java

@ihostage ihostage force-pushed the drop-routes-compiler-injected-routes-compilation branch from 335d689 to 33277b5 Compare April 4, 2025 14:05
GET /take-list controllers.Application.takeList(x: List[Int])
GET /take-list-tick-param controllers.Application.takeListTickedParam(`b[]`: List[Int])
GET /take-java-list controllers.Application.takeJavaList(x: java.util.List[java.lang.Integer])
GET /take-ticked-params controllers.Application.takeTickedParams(`b[]`: List[Int], `b%%`: String)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This case was moved to routes-compiler-routes-compilation-java

Comment on lines -43 to -46
it("should properly escape the host", function() {
var data = jsRoutesBadHost.controllers.Application.index();
assert(data.absoluteURL().indexOf("'}}};alert(1);a={a:{a:{a:'") >= 0)
});
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check was moved to routes-compiler-routes-compilation

Comment on lines -110 to -119
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check was moved to routes-compiler-routes-compilation

@ihostage ihostage force-pushed the drop-routes-compiler-injected-routes-compilation branch from 33277b5 to 0b1f871 Compare October 20, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

2 participants