• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Help me: Bug in Admin Control Pannel

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I found this Bug in Jforum 2.1.7:

Step 1: create a forum with moderating role

Step 2: User A create a new topic

Step 3: User B goes into the topic and would like to provide an answer. For this user B open "post reply" dialog.

Step 4: During user B opend this window ("post reply"), the topic deleted by a moderator. User B send the answer.
User B get the message, that it is a moderated forum and that the answer must be activated by a moderator.

Step 5:
In Admin Control Pannel is the counter for the messages, that must be activated, is not correct.
The Answer from user B will be counted. This is the Bug: you can see a list of Messages (counter), but the message is not exist, becouse the topic is deleted.

Any idea for the solution?

I think, that the info Object in CenericModerationDao get wrong values.

Line 194:

Thsi part retrieve wrong value:


Thanks 8) ,

No Spam
[originally posted on jforum.net by nospam]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, this line retrieve right values:



But the problem is not solved. In DB exist post, which not exist realy. This messages will be counted in Admin Control Panel.

I need a solution for this problem... ;o)
[originally posted on jforum.net by nospam]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Possible solution:
Before saving an answer you can check whether a topic still exist.

If no -> throw an exception, If yes --> save the message

Where and how I can check this?
[originally posted on jforum.net by nospam]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.
[originally posted on jforum.net by nospam]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!