Book a Demo

Author Topic: Element in model locked but security disabled  (Read 6577 times)

Chris Mycock

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Element in model locked but security disabled
« on: November 25, 2013, 09:45:57 pm »
Hi all,

we have EA with the DB on an SQL server and are using SVN for version control. All is working pretty well, but recently a colleague came across a problem where an interface class could not be changed despite the package containing it being checked out. Any attempt at a change reported that it was locked.
I checked the XML file for the package and the element had the following tag:
[highlight]<UML:TaggedValue tag="object_style" value="Locked=true;"/>[/highlight]

Removing this tag got around the problem, but nobody has any idea how this lock was made. I was under the impression that this sort of locking only occurs for a security enabled model.

Does anybody know exactly what this tag means and how it could have been applied??

Thanks,
Chris  :)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Element in model locked but security disabled
« Reply #1 on: November 25, 2013, 10:57:03 pm »
AFAIK this lock is also set when a package is checked out. Sometimes the lock gets messed up (nothing is perfect). Usually you can repair that with Project/Version Control/Re-synch...

q.

Chris Mycock

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Element in model locked but security disabled
« Reply #2 on: November 26, 2013, 12:48:48 am »
Thanks for the info, but wouldn't that lock be on the package and not just one element?

All the other Interface classes in the package were fine. Does EA use that tag on a per element basis within a package while contained in the database?

I have found one other element in our model (in the XML) that has the same tag. I will try the resync.

Thanks,
Chris

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Element in model locked but security disabled
« Reply #3 on: November 26, 2013, 02:27:04 am »
Locking is basically possible on element basis. The VC however allows only to lock packages.

q.

Chris Mycock

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Element in model locked but security disabled
« Reply #4 on: December 16, 2013, 06:53:14 am »
Just an update. Someone had accidentally right-clicked on a class and selected lock element. There doesn't appear to be a graphical way of spotting this AFAIK like there is with diagrams.

Anyway, you live and learn.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Element in model locked but security disabled
« Reply #5 on: December 16, 2013, 10:19:15 am »
When an element is locked you see a red exclamation mark in the browser. The diagram does not show anything, though. That's probably good this way since locked elements should not mess up diagrams.

q.

Chris Mycock

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Element in model locked but security disabled
« Reply #6 on: December 19, 2013, 03:05:31 am »
I think I need to report a bug then - I have two elements in a package.

I have opened the diagram in the same package, right clicked on the element and hit "Lock Element".

I cannot change the element and there is NO exclamation mark in the project browser.

I have used EA with security enabled before and have seen the exclamation mark, so I know what it looks like.

Actually, scratch the bug report. I just checked the help before hitting submit:

"Require user lock to edit" has no marker. It is expected behaviour, despite being less than useful.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Element in model locked but security disabled
« Reply #7 on: December 19, 2013, 08:10:11 am »
Both security modes (Require user lock to edit and not) show a red exclamation mark when someone else holds a lock, and a blue one when you hold a lock. When no-one holds a lock, the lock marker is never shown.

shimon

  • EA User
  • **
  • Posts: 172
  • Karma: +6/-0
    • View Profile
Re: Element in model locked but security disabled
« Reply #8 on: May 11, 2014, 09:37:13 pm »
We found a bug in EA, that showed no locks but would not let another user apply a lock. Even Project -> Security -> Manage locks did not show anything  locked.
We created a script that directly manipulates the attribute in the DB.
« Last Edit: May 11, 2014, 09:37:44 pm by shimonmx »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Element in model locked but security disabled
« Reply #9 on: May 12, 2014, 08:54:50 am »
Sounds like there was a full lock rather than a user/group lock applied.