Author Topic: v15.2 - v16.1 - MDG Generation Issue - Help!  (Read 3479 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
v15.2 - v16.1 - MDG Generation Issue - Help!
« on: August 18, 2023, 05:45:39 pm »
We've been transitioning from an old manually maintained MDG file (to one maintained via a Model) for the last few years.  Because we had to support both versions, we developed an automaton to help generate the MDG, taking the model's output and merging it into the older, manual file.  This has worked VERY successfully for the last 3 years (or so).  Under the premise, "If it ain't broke, don't fix it",  we ran this part of the functionality under v15.2 using a .eapx file for the model! 
We've recently decided to move the .eapx to SQL Server since we are moving away from .eapx files (as apparently is Sparx).  The rest of our setup runs v16.1; this is the only part that we use v15.2 for.

We found that moving the model to the SQL Server still produced the same output from the Model as the .eapx.  We ran the same automation, and the final MDG was the same!  We verify this by running File comparators on the component files and the final MDG comparing the last good output with the current output.  Thus, we CAN PROVE we are getting the same results (and that the automaton is NOT affected by the change in the repository platform)!

Flushed with this success, we thought, "We can move to v16.1 since we're no longer dependent on .eapx"!

Imagine our DISMAY when we found the automaton broke and produced an invalid XML file for the resulting MDG!

Investigating further, we found that the component file generation is producing different outputs for the encoded icon and image definitions, among other differences!

Even the first line is different!
<?xml version="1.0" encoding="windows-1252"?> (v15.2)
versus
<?xml  version="1.0" encoding="windows-1252"?> (v16.1) -  (an extra space character) Why?  Who does that?

Has anybody seen anything like this?  Has anybody proven that they can generate the same MDG file under v16.1 as under v15.2?

We are using "SavePackageAsUMLProfile (GUID, File)" to generate the components (in both cases, we are running the identical script).

Help!

TIA,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: v15.2 - v16.1 - MDG Generation Issue - Help!
« Reply #1 on: August 18, 2023, 06:21:56 pm »
You're using the API (I did similar things for a customer but am now out of the game - lucky me). Obviously (blank!) they fiddled with it. Report a bug, stay with V15 anf hope for the best (making no promise here :-/)

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: v15.2 - v16.1 - MDG Generation Issue - Help!
« Reply #2 on: August 18, 2023, 08:41:22 pm »
You're using the API (I did similar things for a customer but am now out of the game - lucky me). Obviously (blank!) they fiddled with it. Report a bug, stay with V15 anf hope for the best (making no promise here :-/)

q.
Obviously, I'm staying with v15.2 for the present until the reasons for this problem are determined.

After the following response from Sparx Developers (to the asking for [ALL] and [None] buttons on the Label Visibility Dialog) (see: https://sparxsystems.com/forums/smf/index.php/topic,47898.0.html):
"So you're asking for an additional way to hide all labels in a single click because you don't like what we've already implemented?[

If you want to hide all labels without selecting every label, you can use the first option, which you clearly know about."

I want to be able to confirm that there is a defect formally.  Since this is a non-standard situation, I'm likely to get a similar response.

Paolo

Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: v15.2 - v16.1 - MDG Generation Issue - Help!
« Reply #3 on: August 18, 2023, 08:52:32 pm »
Yes, you posted this answer already. Anyhow, it's kind of a showcase for Sparx' attitude against it's license payers (to avoid the misleading word "customer").

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: v15.2 - v16.1 - MDG Generation Issue - Help!
« Reply #4 on: August 21, 2023, 09:21:40 pm »
I can confirm the extra spaces in the header line

<?xml  version='1.0' encoding='windows-1252' ?>

I see two extra spaces compared to the previous version, one between xml and version, and one between 1252' and ?

I'm not sure however if that counts as a bug, as it seems that this is still valid xml.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: v15.2 - v16.1 - MDG Generation Issue - Help!
« Reply #5 on: August 21, 2023, 09:33:08 pm »
I can confirm the extra spaces in the header line

<?xml  version='1.0' encoding='windows-1252' ?>

I see two extra spaces compared to the previous version, one between XML and version, and one between 1252' and ?

I'm not sure, however, if that counts as a bug, as it seems that this is still valid XML.

Geert
Thanks Geert,
I didn't specify the spacing as a bug, merely to indicate that SOMETHING changed.  Are you able to confirm that v15.2 and v16.1 generate different XML (notwithstanding that they may both be valid)?

If that is the case, then there may be other areas that are different.

I'm loathed to do more digging until I know more about the scope of the differences and whether it is local to our machines.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!