OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
687 stars 95 forks source link

Numbering Styles do not work on WOPI host (CSPP) #4698

Open aeturneus opened 3 months ago

aeturneus commented 3 months ago

We have created Word templates containing numbering styles that work fine in desktop and O365, but fail in the WOPI word editor provided by CSPP (the Microsoft Cloud Storage Partner Program)

In our environment, opening a template containing auto-numbering styles results in the document being rendered without any numbers displayed, as shown in the example screenshot:

image

As soon as any change is made to the document, the document re-renders with numbering displayed, however there are added characters in the numbering for certain headings (% character is added), as shown in the example screenshot:

image

Your Environment

Expected behavior

The document should open with numbering styles correclty rendered.

Current behavior

Numbering styles do not render in the document.

Steps to reproduce

  1. Open a document with numbering styles in our WOPI editor (credentials available on request)

Link to live example(s)

  1. alternatively, use our production application test account (I will provide credentials if requested)

Context

This bug prevents our production application from being used in WOPI, limiting our ability to deploy this tool to thousands of lawyers across Canada and the United States - it's a critical use case for us.

aeturneus commented 3 months ago

@xiruatms may be related to https://github.com/OfficeDev/office-js/issues/4640

aeturneus commented 3 months ago

Possibly related to this issue https://github.com/OfficeDev/office-js/issues/4684

xiruatms commented 3 months ago

@aeturneus , thanks for reporting this.

Please help to clarify following questions for me:

  1. when a template file with auto-numbering style (which style please?) is opened in WOPI, there's no number displayed. There's nothing related directly to JS codes, correct?
  2. What do you mean by "any changes is made to the document"? Simply typing on editor can trigger this, correct?
  3. Do you have any testing template file for us the verify this please?
aeturneus commented 3 months ago

@xiruatms thanks for taking a look

  1. Correct, the issue appears upon opening the document and does not require any JS activity to reproduce
  2. Correct, typing in the editor can trigger re-rendering and cause numbering styles to appear
  3. Template file attached - numbers render correctly in Word Online but not in WOPI environment numbering-style-issue-example.docx Screenshot 2024-07-23 at 11 12 59 AM
C-monC commented 3 months ago

I can confirm I get the same behavior. No Numbering initially. I then type a single key. The page spasms and inserts image the characters %1.%2.%3.... over every tab char/new line?? under the numbered heading.

aeturneus commented 3 months ago

@xiruatms gentle bump - this is affecting our production application and making most of our forms unusable currently, any path to resolution would be greatly appreciated

xiruatms commented 3 months ago

@aeturneus , thanks for your patience. Our experts are working on this. To make sure we're on the same page, will you please share the credentials to access your WOPI? Please submit the information using:https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR9NvrlmrippKsMvh4kTM325URVZMWjYyQTVOTVNLTUo5VzFRTTcyNU1RSy4u

Thanks.

aeturneus commented 3 months ago

@xiruatms let us know if there is anything further required to investigate this issue - continues to be a high priority problem for us and many other organizations using WOPI

mcg-kahootz commented 3 months ago

I can confirm seeing similar behaviour when opening documents using numbering styles. Sometimes the document will load with no numbering at all and in other instances the numbering starts at 11 instead of 1. Setting a new numbering value (creating a new list from 1) in Word on the desktop does not alter how the numbering is represented in WOPI.

Any updates on a fix?

aeturneus commented 3 months ago

Have to be the squeaky wheel as this is such a major blocking issue for our team - really hoping for a fix soon

xiruatms commented 3 months ago

Thank you for your patience. We've made great progress on this. Codes to fix are being carefully prepared and under review.

C-monC commented 2 months ago

I think this has been fixed.

aeturneus commented 2 months ago

@xiruatms @C-monC it's not completely fixed - when content is inserted into the document it appears to be added at the wrong list level (all top level numbering, instead of further list levels as originally styled)

however at least the numbering appears! image

C-monC commented 2 months ago

Glad you caught that. The issue remains... My list gets flattened into bullets on a reopen. image

image

aeturneus commented 2 months ago

@xiruatms any update on this one? Still critical for us.

shanshanzheng-dev commented 2 months ago

Hi @aeturneus Sorry for slow response, we have recently checked in a fix, and it'll take sometime to be available in PROD. Thanks

aeturneus commented 2 months ago

@shanshanzheng-dev that is great to hear. Thank you for the update!

aeturneus commented 1 month ago

@shanshanzheng-dev any idea when this will be available in PROD?

shanshanzheng-dev commented 1 month ago

Hi @aeturneus seem it deploys to PROD now. You can try it if still happened. Thanks.

aeturneus commented 1 month ago

@shanshanzheng-dev still seeing the same bug behaviour

shanshanzheng-dev commented 1 month ago

could you try to update a new build version?

aeturneus commented 1 month ago

@shanshanzheng-dev this is word online build 20240919.2

shanshanzheng-dev commented 1 month ago

Hi @aeturneus I'm confirming this issue with experts. Will update later.

aeturneus commented 1 month ago

@shanshanzheng-dev were you able to reproduce the issue or do you need any further information from me?

aeturneus commented 1 month ago

@qinliuMSFT let us know if you need any more info - eagerly awaiting a resolution for last few months!

aeturneus commented 1 month ago

@qinliuMSFT it seems the issue is the paragraph listlevel is not being set even though the list style is correctly set

qinliuMSFT commented 4 weeks ago

Hi @aeturneus, I'm testing on version 20241015.5 and I'm experiencing the following behavior, can you help confirm if you're requesting a correction for this behavior?

When I edit the numbering style in a document in the WOPI environment, everything goes well and I get something like this: image

Then I close the document and re-open, I found the numbering style mixed up, as shown below image

aeturneus commented 3 weeks ago

Hi @aeturneus, I'm testing on version 20241015.5 and I'm experiencing the following behavior, can you help confirm if you're requesting a correction for this behavior?

This seems closely related to our issue. We can reproduce the same flattened list behaviour by using office-js to show hidden content, or hiding content then showing it, using our Word add-in. The hidden content is always flattened even if it was originally nested with multiple list levels. It seems that you are able to reproduce the same problem by closing and opening the document without office-js.

aeturneus commented 3 weeks ago

@qinliuMSFT does that answer your question?

qinliuMSFT commented 3 weeks ago

Hi @aeturneus , thanks for your supplement! It has been put on our backlog #9185124, the team will investigate and we will reply to you as soon as there is any progress. Thank you for your patience.

aeturneus commented 3 weeks ago

@qinliuMSFT it would be very helpful to know if we can expect a fix in weeks, or months, or indefinitely to determine whether to invest resources into a costly workaround.

qinliuMSFT commented 3 weeks ago

Hi @aeturneus , at this time, we do not have a specific timeline to share. Based on the information provided, the issue does not seem to be directly related to Office-JS code, as it can be reproduced without any JavaScript activity. We are collaborating with the Word Web team to further investigate and resolve the issue. However, this process may take some time as it is outside our direct control. We appreciate your understanding and continued patience.

aeturneus commented 1 week ago

@qinliuMSFT understood, please let us know if there is anything we can do to assist or expedite resolution.