[Bug 65443] Allow subclassing CorsFilter

2021-07-09 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65443 --- Comment #1 from Christopher Schultz --- Sounds like a perfect opportunity for you to supply a patch (attached here) or a pull-request via GitHub. I would support its inclusion into Tomcat. -- You are receiving this mail because: You are t

[Bug 65443] Allow subclassing CorsFilter

2021-07-09 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65443 --- Comment #2 from ekkelenk...@gmail.com --- Just created a pull request: https://github.com/apache/tomcat/pull/432 -- You are receiving this mail because: You are the assignee for the bug.

[Bug 65443] Allow subclassing CorsFilter

2021-07-10 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65443 --- Comment #3 from Konstantin Kolinko --- (In reply to ekkelenkamp from comment #2) > Just created a pull request: https://github.com/apache/tomcat/pull/432 I am -0. Wouldn't it be better to provide configuration methods for those settings (

[Bug 65443] Allow subclassing CorsFilter

2021-07-11 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65443 --- Comment #4 from ekkelenk...@gmail.com --- Indeed I would prefer if there is a configuration method available for those settings. I just assumed the state was immutable. The setAllowedOrigins would have to set the anyOriginAllowed variable as

[Bug 65443] Allow subclassing CorsFilter

2021-07-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65443 --- Comment #5 from Mark Thomas --- The initial implementation was clearly on the basis that the state was set during init() and then never changed but if you have a requirement to change it then I don't see a good reason not to refactor the co

[Bug 65443] Allow subclassing CorsFilter

2021-07-13 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65443 --- Comment #6 from ekkelenk...@gmail.com --- Thanks for the feedback. The requirement is indeed to be able to configure the allowed origins at runtime. Should I provide a pull request for this enhancement or is this kind of refactoring done

[Bug 65443] Allow subclassing CorsFilter

2021-07-21 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65443 --- Comment #7 from ekkelenk...@gmail.com --- Just to let you know, I found a convenient way to get the job done without changing the code. Simply extending the getInitParameter method, does the job. As a reference, this is the pseudo setup of m

[Bug 65443] Allow subclassing CorsFilter

2021-07-21 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65443 --- Comment #8 from Christopher Schultz --- This violates the servlet spec, but hey if you want to do that in your code, it's fine. Honestly, I was hoping you'd end up writing a proper patch because I think this is a good idea to have in the b

[Bug 65443] Allow subclassing CorsFilter

2021-07-26 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65443 Mark Thomas changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug 65443] Allow subclassing CorsFilter

2021-07-27 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=65443 --- Comment #10 from ekkelenk...@gmail.com --- Thanks for providing the change. I'll use it in my code once available in the new releases. -- You are receiving this mail because: You are the assignee for the bug. --