• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Help me: Bug in Admin Control Pannel

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
.
[originally posted on jforum.net by nospam]
 
I've been selected to go to the moon! All thanks to this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic