ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.92k stars 1.1k forks source link

After converting the picture to Base64 and creating an image (CreateImage), and inserting it into a table, an abnormal permission is caused. #2908

Closed viest closed 16 hours ago

viest commented 2 months ago

This issue is unique.

Operating System of DocumentServer

Docker

Version information

8.1.3-4

Expected Behavior

Insert a table and ensure that the pictures in the table are displayed normally.

Actual Behavior

Before inserting a table, the document can be edited normally on the webpage. However, after inserting a table, the following situation occurs:

Webpage prompts: "No permission. Please contact the administrator."

DocumentServer Log: nodeJS - error commandImgurls: access deny nodeJS - conn.user.view||isCloseCoAuthoring access deny: type = getLock nodeJS - conn.user.view||isCloseCoAuthoring access deny: type = getLock

Reproduction Steps

let oRunDrawing = Api.CreateRun();
oRunDrawing.AddDrawing(Api.CreateImage("data:image/jpeg;base64,......", 60 * 36000, 35 * 36000));

let oInlineLvlSdt = Api.CreateInlineLvlSdt();
oInlineLvlSdt.AddElement(oRunDrawing);

oCell.GetContent().GetElement(0).AddElement(oInlineLvlSdt);

Additional information

No response

l8556 commented 1 month ago

Hello @viest !

It was not possible to reproduce this issue.

Try to update the version of the document server to a current version.

If the problem reoccurs, please describe the steps to reproduce in more detail and send the complete document builder script.

Tested on DS version 8.2.0.143

Rita-Bubnova commented 16 hours ago

This issue was closed due no response.