Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce code duplication + bug fixes #11

Merged
merged 13 commits into from
Feb 14, 2024
Merged

reduce code duplication + bug fixes #11

merged 13 commits into from
Feb 14, 2024

Conversation

jstucke
Copy link
Collaborator

@jstucke jstucke commented Jan 26, 2024

based on #10 (should be merged first)

  • refactoring
    • moved common parts of http and https server to new base class
    • moved template code into files
    • moved duplicate methods to helper module
    • removed unused code
  • several bug fixes
    • fixed status logging bug in vnc server
    • fixed type error bugs in ssh server
    • fixed comparison bug in http and https servers
    • fixed missing imports in imap server
    • fixed parsing / logging bug in smb server
  • extended tests to account for fixes

@jstucke jstucke requested a review from euwint January 26, 2024 15:17
@jstucke jstucke self-assigned this Jan 26, 2024
@jstucke jstucke mentioned this pull request Feb 2, 2024
@jstucke jstucke changed the base branch from main to base-class February 7, 2024 14:42
@@ -65,8 +60,8 @@ def processCommand(self, command: bytes, *args):
"server": "pop3_server",
Copy link
Collaborator

Choose a reason for hiding this comment

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

should be _q_s.NAME

Copy link
Collaborator

Choose a reason for hiding this comment

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

also in line 107

return string.decode()
else:
return str(string)

def connectionMade(self):
_q_s.logs.info(
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

server should be _q_s.NAME

@euwint euwint merged commit 96732ee into base-class Feb 14, 2024
@jstucke jstucke mentioned this pull request Feb 14, 2024
@jstucke jstucke deleted the code-duplication branch February 14, 2024 08:29
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.

2 participants