Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mdt-papyrus.dev] Risk of loosing a model when the richtext editor is used in Papyrus

Hi,

 

Happy new year to all of you!

 

I’m on a MAC OSX platform and I noticed some problems when the Richtext editor is activated in the Documentation view.

  • The text is cut and paste from MS Word to the Documentation view :
    • When the model is saved the following exception is raised : java.lang.RuntimeException: An invalid XML character (Unicode: 0x16) was found in the element content:…
    • The <model>.uml file content is deleted => the size of the file is set to 0
    • The model is then lost, no way to recover the content. (Unless retrieving an earlier version from a source control like GIT or SVN)

This is a severe problem, I haven’t tried it on another platform.

The word text had bullets, bold texts, and hyperlinks.

The cut and paste worked well apparently, but the problem came afterward, when the model was saved.

This UseCase is not a marginal one.

 

To fix that issue, forbidden XML characters should be filtered during the Paste operation.

 

Another minor problem is that when one clicks on an object that have richtext documentation, and the Document View is open, the dirty flag of the model is set. It is as if the model had changed.

 

PS: Only the advanced rich text editor was enabled.

 

Regards,

Maurice

 

 

 

 

#
" Ce courriel et les documents qui lui sont joints peuvent contenir des informations confidentielles, être soumis aux règlementations relatives au contrôle des exportations ou ayant un caractère privé. S'ils ne vous sont pas destinés, nous vous signalons qu'il est strictement interdit de les divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit le contenu. Toute exportation ou réexportation non autorisée est interdite Si ce message vous a été transmis par erreur, merci d'en informer l'expéditeur et de supprimer immédiatement de votre système informatique ce courriel ainsi que tous les documents qui y sont attachés."
******
" This e-mail and any attached documents may contain confidential or proprietary information and may be subject to export control laws and regulations. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. Unauthorized export or re-export is prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system."
#

Back to the top