This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • 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
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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]
 
Never trust an airline that limits their passengers to one carry on iguana. Put this tiny ad in your shoe:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic