Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Validation error when using Firefox

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions
Author Message
ddimick



Joined: 14 Jan 2008
Posts: 5

PostPosted: Mon Jan 14, 2008 6:34 pm    Post subject: Validation error when using Firefox Reply with quote

Hi all -

Using the latest SVN for Cacti, brand new install. Most everything is working well, except I am receiving a "Validation error" on many screens when using Firefox. This does not occur with IE.

Specifically, I receive this error on the following pages:

Graph Management
Data Sources
Devices
Graph Templates
Host Templates
Data Templates
User Management

All other pages appear to work.

Can anyone drop me a clue?
Back to top
BSOD2600
Cacti Moderator


Joined: 08 May 2004
Posts: 6575
Location: WA, USA

PostPosted: Mon Jan 14, 2008 7:20 pm    Post subject: Reply with quote

wrong forum, moving.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9255
Location: MI, USA

PostPosted: Tue Jan 15, 2008 11:00 pm    Post subject: Reply with quote

What version are you using? Which branch? Please advise. Thanks!!!

TheWitness
Back to top
ddimick



Joined: 14 Jan 2008
Posts: 5

PostPosted: Thu Jan 17, 2008 11:34 pm    Post subject: Reply with quote

Sorry for the slow response, was out of pocket for a couple days.

Using the main branch, installed a few days ago.

I've attached the Technical Support output in PDF format in case that will help.

I've gone back to the Debian package version of 0.8.7a, and was a bit surprised that it shows the exact same behavior. Used three different client systems, too. Odd.



Cacti Technical Support Info.pdf
 Description:

Download
 Filename:  Cacti Technical Support Info.pdf
 Filesize:  70.43 KB
 Downloaded:  76 Time(s)

Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9255
Location: MI, USA

PostPosted: Fri Jan 18, 2008 6:53 am    Post subject: Reply with quote

Please let me know your mouse clicks.

TheWitness
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9255
Location: MI, USA

PostPosted: Fri Jan 18, 2008 6:54 am    Post subject: Reply with quote

Also, please use the following snippet into a file and then point your browser to it. Send the results.

<?php

print "<pre>";
print_r($_SERVER);
print_r($_REQUEST);
print "</pre>";

?>

Send me that too.
Back to top
ddimick



Joined: 14 Jan 2008
Posts: 5

PostPosted: Fri Jan 18, 2008 11:23 am    Post subject: Reply with quote

I'm using http authentication to reach cacti, which correctly detects my http auth login and maps it to the correct cacti admin account. I click the "Console" button on the top left if I start in the Graphs view. Then I click from the menu on the left, "Devices" was clicked in the screenshot attached.

