Book a Demo

Author Topic: User-Selectable Properties are CaSe SeNSItive  (Read 6264 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
User-Selectable Properties are CaSe SeNSItive
« on: May 09, 2019, 05:00:19 pm »
We discovered (by accident) that User-Selectable Properties are CaSe SeNSItive!   >:(

We spent a fair few tens of minutes trying to figure out why a shapescript wouldn't respond to a new User-Selectable Property we had defined.  Turned out,  the MDG file and the shapescript had different casing on the property name!

I'd say it's a bug, !  ::)

Reported,
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: +397/-301
  • I'm no guru at all
    • View Profile
Re: User-Selectable Properties are CaSe SeNSItive
« Reply #1 on: May 09, 2019, 05:28:08 pm »
I'd say it depends on the database you're using.

q.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: User-Selectable Properties are CaSe SeNSItive
« Reply #2 on: May 09, 2019, 09:06:04 pm »
I'd say it depends on the database you're using.

q.
No, it should be normalised internally.  It doesn't go anywhere near the DB until you save the diagram.

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

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: User-Selectable Properties are CaSe SeNSItive
« Reply #3 on: May 10, 2019, 01:53:01 am »
I think the shapescripts compare strings in a case sensitive way (which is the standard when comparing strings in most programming/scripting languages)

Not sure if I would count this as a bug as I was certainly expecting it to behave that way.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: User-Selectable Properties are CaSe SeNSItive
« Reply #4 on: May 10, 2019, 09:43:37 am »
I think the shapescripts compare strings in a case sensitive way (which is the standard when comparing strings in most programming/scripting languages)

Not sure if I would count this as a bug as I was certainly expecting it to behave that way.

Geert
Then it's a documentation Bug...  From a user perspective, in most places, EA is case insensitive.  Now, normally I'm pretty anal about correct casing, but once and a while, you get a typo.  In this case, it was Archimate vs (the correct) ArchiMate.

It should be made clear that these properties are case sensitive.

Paolo

[EDIT:  Thinking about it some more, your argument doesn't really hold as the case sensitivity, in this case, applies to the internal string, not the names of variables.  The HasProperty function should case insensitise the string.]
« Last Edit: May 10, 2019, 10:31:55 am by Paolo F Cantoni »
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: +397/-301
  • I'm no guru at all
    • View Profile
Re: User-Selectable Properties are CaSe SeNSItive
« Reply #5 on: May 10, 2019, 05:20:10 pm »
I'm pretty anal
Hm. What kind of Freudian slip is that?

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: User-Selectable Properties are CaSe SeNSItive
« Reply #6 on: May 13, 2019, 09:31:41 am »
I'm pretty anal
Hm. What kind of Freudian slip is that?
Unfortunately, probably not a slip. It's a relatively common saying which apparently covers the full width of Australia. I can think of at least two similarly themed phrases for the same sort of thing. I do not want to know the etymology for any of them.

Suffice to say, he's normally precise about correct casing in a way that others may consider excessive. (Although I'm not sure about applying 'pretty' to that definition)

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: User-Selectable Properties are CaSe SeNSItive
« Reply #7 on: May 13, 2019, 09:59:58 am »
I'm pretty anal
Hm. What kind of Freudian slip is that?
Unfortunately, probably not a slip. It's a relatively common saying which apparently covers the full width of Australia. I can think of at least two similarly themed phrases for the same sort of thing. I do not want to know the etymology for any of them.

Qwerty alluded to the etymology of phrase.  The irony is that if Paolo was what he claimed, he would have used the more correct term "pedantic".

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: User-Selectable Properties are CaSe SeNSItive
« Reply #8 on: May 13, 2019, 10:14:35 am »
I'm pretty anal
Hm. What kind of Freudian slip is that?
Unfortunately, probably not a slip. It's a relatively common saying which apparently covers the full width of Australia. I can think of at least two similarly themed phrases for the same sort of thing. I do not want to know the etymology for any of them.
Qwerty alluded to the etymology of phrase.  The irony is that if Paolo was what he claimed, he would have used the more correct term "pedantic"
The use of pretty was in the context of "not absolutely"  (She was pretty quick).  I could have used pedantic, but it wouldn't have been as humorous.  That having been said, "let's hear it for pedantry!"   8) ;D

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: +397/-301
  • I'm no guru at all
    • View Profile
Re: User-Selectable Properties are CaSe SeNSItive
« Reply #9 on: May 13, 2019, 03:33:26 pm »
The subtleties of languages :-) Actually the Freudian "anal fixation" has that very meaning of being pedantic (even, of course, in German since that was Mr. Freud's native language). But it has a more negative connotation - also of course.

q.