Skip to main content

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

Hi!
Regarding the zero-length .uml file caused by serialisation failing to handle strange characters: please check bugzilla 507972. Was pretty annoying. And easy to fall afoul of…
BR/Ulf O, formerly known as ulf.i.olsson@xxxxxxxxxxxx

PS: I claim no responsibility for the typo in the subject line: should of course be “losing” (not being able to find) and not “loosing” (setting free), but  then I guess some automation tool deep in the Eclipse dungeons barfs…
PS/2: pardon the previous comment, useless nitpicking is a major personality fault of mine...

On 3 Jan 2018, at 11:50, mdt-papyrus.dev-request@xxxxxxxxxxx wrote:

Send mdt-papyrus.dev mailing list submissions to
mdt-papyrus.dev@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev
or, via email, send a message with subject or body 'help' to
mdt-papyrus.dev-request@xxxxxxxxxxx

You can reach the person managing the list at
mdt-papyrus.dev-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mdt-papyrus.dev digest..."


Today's Topics:

  1. Re: Risk of loosing a model when the richtext editor is used
     in Papyrus (Camille Letavernier)
  2. Re: Risk of loosing a model when the richtext editor is used
     in Papyrus (THEOBALD Maurice (SAFRAN))


----------------------------------------------------------------------

Message: 1
Date: Wed, 3 Jan 2018 09:31:29 +0100
From: Camille Letavernier <cletavernier@xxxxxxxxxxxxxxxxx>
To: Papyrus Project list <mdt-papyrus.dev@xxxxxxxxxxx>
Subject: Re: [mdt-papyrus.dev] Risk of loosing a model when the
richtext editor is used in Papyrus
Message-ID:
<CABPMypJz229VD8vD-7e7PLSegba54hbR9zhUreXTovOhtGn=Mw@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hi,

If I remember correctly, EMF doesn't escape everything during save. I
believe it escapes special XML characters (Like '<'), but not illegal
characters (Since the default encoding in Papyrus is UTF-8, I wouldn't
expect Unicode characters to be illegal, but I'm not familiar enough with
the XML spec; so I can't tell whether these characters are actually illegal
in XML, or if the parser fails to treat them as valid characters).

Cheers,
Camille

On Tue, Jan 2, 2018 at 2:57 PM, Christian W. Damus <give.a.damus@xxxxxxxxx>
wrote:

Hi, Maurice,

Please raise a bug for this in bugzilla:  new Papyrus Oxygen bug
<https://bugs.eclipse.org/bugs/enter_bug.cgi?assigned_to=mdt-papyrus-inbox%2540eclipse.org&bug_file_loc=http%253A%252F%252F&bug_severity=normal&bug_status=NEW&component=Core&contenttypemethod=autodetect&contenttypeselection=text%252Fplain&defined_groups=1&flag_type-1=X&flag_type-11=X&flag_type-12=X&flag_type-13=X&flag_type-14=X&flag_type-15=X&flag_type-16=X&flag_type-17=X&flag_type-2=X&flag_type-4=X&flag_type-6=X&flag_type-7=X&flag_type-8=X&form_name=enter_bug&maketemplate=Remember%2520values%2520as%2520bookmarkable%2520template&op_sys=Mac%2520OS%2520X&product=Papyrus&rep_platform=PC&version=3.2.0>.
It may be a bug in the Rich Text Editor or perhaps in EMF:  in any case the
XMI/XML serialization should be escaping control characters in the XML
(there is code in EMF that does this escaping; I have seen it and it is
strange that it is not happening).

BTW, don?t forget that you can use Eclipse?s workspace history
functionality to recover your data from events like this.  It is always
there, whether your resources are in Git or not.

The execution of a command that dirties the model when selecting the
documented element is a different bug.  Feel free to raise that in the
Papyrus bugzilla, also.

Cheers,

Christian

On Jan 2, 2018, 06:21 -0500, THEOBALD Maurice (SAFRAN) <
maurice.theobald@xxxxxxxxxxxxxxx>, wrote:

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."
#
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev


_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev




--
Camille Letavernier

Senior Software Engineer
EclipseSource France

