Book a Demo

Author Topic: Strange lock behaviour  (Read 4579 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Strange lock behaviour
« on: October 17, 2011, 11:03:05 pm »
Hi!


I am in a DBMS repository, with the "Require Lock to Edit" policy.
I am observing the following locking anomalies in 9.0.905:

1) If I have a diagram open when locking / unlocking its parent package, the "Delete Connector" menu option in the connector context menu is wrong. It remains available when I lock the package, and remains unavailable when I unlock it.
   The latter is an inconvenience, but the former is potentially dangerous.

2) If I apply a lock on a diagram from within the diagram itself (not the project browser), I can then add new elements even though the parent package is not locked (ie, I cannot right-click the package and Add an element).
   If I do this, I can then not delete the element again (requires package lock).

3) The in-diagram Apply / Release User Lock menu options replace one another. They seem not to check the current lock status, but instead to remember which one of them was called last.
   In other words, you can lock the diagram using the in-diagram menu, then unlock it in the browser, and then unlock it again in the in-diagram menu.

These all seem like bugs to me, but I can find no specific reference to them in the version history. Can anyone say whether they have been adressed in 9.1, or reported to Sparx?

Cheers,


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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Strange lock behaviour
« Reply #1 on: October 18, 2011, 01:30:55 am »
I have similar observations.

1) Obviously all connectors can be changed regardless of the lock. I found this useful (sic!) and so did not report a bug.

2-3) Locking is stored per element. The context menu just looks into the selected element to set the radio button to the opposite. So that seems logical.

4) I have reported this bug:
-open a diagram
-apply recursive lock to its package
->diagram still locked. You need close/re-open

5) and this one:
- change a diagram
- release the lock
-> diagram changes are not saved and will be lost upon closing

q.

P.S.

6) You can rename the model root without any lock!
« Last Edit: October 18, 2011, 03:31:50 am by qwerty »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Strange lock behaviour
« Reply #2 on: October 27, 2011, 11:39:12 pm »
I've noticed another one:

- You can move diagrams out of an unlocked (~readonly) package, but not into an unlocked package.

I'll submit a bug report for this.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Strange lock behaviour
« Reply #3 on: October 28, 2011, 03:55:27 am »
Despite these bugs this feature seems to be excellent when setting up shared models. Without these bugs it would just be marvellous.

q.

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Strange lock behaviour
« Reply #4 on: October 28, 2011, 10:53:06 pm »
Quote
2-3) Locking is stored per element. The context menu just looks into the selected element to set the radio button to the opposite. So that seems logical.
Well, not quite. The context menu appears to be controlled not by the actual lock but by a client-internal cached lock state, which is not updated correctly when the same client manipulates the lock in a different way.

Quote
6) You can rename the model root without any lock!
Also worth a bug report, I think, but I haven't sent one. I did send one off regarding my OP; I have a 100+ user deployment here, and locking simply has to work.
My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Strange lock behaviour
« Reply #5 on: October 29, 2011, 07:06:09 am »
I had reported 6) as well. Hope they fix all those bugs soon since locking is our last resort.

q.