This is from your test snippet with Firefox.
Code:
Array
(
    [UNIQUE_ID] => U5BVtH8AAAEAAF18q4EAAAAK
    [SCRIPT_URL] => /admin/cacti/test.php
    [SCRIPT_URI] => https://doug.dimick.net/admin/cacti/test.php
    [HTTPS] => on
    [SSL_VERSION_INTERFACE] => mod_ssl/2.2.6
    [SSL_VERSION_LIBRARY] => OpenSSL/0.9.8g
    [SSL_PROTOCOL] => TLSv1
    [SSL_COMPRESS_METHOD] => NULL
    [SSL_CIPHER] => DHE-RSA-AES256-SHA
    [SSL_CIPHER_EXPORT] => false
    [SSL_CIPHER_USEKEYSIZE] => 256
    [SSL_CIPHER_ALGKEYSIZE] => 256
    [SSL_CLIENT_VERIFY] => NONE
    [SSL_SERVER_M_VERSION] => 3
    [SSL_SERVER_M_SERIAL] => 0446C4
    [SSL_SERVER_V_START] => Nov 13 07:34:25 2007 GMT
    [SSL_SERVER_V_END] => May 11 07:34:25 2008 GMT
    [SSL_SERVER_S_DN] => /CN=doug.dimick.net
    [SSL_SERVER_S_DN_CN] => doug.dimick.net
    [SSL_SERVER_I_DN] => /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
    [SSL_SERVER_I_DN_O] => Root CA
    [SSL_SERVER_I_DN_OU] => http://www.cacert.org
    [SSL_SERVER_I_DN_CN] => CA Cert Signing Authority
    [SSL_SERVER_I_DN_Email] => support@cacert.org
    [SSL_SERVER_A_KEY] => rsaEncryption
    [SSL_SERVER_A_SIG] => sha1WithRSAEncryption
    [SSL_SESSION_ID] => BE41BEE1981F32BA0DF08CE7AF0F0E60C4FB702E978D06E7A141045D329E809A
    [HTTP_HOST] => doug.dimick.net
    [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
    [HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
    [HTTP_ACCEPT_ENCODING] => gzip,deflate
    [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
    [HTTP_KEEP_ALIVE] => 300
    [HTTP_CONNECTION] => keep-alive
    [HTTP_COOKIE] => quote=8; page=Tech; PHPSESSID=f78c614e218c11f42d5fdd7579aba6e3; fs_Log_File_Filters=open; Cacti=087f8e55a70b17eead5f81123502e5dc; clickedFoldert2=1%5E2%5E3%5E4%5E; highlightedTreeviewLinkt2=4
    [PATH] => /usr/local/bin:/usr/bin:/bin
    [SERVER_SIGNATURE] =>
Apache Server at doug.dimick.net Port 443


    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => doug.dimick.net
    [SERVER_ADDR] => 192.168.200.200
    [SERVER_PORT] => 443
    [REMOTE_ADDR] => 192.168.200.10
    [DOCUMENT_ROOT] => /var/www/doug.dimick.net/wwwroot
    [SERVER_ADMIN] => webmaster@doug.dimick.net
    [SCRIPT_FILENAME] => /var/www/doug.dimick.net/wwwroot/admin/cacti/test.php
    [REMOTE_PORT] => 49905
    [REMOTE_USER] => ddimick
    [AUTH_TYPE] => Basic
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] =>
    [REQUEST_URI] => /admin/cacti/test.php
    [SCRIPT_NAME] => /admin/cacti/test.php
    [PHP_SELF] => /admin/cacti/test.php
    [PHP_AUTH_USER] => ddimick
    [PHP_AUTH_PW] => ************
    [REQUEST_TIME] => 1200672394
    [argv] => Array
        (
        )

    [argc] => 0
)
Array
(
    [quote] => 8
    [page] => Tech
    [PHPSESSID] => f78c614e218c11f42d5fdd7579aba6e3
    [fs_Log_File_Filters] => open
    [Cacti] => 087f8e55a70b17eead5f81123502e5dc
    [clickedFoldert2] => 1^2^3^4^
    [highlightedTreeviewLinkt2] => 4
)


And this is from your test snippet with IE7.
Code:
Array
(
    [nokeepalive] => 1
    [ssl-unclean-shutdown] => 1
    [downgrade-1_0] => 1
    [force-response-1_0] => 1
    [UNIQUE_ID] => h2-5sX8AAAEAAF2ErkcAAAAS
    [SCRIPT_URL] => /admin/cacti/test.php
    [SCRIPT_URI] => https://doug.dimick.net/admin/cacti/test.php
    [HTTPS] => on
    [SSL_VERSION_INTERFACE] => mod_ssl/2.2.6
    [SSL_VERSION_LIBRARY] => OpenSSL/0.9.8g
    [SSL_PROTOCOL] => TLSv1
    [SSL_COMPRESS_METHOD] => NULL
    [SSL_CIPHER] => AES128-SHA
    [SSL_CIPHER_EXPORT] => false
    [SSL_CIPHER_USEKEYSIZE] => 128
    [SSL_CIPHER_ALGKEYSIZE] => 128
    [SSL_CLIENT_VERIFY] => NONE
    [SSL_SERVER_M_VERSION] => 3
    [SSL_SERVER_M_SERIAL] => 0446C4
    [SSL_SERVER_V_START] => Nov 13 07:34:25 2007 GMT
    [SSL_SERVER_V_END] => May 11 07:34:25 2008 GMT
    [SSL_SERVER_S_DN] => /CN=doug.dimick.net
    [SSL_SERVER_S_DN_CN] => doug.dimick.net
    [SSL_SERVER_I_DN] => /O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
    [SSL_SERVER_I_DN_O] => Root CA
    [SSL_SERVER_I_DN_OU] => http://www.cacert.org
    [SSL_SERVER_I_DN_CN] => CA Cert Signing Authority
    [SSL_SERVER_I_DN_Email] => support@cacert.org
    [SSL_SERVER_A_KEY] => rsaEncryption
    [SSL_SERVER_A_SIG] => sha1WithRSAEncryption
    [SSL_SESSION_ID] => CB8B287CE27857B4841377477946128DF2540BF90524C5587EC82CC93D8BB0CD
    [HTTP_ACCEPT] => image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    [HTTP_ACCEPT_LANGUAGE] => en-us
    [HTTP_UA_CPU] => x86
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; Media Center PC 5.0; InfoPath.2)
    [HTTP_HOST] => doug.dimick.net
    [HTTP_CONNECTION] => Keep-Alive
    [HTTP_COOKIE] => Cacti=2e448d8448a68348669ce20961e177ff
    [PATH] => /usr/local/bin:/usr/bin:/bin
    [SERVER_SIGNATURE] => Apache Server at doug.dimick.net Port 443

    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => doug.dimick.net
    [SERVER_ADDR] => 192.168.200.200
    [SERVER_PORT] => 443
    [REMOTE_ADDR] => 192.168.200.10
    [DOCUMENT_ROOT] => /var/www/doug.dimick.net/wwwroot
    [SERVER_ADMIN] => webmaster@doug.dimick.net
    [SCRIPT_FILENAME] => /var/www/doug.dimick.net/wwwroot/admin/cacti/test.php
    [REMOTE_PORT] => 50446
    [REMOTE_USER] => ddimick
    [AUTH_TYPE] => Basic
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] =>
    [REQUEST_URI] => /admin/cacti/test.php
    [SCRIPT_NAME] => /admin/cacti/test.php
    [PHP_SELF] => /admin/cacti/test.php
    [PHP_AUTH_USER] => ddimick
    [PHP_AUTH_PW] => ********
    [REQUEST_TIME] => 1200673264
    [argv] => Array
        (
        )

    [argc] => 0
)
Array
(
    [Cacti] => 2e448d8448a68348669ce20961e177ff
)



