"Private message coordinators" stuck in sending
Describe the bug When on a case page like the below it's not possible to use the "private message" function as the messages can't be sent
To Reproduce Steps to reproduce the behavior:
- Go to https://kb.cert.org/vince/comm/case/2467/
- Click on 'Private Message Coordinators'
- Put message in the content field and click "Send" button
- no error, but the button only changes to "sending" and then nothing more happens
Expected behavior Messages is being sent and the UI reflects that (given that I haven't received a response after several weeks, I think it's safe to assume this is not a display issue of the UI, but the message really isn't sent.
Platform details several users tried Windows and Mac, Safari, FF, Edge, Brave, ...
Hi @ubremer1234
Thank you for reporting this issue. Our investigation so far suggests that the "Private Message" tool failed for you earlier today because the application was unable to process an attachment that you wanted to include with your message. To help our diagnosis, it will be useful to know whatever you are able to tell us about that attachment (file type, size, etc.). And--if this works for what you need to communicate with the coordinators--you can try sending the message without the attachment.
I never tried to attach anything ...
In this Case the problem seems to be the Title field of this Vulnerability Case is too long. When creating a new Thread for Discussion, the subject field includes the full Title field of the Case which is limited too 150 characters. So it failed in line below
https://github.com/CERTCC/VINCE/blob/c55d9c9da3e60762bd496ab1c0758687886ab451/vinny/models.py#L1556-L1558
TacePath is
https://github.com/CERTCC/VINCE/blob/c55d9c9da3e60762bd496ab1c0758687886ab451/vinny/forms.py#L376-L379
to
https://github.com/CERTCC/VINCE/blob/c55d9c9da3e60762bd496ab1c0758687886ab451/vinny/forms.py#L456
to
https://github.com/CERTCC/VINCE/blob/c55d9c9da3e60762bd496ab1c0758687886ab451/vinny/models.py#L1693-L1703
to
https://github.com/CERTCC/VINCE/blob/c55d9c9da3e60762bd496ab1c0758687886ab451/vinny/models.py#L1556-L1558
So my recommendation is to truncate the Subject field in the thread if longer than 150 characters in the Message class helper method new_message
Hi, thank you for attempting to provide a workaround, but:
- it would only be a workaround, so I'd recommend that the code is fixed to deal with longer subject lines (which are derived from the case title, which is out of the control of the author of the resp. message)
- as the subject is outside of control of the author the workaround can't be applied. Regards Ulf
Hi, thank you for attempting to provide a workaround, but:
- it would only be a workaround, so I'd recommend that the code is fixed to deal with longer subject lines (which are derived from the case title, which is out of the control of the author of the resp. message)
- as the subject is outside of control of the author the workaround can't be applied. Regards Ulf
BTW As a work around, the Coordinator has also reduced the Title field for this specific Case to allow for your posting to work as expected. The Bug tag is being tracked for fixing in our next release in the code for long term.
Thanks for shortening the title: That allowed me to send my message.