aspose file tools*
The moose likes JForum and the fly likes Unbanning - Is this a bug or not? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Unbanning - Is this a bug or not?" Watch "Unbanning - Is this a bug or not?" New topic
Author

Unbanning - Is this a bug or not?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Ok, didn't want to use the bug tracker, as I'm not sure this is actually a bug. I may be missing something, so I wanted to ask before I reported it.

I'm using the most recent 2.1.7. If I ban a user, then unban them, the only way that user can access the forum is if I restart JForum. I'm assuming this is a cache issue, but I've tried clearing everything in the admin cache section, and the user still can't login.

Am I missing something, or is this an issue?
[originally posted on jforum.net by lscardin]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hhm... it is working fine for me, as far as I tested.

What I did:

:arrow: Admin Panel -> Users -> [search] -> Lock
:arrow: Tried to log in user that user - it is blocked
:arrow: Admin Panel -> Users -> [search] -> Unlock
:arrow: Log in now works.

Rafael


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

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

I think you're talking about two different things. I'm currently evaluating JForum (amongst others) for use on our company's web site, and as I was playing around with it, I stumbled across the same thing.

LOCKING/UNLOCKING works fine, as Rafael described.
UNBANNING doesn't seem to work as I'd expect, though.

Steps to recreate:
1. Log in as admin, find user ID of the user you want to ban.
2. Admin panel -> Banning -> add "Ban by User ID" with that user ID.
3. Open new browser, try to log in as the user you just banned. Message shows saying "You're banned". Fine.
4. Log back in as admin, go to Adminpanel -> Banning -> remove the ban you added.
5. Open new browser window, try to log in as "unbanned" user. You're still banned.

This is the case even after deleting all session cookies and the session data in the cache of JForum.

Restart JForum - user can log in again.

As lscardin said, we might be missing something here, or it might be an issue - you decide...

Cheers,

f.

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

Joined: Apr 22, 2012
Posts: 17424
I have the same issue.
[originally posted on jforum.net by Ref107]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Ok, registered as bug:

http://www.jforum.net/jira/browse/JF-639

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

Joined: Apr 22, 2012
Posts: 17424
Bug fixed.

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

Joined: Apr 22, 2012
Posts: 17424
Locking users itself doesn't work. Once a user has joined the forum, there is no way to prevent that user from logging in, short of going into the database and deleting the row, and doing that leaves orphaned posts.

[originally posted on jforum.net by CaliforniaCCW]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unbanning - Is this a bug or not?
 
Similar Threads
Accessibility of main()
Best Bug/Enhancement Tracking Tool Recommendation?
Recommendations for a bug tracker?
Running from EAR
invalidate session object in struts2