Dave Johnson-8 wrote:
>
> On Thu, Apr 3, 2008 at 6:08 AM, richiebaby <[EMAIL PROTECTED]> wrote:
>>
>> PROBLEM FOUND! Is it a Roller bug?
>>
>> I have been able to replicate the issue on my development installation
>> by
>> simply posting a comment to a weblog entry whilst leaving the Name field
>> blank.
>>
>> When inspecting the comment management page that lists all of the
>> comments,
>> I can see that the 'Posted by' field is being set to "User from IP
>> address
>> XX.XXX.XXX.X". This seems to be a default Roller functionality because
>> in
>> the database (within the ROLLER_COMMENT table) I can see a value of
>> <NULL>
>> within the NAME field for that comment.
>>
>> Therefore I still have 3 questions:
>>
>> Is this a known bug, is there a fix?
>>
>> Is it possible to force the Name field to be mandatory when posting a
>> comment?
>>
>> Can I perform direct sequel on the ROLLER_COMMENT table to replace the
>> <NULL> value with the text "Guest", for example?
>
> I cannot reproduce the problem. When I leave the name field blank,
> things work fine in the comment management page. What is your
> environment?
>
> # What version of Roller are you using? If you are building from
> sources, on which branch are you building?
> # What Application Server version are you using?
> # What database are you using?
> # What Java version are you using?
> # What operating system are you using?
>
>
> - Dave
>
>
Hi,
Thanks for reading. I have seen the issue on both my development server and
my clustered live servers.
I didn't perform the installations so if more info is needed, please ask and
I will find out - In response to your questions:
With respect to DEV
-------------------
# What version of Roller are you using? If you are building from sources, on
which branch are you building?
V4.0 (apache-roller-4.0-rc2.zip)
# What Application Server version are you using?
Tomcat 5.5.23
# What database are you using?
Oracle 10g 10.2.0.3.0
# What Java version are you using?
jdk1.5.0_11
# What operating system are you using?
Microsoft Windows Server 2003
Enterprise Edition
Service Pack 1
With respect to LIVE
--------------------
# What version of Roller are you using? If you are building from sources, on
which branch are you building?
V4.0 (apache-roller-4.0.zip)
# What Application Server version are you using?
Tomcat 5.5.23
# What database are you using?
Oracle 10g 10.2.0.3.0
# What Java version are you using?
jdk1.5.0_11
# What operating system are you using?
Microsoft Windows Server 2003
Enterprise Edition
Service Pack 2
As a temp fix I have updated weblog.vm (\WEB-INF\velocity\weblog.vm) to not
allow the user
to submit a comment with the name field blank.
function validateComments(theForm) {
//Additional validation added to stop null values being written to
//the database for an empty name field
if (theForm.name.value == "") {
alert("$text.get( "Please enter a name" )");
theForm.name.focus();
return false;
}
else if (theForm.content.value == "") {
alert("$text.get( "macro.weblog.commentwarning" )");
theForm.content.focus();
return false;
}
}
--
View this message in context:
http://www.nabble.com/Subject-changed%3A-Possible-Roller-bug---Users-can-post-comments-without-supplying-a-name%21-tp16447315s12275p16833367.html
Sent from the Roller - Dev mailing list archive at Nabble.com.