- Issue created by @douggreen
- Status changed to Needs review
over 1 year ago 1:46pm 20 March 2023 - πΊπΈUnited States douggreen Winchester, VA
The attached patch adds the addition exception handler.
This also has some refactoring, cleanup, and also does the Symfony 4 upgrade (see π Symfony > 4.4 uses getThrowable Fixed ). I apologize for mixing so many issues. I hope that you can commit this as-is.
- πΊπΈUnited States douggreen Winchester, VA
Attached patch is for the 2.x d9 branch.
- Assigned to Grevil
- π©πͺGermany Anybody Porta Westfalica
Thank you very much! @Grevil could you review this carefully please?
- πΊπΈUnited States douggreen Winchester, VA
Updated patches use dependency injection to create the ban.ip_manager; the 3.x patch also has a re-roll so that it applies.
- πΊπΈUnited States douggreen Winchester, VA
Updated patch has a minor change to remove an unnecessary permission check.
- Issue was unassigned.
- Status changed to Needs work
over 1 year ago 11:08am 19 May 2023 - π©πͺGermany Anybody Porta Westfalica
@douggreen thank you, could you please use a MR instead of patches?
- last update
over 1 year ago 2 pass - @douggreen opened merge request.
- πΊπΈUnited States douggreen Winchester, VA
Ping, I made a PR a while ago, please re-review.
- Status changed to Needs review
over 1 year ago 2:00pm 23 June 2023 - First commit to issue fork.
- last update
over 1 year ago 2 pass - Status changed to RTBC
over 1 year ago 2:34pm 23 June 2023 - π©πͺGermany Grevil
Wow! Great and clean code! Well done!
This will make the whole class way cleaner and tidier, thanks! π
LGTM!
I would usually ask for a test, BUT since:
- We currently only have simple installation tests.
- The test would need fast404 as a dependency
I would be fine without one, what do you think @Anybody?
- π©πͺGermany Anybody Porta Westfalica
Thanks, I agree this really looks good. Best would be indeed to have tests. @douggreen could you help with that?
If not, it should please be at least tested manually to ensure nothing breaks. Did you already do that @Grevil?
Tests should be added in β¨ Write functionality tests Needs review please. - π©πͺGermany Grevil
No, I have only reviewed the code, since apart from the fast404 support the general code hasn't changed much, just generally "moved" and refactored a bit, to be clearer, but surely I can test this! :)
- π©πͺGermany Grevil
Just tested it and it works great!
Enable the default "$settings['fast404_exts']" (including the .asp extension) in the settings php.
Enable perimeter without the patch applied and check that the .asp extension will get you banned.
Go to "/bla.asp" β it will throw a fast404 not found
Apply the patch and clear caches
Go to "/bla.asp" β you are bannedRTBC for testing!
I added a notice inside β¨ Write functionality tests Needs review to test this via test case in the future, but for now, I will merge this!
- Status changed to Fixed
over 1 year ago 3:09pm 29 June 2023 -
Grevil β
committed e910c8e4 on 3.x authored by
douggreen β
#3349053 - Make perimeter compatible with fast404 module and use DI for...
-
Grevil β
committed e910c8e4 on 3.x authored by
douggreen β
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
3 months ago 11:11am 8 September 2024 - π©πͺGermany Anybody Porta Westfalica
For the records: The approach taken here by crowdsec might also be interesting: π Change scanning detection method to also work with Fast404 and other handlers Fixed