File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JForum and the fly likes Unexpected group permissions after creating new forum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Unexpected group permissions after creating new forum" Watch "Unexpected group permissions after creating new forum" New topic
Author

Unexpected group permissions after creating new forum

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I have been evaluating JForum 2.1.8 and came across some unexpected behaviour. I�d like to ask if other people experience the same problem so I can confirm if what I am seeing are bugs.

The first problem is on the forum creation page. There are a number of permission options at the foot of the page such as �Deny access to these groups�, �Deny anonymous posts to these groups�, �Mark as read-only to these groups�, and �Deny HTML in messages to these groups�. The behaviour that I see is that when I select (highlight) particular groups, the exact opposite of my selection is defined in the permissions when the forum is created i.e. you go to the group permissions and the exact opposite of what you specified has been set in the group permissions. There is an exception to this behaviour, if you don�t select any of the groups then the permissions are as I would expect them to be.

The second problem is much the same but applies to the �Enable Attachments� option in the group permissions page of the administration console. Basically, if I select a particular forum, it is the other (non-selected) forum(s) where the group gets the ability to add attachments with posts. This is the only option in the group permissions page that has this problem. There is an exception here as well. The 'Allow All' option works normally, it is just individual selection of forums that is apparently not working correctly. All the other settings on the administration page work according to your selection so it is just the �Enable Attachments� that appears to be misbehaving.

I�d be grateful if anyone could confirm that they see the same problems and advise if there is an existing bug report. I did not find any menion of this problem from searching jforum.net or the bug database. The installation I am using is a completely clean install and uses Oracle 10g database.

Thanks.
[originally posted on jforum.net by tessier-lemoyne]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Well, only if there is some problem with the queries. Can you try to install a local mysql server and see if it works as expected? If so, we can dig into some sql bug in the oracle code.

Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hi Rafael,

The problem seems to be with duplicate setting. While, we have a deny anonymous option in the "Groups" setting page, there is a duplicate in the forum creating page as well. However, the setting in the forum creation page does not take effect. So essentially, when a create a forum with "Deny anonymous posting" setting, it does not affect the corresponding group. You still have to go n select the forum under the group to disable anonymous posting. I am able to re-produce this issue in my local env.

Rajiv
[originally posted on jforum.net by rajiv132]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unexpected group permissions after creating new forum