# Security issue with viewable / accessible

**URL:** <https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168>\
**Category:** Classic Servoy\
**Created:** [November 10, 2010, 11:29am UTC](https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168 "2010-11-10T11:29:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thunder](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@Thunder](https://forum.servoy.com/u/Thunder)\
**Post date:** [November 10, 2010, 11:29am UTC](https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168/1 "2010-11-10T11:29:55Z")

</div>

I have migrated a solution from 3.5 to 5.2 recently, and now none of my previously hidden elements (mostly buttons) are showing when they are designated not visible in security (the tickbox is NOT ticked for viewable).

I have 16 security groups. One button on a navigator, and two buttons on a regular form show for all users even though they are supposed to be only visible to the Administrators group, i.e. I have deselected the tick in the viewable tickbox for every group other than Administrators for that named element. See attached screenshot of one example group. The only group that DOES have viewable ticked is Administrators, yet the button is permanently visible…

Odd thing is that if I make it visible but not accessible for one of the groups, it becomes non accessible for ALL groups - including Administrators.

I have tried deleting and re-adding the button, as well as naming it differently.

There are no regular users in the Administrators group and all them are assigned to at least one or two of the other non Administrator groups.

I am using Mac / Java 1.6 / Servoy 5.2 / Sybase 11.

Has something else changed with 5.2 that I don’t know about with regard to making elements invisible? Is this a bug?

Thanks for any help  
Bevil

 ![Screen shot 2010-11-10 at 11.22.23.png](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/0/0f5b2c065b4fd9cd9ffe8fa40b2a855f98c7bd33.png)

---

<div class="post-metadata">

**Author:** ![Andrei\_Costescu](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Andrei\_Costescu](https://forum.servoy.com/u/Andrei_Costescu)\
**Post date:** [November 10, 2010, 4:37pm UTC](https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168/2 "2010-11-10T16:37:50Z")

</div>

Are there any errors reported in “Problems” View?

---

<div class="post-metadata">

**Author:** ![Thunder](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@Thunder](https://forum.servoy.com/u/Thunder)\
**Post date:** [November 15, 2010, 12:34pm UTC](https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168/3 "2010-11-15T12:34:08Z")

</div>

Hi Andrei

After exhaustively removing warnings (you can only see 100 at a time), I have got down to below 100 and have found that there is no issue shown for that element, or form.

I set the property to not viewable for a particular group, log in as someone in that group, and the button is there… This happens with several buttons.

Any help would be appreciated

Bevil

---

<div class="post-metadata">

**Author:** ![Gabi\_Boros](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@Gabi\_Boros](https://forum.servoy.com/u/Gabi_Boros)\
**Post date:** [November 16, 2010, 9:37am UTC](https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168/4 "2010-11-16T09:37:25Z")

</div>

can you just place a button in the form where you  
have a field set to non-viewable, and on click just do:  
application.output(security.getUserName());  
application.output(security.getUserGroups());  
application.output(security.getElementUUIDs(‘your\_form\_name’));  
, so we first check who is logged in and what elements do we have, and then attach here the output, along with the  
form security file, the file with the same name as the form, but with “sec” as extension, so we can see what are the security settings on the form’s elements

---

<div class="post-metadata">

**Author:** ![Thunder](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@Thunder](https://forum.servoy.com/u/Thunder)\
**Post date:** [November 16, 2010, 10:18am UTC](https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168/5 "2010-11-16T10:18:14Z")

</div>

Output from Servoy when I press the button (which is supposed to be hidden)

bevil  
BufferedDataSet {Columnnames[group\_id, group\_name]}  
row\_1[1, Administrators]  
BufferedDataSet {Columnnames[name, uuid]}  
row\_1[null, 22bf3de2-7dfc-4583-bb80-9ee348cf436d]  
row\_2[database\_button, 2ad6d61d-c307-49a9-bab0-c7eece6f4d19]  
row\_3[security\_admin\_button, 7A3AD48C-AC71-4C54-AC40-5C59792E79FA]  
row\_4[lbl\_test, 7C28A7FE-35ED-4E1E-B211-58F4FC66E728]  
row\_5[archives\_chooser, 8de515ee-f311-4931-8e6f-41164b64d940]  
row\_6[purchase\_order\_chooser, D4B723E0-BA6E-4326-9634-34DC9A6772EB]  
row\_7[image\_library\_typec, ad4fa1b6-0495-4b75-a337-51b548c489ad]

Attached is the sec file (although I have had to change its extension to txt as the forum won’t allow .sec files as attachments).

[navigator\_splash.txt](https://forum.servoy.com/uploads/short-url/9qhBN8BLQISY23RNe5DRBwUZFjW.txt) (1.39 KB)

---

<div class="post-metadata">

**Author:** ![Gabi\_Boros](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@Gabi\_Boros](https://forum.servoy.com/u/Gabi_Boros)\
**Post date:** [November 16, 2010, 10:33am UTC](https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168/6 "2010-11-16T10:33:19Z")

</div>

> Thunder:  
> Output from Servoy when I press the button (which is supposed to be hidden)
> 
> bevil  
> BufferedDataSet {Columnnames[group\_id, group\_name]}  
> row\_1[1, Administrators]  
> BufferedDataSet {Columnnames[name, uuid]}  
> row\_1[null, 22bf3de2-7dfc-4583-bb80-9ee348cf436d]  
> row\_2[database\_button, 2ad6d61d-c307-49a9-bab0-c7eece6f4d19]  
> row\_3[security\_admin\_button, 7A3AD48C-AC71-4C54-AC40-5C59792E79FA]  
> row\_4[lbl\_test, 7C28A7FE-35ED-4E1E-B211-58F4FC66E728]  
> row\_5[archives\_chooser, 8de515ee-f311-4931-8e6f-41164b64d940]  
> row\_6[purchase\_order\_chooser, D4B723E0-BA6E-4326-9634-34DC9A6772EB]  
> row\_7[image\_library\_typec, ad4fa1b6-0495-4b75-a337-51b548c489ad]
> 
> Attached is the sec file (although I have had to change its extension to txt as the forum won’t allow .sec files as attachments).

from this it seems that “bevil” is in the “Administrators” group, and it has “viewable” rights on all elements

---

<div class="post-metadata">

**Author:** ![Thunder](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@Thunder](https://forum.servoy.com/u/Thunder)\
**Post date:** [November 16, 2010, 11:19am UTC](https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168/7 "2010-11-16T11:19:02Z")

</div>

This is the output if I log in as a NON administrator (although I have named him Administrator, he is not in the administrators group…)

Administrator  
BufferedDataSet {Columnnames[group\_id, group\_name]}  
row\_1[14, studios]  
BufferedDataSet {Columnnames[name, uuid]}  
row\_1[null, 22bf3de2-7dfc-4583-bb80-9ee348cf436d]  
row\_2[database\_button, 2ad6d61d-c307-49a9-bab0-c7eece6f4d19]  
row\_3[security\_admin\_button, 7A3AD48C-AC71-4C54-AC40-5C59792E79FA]  
row\_4[lbl\_test, 7C28A7FE-35ED-4E1E-B211-58F4FC66E728]  
row\_5[archives\_chooser, 8de515ee-f311-4931-8e6f-41164b64d940]  
row\_6[purchase\_order\_chooser, D4B723E0-BA6E-4326-9634-34DC9A6772EB]  
row\_7[image\_library\_typec, ad4fa1b6-0495-4b75-a337-51b548c489ad]

---

<div class="post-metadata">

**Author:** ![Gabi\_Boros](https://avatars.discourse-cdn.com/v4/letter/g/73ab20/32.png) [@Gabi\_Boros](https://forum.servoy.com/u/Gabi_Boros)\
**Post date:** [November 16, 2010, 12:54pm UTC](https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168/8 "2010-11-16T12:54:01Z")

</div>

are you sure you don’t make those elements visible from code ?  
can you create a new dummy form, and put there an element without “viewable” right, and  
test if it shows up ?  
if you still see the issue, the best would be if you create a case in our support system, and  
upload your solution, so we can debug it, as with a simple test solution everything works as expected

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [November 22, 2010, 4:00pm UTC](https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168/9 "2010-11-22T16:00:24Z")

</div>

Bevil,

We found the issue, this is fixed in 5.2.3.

Rob

---

<div class="post-metadata">

**Author:** ![Thunder](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@Thunder](https://forum.servoy.com/u/Thunder)\
**Post date:** [November 22, 2010, 4:10pm UTC](https://forum.servoy.com/t/security-issue-with-viewable-accessible/13168/10 "2010-11-22T16:10:06Z")

</div>

Ahhhhhhhhhhhhhhh!!

Thank goodness, I thought I was going nuts.

Bevil