Validation error.pdf
 Description:

Download
 Filename:  Validation error.pdf
 Filesize:  41.11 KB
 Downloaded:  66 Time(s)

Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9255
Location: MI, USA

PostPosted: Fri Jan 18, 2008 9:44 pm    Post subject: Reply with quote

Here is an update lib/html_validate.php

Install it and provide some additional information:

TheWitness



html_validate.zip
 Description:

Download
 Filename:  html_validate.zip
 Filesize:  972 Bytes
 Downloaded:  82 Time(s)

Back to top
ddimick



Joined: 14 Jan 2008
Posts: 5

PostPosted: Fri Jan 18, 2008 11:16 pm    Post subject: Reply with quote

Code:
/admin/cacti/host.php
Numeric - 'Tech'


(see attached)



Validation error.pdf
 Description:

Download
 Filename:  Validation error.pdf
 Filesize:  46.4 KB
 Downloaded:  59 Time(s)

Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9255
Location: MI, USA

PostPosted: Sat Jan 19, 2008 2:52 pm    Post subject: Reply with quote

Is that the only area where you are receiving the validation error? What field contains "Tech"?

TheWitness
Back to top
ddimick



Joined: 14 Jan 2008
Posts: 5

PostPosted: Sat Jan 19, 2008 9:08 pm    Post subject: Reply with quote

I get the same error (with Firefox only) on every link listed in my first post.

After looking at it, "Tech" refers to a session cookie set and used in a completely separate page/application that's running on the same server. Same base URL, though, so it makes sense that the cookie exists in this context. It's in HTTP_COOKIE (page=Tech). Not sure why that would make Firefox/Cacti choke, though.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9255
Location: MI, USA

PostPosted: Sun Jan 20, 2008 8:40 am    Post subject: Reply with quote

Sending a note to the development team. There were some recent changes that need to be evaluated by the Author of them.

Regards,

Larry
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Unstable Development Versions All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group