Book a Demo

Author Topic: Long tagged value contents crashes EA  (Read 3894 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Long tagged value contents crashes EA
« on: March 03, 2020, 11:21:14 pm »
Hi all,


I'm on 15.0.1512 and a SQL Server repository.

If I've got a tagged value into which I paste a long (> 255 or 256 or whatever) string, EA flashes an error message about an E_FAIL status (or something like it), presumably from the ODBC connection. EA waits for me to click OK, then crashes.

If the tagged value is a RefGUIDList and I try to populate it from the selector dialog, EA won't let me pick more than 6 elements. Since a GUID is 38 characters, this makes sense.
But if I build up the tag from a script, adding the seventh GUID to the list and Update()ing the tag in the database crashes EA.

Does anyone know if these bugs have been fixed in later releases?

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Long tagged value contents crashes EA
« Reply #1 on: March 04, 2020, 11:34:30 am »
Hi Uffe,

Since the t_objectproperties Value field is maxed out at 255 chars, you're still going to have a problem when you exceed that. However, EA should fail more gracefully.

This begs the question of should a refGUIDList be populated fro the Value or the Notes field in  t_objectproperties?

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

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Long tagged value contents crashes EA
« Reply #2 on: March 04, 2020, 06:43:07 pm »
This begs the question of should a refGUIDList be populated fro the Value or the Notes field in  t_objectproperties?
Well both, ideally. If the number exceeds six, switch the tag to <memo> mode. If it subceeds seven, switch to regular mode.

There again, since the whole RefGUID tag thing clearly gets special treatment in the GUI (and presumably elsewhere), the simple solution might be to shift the storage to Notes.

Quote from: Paolo F Cantoni
EA should fail more gracefully.
I'll say. What's funny is that in one of the cases, it actually catches the error -- and then crashes. :)

/Uffe
My theories are always correct, just apply them to the right reality.