Skip to content

Fixed an issue preventing chat message to be reported in some versions of Skype for Business.#12122

Merged
seanbudd merged 4 commits into
nvaccess:masterfrom
CyrilleB79:reportSFBChatMessages
Nov 29, 2021
Merged

Fixed an issue preventing chat message to be reported in some versions of Skype for Business.#12122
seanbudd merged 4 commits into
nvaccess:masterfrom
CyrilleB79:reportSFBChatMessages

Conversation

@CyrilleB79

@CyrilleB79 CyrilleB79 commented Mar 4, 2021

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #9295

Summary of the issue:

In Skype for Business (at least Office 2016, version 16.0.5095.1000), the incoming messages are not reported and an error occurs in the log instead.
This error show that the message has a value set to None whereas the code expects a string in order to parse it.
(cf. #9295 (comment) for more details)

Description of how this pull request fixes the issue:

  • If the message value is None, parse only the message name to split the content from author and timestamp parts. For this, we just look at ", , " separators.
  • If the message is not None, use as previously the message name and the message value to split author, content and timestamp of the message.

I suppose that the message value may be None or not according to Skype / Lync version. I do not had the opportunity to check however on other Skype / Lync version.

I did not remove the old way to do because of the following comment:

# Example string: "Michael Curran : , , Hello\r\n\r\nThis is a test , 10:45 am."
In this comment, we can see that there is no ', , ' separator between content and timestamp. Did it change between various versions of Skype / Lync? Or is the example in the comment just not correct? Since I do not know, I have kept the two paths.

Testing strategy:

  • Tested on Skype for Business, Office 2016, version 16.0.5095.1000).
  • Would need to be tested on other versions: Lync (Office 2013), Office 365
    However, since I have not found someone to test on other versions of Skype for Business, the old path (when message value is not None) will be tested on alpha. I have taken care however to keep as much as possible the old path code in order to limit risks of regression.
  • It does not seem to me that unit tests are required for such modifications.
  • I do not think that we have an environment to perform system tests on Skype for Business or more generally Office.

Known issues with pull request:

Missing tests on other versions of Office due to lakc of testers; will be tested on alpha.

Change log entry:

Section: Bug fixes
The incoming messages in the chat of Skype for Business are reported again. (#9295)

Code Review Checklist:

This checklist is a reminder of things commonly forgotten in a new PR.
Authors, please do a self-review and confirm you have considered the following items.
Mark items you have considered by checking them.
You can do this when editing the Pull request description with an x: [ ] becomes [x].
You can also check the checkboxes after the PR is created.

  • Pull Request description is up to date.
  • Unit tests.
  • System (end to end) tests.
  • Manual tests.
  • User Documentation.
  • Change log entry.
  • Context sensitive help for GUI changes.

@CyrilleB79

CyrilleB79 commented Mar 4, 2021

Copy link
Copy Markdown
Contributor Author

Looking for other people that may test this PR in other versions of Office before setting this PR as ready:

  • Office 2013 / Lync
  • Office 2016 more recent than mine
  • Office 365
    Thanks!
    Also cc @fernando-jose-silva:

Could you test on your side that the build in this PR resolves #9295?

@CyrilleB79

Copy link
Copy Markdown
Contributor Author

@Qchristensen would you be able to test it?
Or could you Cc people that may be able to do this test on various versions of Office?
Thanks.

@CyrilleB79

Copy link
Copy Markdown
Contributor Author

Also a reminder for @fernando-jose-silva: if you can test this build and indicate your version of Office/Skype. Thanks.

@fernando-jose-silva

fernando-jose-silva commented Mar 10, 2021 via email

Copy link
Copy Markdown

@CyrilleB79

Copy link
Copy Markdown
Contributor Author

@michaelDCurran: since you are the original author of the Lync app module (in #7287) could you please do the tests made when introducing #7287 in order to check that this PR does not break anything.

Marking this PR as ready since everything is made on my side.
If some additional tests are required, just let me know if you know someone else that could do it.
Thanks.

@CyrilleB79 CyrilleB79 marked this pull request as ready for review April 22, 2021 14:20
@CyrilleB79 CyrilleB79 requested a review from a team as a code owner April 22, 2021 14:20
@CyrilleB79 CyrilleB79 requested a review from seanbudd April 22, 2021 14:20

@seanbudd seanbudd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this and sorry for the delay in reviewing. I think this is a relatively safe change as content where self.value is None is going to be broken right now regardless and this will only improve handling. It would be good to log some information that allows us to figure out how to extract content if a version of Lync doesn't match that formatting.

Comment thread source/appModules/lync.py Outdated
@seanbudd seanbudd marked this pull request as draft May 20, 2021 23:52
@lukaszgo1

Copy link
Copy Markdown
Contributor

@CyrilleB79 Is this still on your radar?

@CyrilleB79

Copy link
Copy Markdown
Contributor Author

@lukaszgo1 thanks for the reminder. I must confess that I had not imagined that this issue would have impacted other people that may have updated their version of Office. Thus I had let it apart...

I will perform the corrections and do the tests when I have the opportunity.

@CyrilleB79 CyrilleB79 marked this pull request as ready for review November 26, 2021 16:01
@CyrilleB79 CyrilleB79 requested a review from seanbudd November 26, 2021 16:02
@CyrilleB79

Copy link
Copy Markdown
Contributor Author

@seanbudd your comments should be addressed now. Sorry for the delay.

@seanbudd seanbudd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @lukaszgo1

@seanbudd seanbudd merged commit 07069ab into nvaccess:master Nov 29, 2021
@nvaccessAuto nvaccessAuto added this to the 2022.1 milestone Nov 29, 2021
@CyrilleB79 CyrilleB79 deleted the reportSFBChatMessages branch November 29, 2021 08:25
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.

nvda does not automatically read messages received on skype for business

5 participants