Email: cletavernier@xxxxxxxxxxxxxxxxx
Web: http://eclipsesource.com/paris
Phone: +33 1 85 41 09 21
Hangouts: cletavernier@xxxxxxxxxxxxxxxxx

EclipseSource France SAS
Palaiseau-Entreprises
7 rue de la Croix Martre
91120 Palaiseau

General Manager: Remi Schnekenburger
Registered Office: 7 rue de la Croix Martre, 91120 Palaiseau, France
Commercial Register 824 977 516  R.C.S. EVRY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/mdt-papyrus.dev/attachments/20180103/04855a2b/attachment.html>

------------------------------

Message: 2
Date: Wed, 3 Jan 2018 10:50:46 +0000
From: "THEOBALD Maurice (SAFRAN)" <maurice.theobald@xxxxxxxxxxxxxxx>
To: Papyrus Project list <mdt-papyrus.dev@xxxxxxxxxxx>
Subject: Re: [mdt-papyrus.dev] Risk of loosing a model when the
richtext editor is used in Papyrus
Message-ID: <B11A83E1-6242-41C7-B7F8-01B6B5A24C31@xxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hi Christian,

I raised the following bugs:
529364<https://bugs.eclipse.org/bugs/show_bug.cgi?id=529364>
529365<https://bugs.eclipse.org/bugs/show_bug.cgi?id=529365>
529366<https://bugs.eclipse.org/bugs/show_bug.cgi?id=529366>

I have not tried on Windows (don?t have acces to a PC now) but the rich text function cannot be used on my Mac.
There are too many issues.
However the richtext can be extracted with GENDOC.
By the way GENDOC is still using the old stereotype for Documentation. Papyrus::Documentation::Documentation instead of Documentation::Documentation

Maurice

De : <mdt-papyrus.dev-bounces@xxxxxxxxxxx> au nom de "Christian W. Damus" <give.a.damus@xxxxxxxxx>
R?pondre ? : Papyrus Project list <mdt-papyrus.dev@xxxxxxxxxxx>
Date : mardi 2 janvier 2018 ? 14:58
? : Papyrus Project list <mdt-papyrus.dev@xxxxxxxxxxx>
Objet : Re: [mdt-papyrus.dev] Risk of loosing a model when the richtext editor is used in Papyrus

Hi, Maurice,

Please raise a bug for this in bugzilla:  new Papyrus Oxygen bug<https://bugs.eclipse.org/bugs/enter_bug.cgi?assigned_to=mdt-papyrus-inbox%2540eclipse.org&bug_file_loc=http%253A%252F%252F&bug_severity=normal&bug_status=NEW&component=Core&contenttypemethod=autodetect&contenttypeselection=text%252Fplain&defined_groups=1&flag_type-1=X&flag_type-11=X&flag_type-12=X&flag_type-13=X&flag_type-14=X&flag_type-15=X&flag_type-16=X&flag_type-17=X&flag_type-2=X&flag_type-4=X&flag_type-6=X&flag_type-7=X&flag_type-8=X&form_name=enter_bug&maketemplate=Remember%2520values%2520as%2520bookmarkable%2520template&op_sys=Mac%2520OS%2520X&product=Papyrus&rep_platform=PC&version=3.2.0>.  It may be a bug in the Rich Text Editor or perhaps in EMF:  in any case the XMI/XML serialization should be escaping control characters in the XML (there is code in EMF that does this escaping; I have seen it and it is strange that it is not happening).

BTW, don?t forget that you can use Eclipse?s workspace history functionality to recover your data from events like this.  It is always there, whether your resources are in Git or not.

The execution of a command that dirties the model when selecting the documented element is a different bug.  Feel free to raise that in the Papyrus bugzilla, also.

Cheers,

Christian

On Jan 2, 2018, 06:21 -0500, THEOBALD Maurice (SAFRAN) <maurice.theobald@xxxxxxxxxxxxxxx>, wrote:

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."
#
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev

#
" 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."
#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dev.eclipse.org/mailman/private/mdt-papyrus.dev/attachments/20180103/e043948a/attachment.html>

------------------------------

_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev

End of mdt-papyrus.dev Digest, Vol 112, Issue 3
***********************************************


Back to the top