dudiic / scheduler Goto Github PK
View Code? Open in Web Editor NEWApp for managing the timetable (rejected)
License: MIT License
App for managing the timetable (rejected)
License: MIT License
Change the date format to 24-hour (currently 12-hour) and fix incorrectly specifying minutes (do not match the actual state of affairs).
Add at least one assertion to this test case.
That test class should be removed.
When attempting to register a user, if the password is not correct, the JSON returns an unhashed string containing the proposed password in response. For example:
{
"timestamp": "2021-05-03 13:06:33",
"status": "400 BAD_REQUEST",
"message": "Validation error",
"details": [
{
"object": "registerDto",
"field": "password",
"rejectedValue": "PROPOSED PASSWORD", <<<=== visible password here
"message": "password must be 8-24 characters long"
}
]
}
For example for JSON:
{
"email": "[email protected]",
"username": "exampleUser"
}
Server returns status INTERNAL_SERVER_ERROR
instead of information from validator with BAD_REQUEST
status.
Description
Make "rejectedFields" transient or serializable.
Make sure disabling Spring Security's CSRF protection is safe here.
All implemented password validation fragments in your own @Password
annotation can be solved with the help of annotations provided by spring validator.
Remove duplicates in this character class.
Remove this method to simply inherit it.
After getting to know the libraries for testing better, I noticed a lot of anomalies and bad practices in this test class.
First, instead of marking everything with @Autowired
annotation, you can provide implementations using mockito, not using the entire spring, and an additional database for testing (because these are no longer unit tests). Like here:
This should have a significant impact on the test execution time because at the moment you can see a big difference to the other test classes.
Make sure the regex used here, which is vulnerable to polynomial runtime due to backtracking, cannot lead to denial of service.
Use try-with-resources or close this "ServletServerHttpResponse" in a "finally" clause.
To generate the documentation, a controller without implementation was created.
There is no information that the logic is implemented elsewhere.
The best solution is to rebuild so that authorization is done with a dedicated service instead of a request handler (based on this post).
This class has 6 parents which is greater than 5 authorized.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.