Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

filepath, filename gets correctly set in send_message #370

Merged
merged 1 commit into from
Oct 5, 2018

Conversation

viklund
Copy link
Member

@viklund viklund commented Sep 28, 2018

filepath, filename gets correctly set in send_message

Also updated the names of the parameters so that they don't get
overwritten by the function body - this reduces the amount of state one
has to keep track of when reading and/or updating the function.

Describe the pull request:

  • Bug fix
  • Functional change
  • New feature
  • Code cleanup
  • Build system change
  • Documentation change
  • Language translation

Changes made:

  1. notifications.py - fixed bug according to above

Steps to reproduce the original issue

  1. Checkout 1f9d197 and make sure that all docker images are built against that revision
  2. Set log = console in private/lega/conf.ini
  3. run docker-compose up
  4. run make upload in a different terminal inside the docker/test directory

The (relevant) log output from docker-compose will be:

inbox          | [lega.notifications][ INFO ] (L41) Using chroot isolation
inbox          | [lega.notifications][ INFO ] (L73) User ega-box-999 uploaded /file.txt.c4ga
inbox          | [lega.utils.checksum][ERROR ] (L43) Unable to calculate checksum: IsADirectoryError(21, 'Is a directory')
inbox          | Received disconnect from 192.168.240.1 port 54852:11: disconnected by user
inbox          | Disconnected from user ega-box-999 192.168.240.1 port 54852

Also updated the names of the parameters so that they don't get
overwritten by the function body - this reduces the amount of state one
has to keep track of when reading the function.
Copy link
Contributor

@silverdaz silverdaz left a comment

Choose a reason for hiding this comment

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

Can you show a bug trace, please? (with some example)

@blankdots blankdots merged commit 2808442 into dev Oct 5, 2018
@blankdots blankdots deleted the bugfix/inbox-filename branch October 5, 2018 04:52
viklund pushed a commit that referenced this pull request Nov 22, 2018
filepath, filename gets correctly set in send_message
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants