Skip to content

Conversation

@pwgit-create
Copy link
Contributor

Stefan, I hope this pull request brings you happiness 😃

- Changed text in constants and log prints
 - Changed Java Docs
- Added File-Quarantine Artifact into dependency’s
- Bumped version number to pom.xml into 1.4 for an upcoming release
… into related service packages

- Added Serial annotation to all PWSS Backend Annotations
 - Bumped serial number to 2 for the exiting Exception Classes
- Created File Isolation Component
- Added two methods in FileService
- Created File Controller
 - added 2 endpoints
 - updated the `FileController` class with JavaDoc comments and Swagger annotations
 - added JavaDocs and Swagger annotations to the `QuarantineFileRequest` class
 - enhanced the `UnQurantineFileRequest` class with JavaDoc comments and Swagger annotations
- Created 2 new Exception classes
- Added new logger entry into logback.xml
- Added 3 new entries into .gitignore
@pwgit-create pwgit-create requested a review from lilstiffy October 5, 2025 20:00
@pwgit-create pwgit-create linked an issue Oct 5, 2025 that may be closed by this pull request
log.error("{} has no diffs and can not be quarantined", file.getBasename());
throw new QuarantineFailedException(
"File has no diffs and can not be quarantined");
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Great safe guard 🛡️
We like our users to avoid accidents 🥇

return true;
}

// Basic pattern to detect common injection patterns. This is not foolproof.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not foolproof but miles better than nothing! 🥇

Copy link
Contributor Author

@pwgit-create pwgit-create Oct 6, 2025

Choose a reason for hiding this comment

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

What is foolproof in the world of IT-Security, my dear friend? Yes, better than nothing. In a world where people are truthful about IT, this validation method would still fetch a significant price. You and I are both honest workers and humans. The reason why I enjoy working on a project with you, Comrade Stefan, is because of that! @lilstiffy

image image image

Copy link
Collaborator

Choose a reason for hiding this comment

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

Exactly comrade, you put it well!
I love the validation methods 🤩

Copy link
Collaborator

@lilstiffy lilstiffy left a comment

Choose a reason for hiding this comment

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

Best PR to date, you really came back strong after the sickness! 🥇
My reaction to the PR:
Image

@lilstiffy lilstiffy merged commit f3d5310 into develop Oct 6, 2025
2 checks passed
@lilstiffy lilstiffy deleted the 239-implement-quarantine-function-for-backend-server branch October 6, 2025 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Quarantine Function for Backend Server

3 participants