Login form not deplaying for lacie NAS Raid

RESOLVED INCOMPLETE

Status

()

Firefox
General
RESOLVED INCOMPLETE
10 years ago
7 years ago

People

(Reporter: Anthony Parkes, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [CLOSEME 2010-11-01])

(Reporter)

Description

10 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b3) Gecko/2008020511 Firefox/3.0b3
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9b3) Gecko/2008020511 Firefox/3.0b3

The login window for the lacie raid drive is not displayed in the beta.

the lacie login source is below.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>
<HEAD>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<META HTTP-EQUIV="Expires" CONTENT="0">
	<TITLE>Login</TITLE>
	<LINK HREF="css/default_ss.css" REL="stylesheet" TYPE="text/css">

</HEAD>

<BODY BGCOLOR="#ffffff" onLoad="init()">

<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%" ALIGN="CENTER" HEIGHT="100%">
<TR>
	<TD VALIGN="TOP"><IMG SRC="images/main/t_ex_border_tl_2x2.gif" BORDER="0" ALT="" WIDTH="2" HEIGHT="2"><BR></TD>
 	<TD VALIGN="TOP" BACKGROUND="images/main/t_ex_border_tm_1x2.gif"><IMG SRC="images/main/t_ex_border_tm_1x2.gif" BORDER="0" ALT="" WIDTH="1" HEIGHT="2"><BR></TD>
 	<TD VALIGN="TOP"><IMG SRC="images/main/t_ex_border_tr_2x2.gif" BORDER="0" ALT="" WIDTH="2" HEIGHT="2"><BR></TD>	
</TR>
<TR>
	<TD VALIGN="TOP" BACKGROUND="images/main/t_ex_border_lm_2x1.gif" WIDTH="2"><IMG SRC="images/main/t_ex_border_lm_2x1.gif" BORDER="0" ALT="" WIDTH="2" HEIGHT="1"><BR></TD>
 	<TD VALIGN="TOP" HEIGHT="100%">

 	<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%" HEIGHT="100%">
	<TR>
		<TD VALIGN="TOP" BACKGROUND="images/brand/header_m_3x62.jpg">
		<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%">
		<TR>
			<TD VALIGN="TOP"><IMG SRC="images/brand/header_l_450x62.jpg" BORDER="0" ALT="" WIDTH="450" HEIGHT="62"><BR></TD>
			<TD VALIGN="TOP" ALIGN="RIGHT"><IMG SRC="images/brand/header_r_150x62.jpg" BORDER="0" ALT="" WIDTH="150" HEIGHT="62"><BR></TD>
		</TR>
		</TABLE>

		</TD>
	</TR>
	<TR><TD BGCOLOR="#ffffff"></TD></TR>
	<TR>
		<TD VALIGN="TOP" BGCOLOR="#ffffff" HEIGHT="100%">
		<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" HEIGHT="100%">
		<TR>
			<TD VALIGN="TOP"><IMG SRC="images/brand/login_side_grfc_187x382.jpg" BORDER="0" ALT="" WIDTH="187" HEIGHT="382"><BR></TD>
			<TD VALIGN="TOP" WIDTH="100%" HEIGHT="100%"><BR>

<FORM ACTION="" METHOD="POST">
<INPUT TYPE="HIDDEN" ID="submitInput" NAME="submitInput" VALUE="login_main" >
<INPUT TYPE="HIDDEN" ID="func" NAME="func" VALUE="">
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="98%" ALIGN="CENTER">
<TR>
	<TD VALIGN="TOP"><IMG SRC="images/brand/t_login_400x59.gif" BORDER="0" ALT="" WIDTH="400" HEIGHT="59"><BR><BR></TD>
</TR>
<TR>
	<TD VALIGN="TOP"><SPAN ID="browser_decline" STYLE="display:none">To access the storage system, your browser must be Microsoft Internet Explorer 6.0 or Firefox 1.06 or newer. </SPAN></TD>
</TR>
<TR>
	<TD VALIGN="TOP">
	<SPAN ID="login_area" STYLE="display:none">

	<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%">
	<TR>
		<TD VALIGN="TOP">Enter your login information.<BR><BR><BR></TD>
	</TR>
	<TR>
		<TD VALIGN="TOP">
		<BLOCKQUOTE>
		<TABLE CELLSPACING="0" CELLPADDING="3" BORDER="0">

		<TR>
			<TD VALIGN="MIDDLE">User name</TD>
			<TD VALIGN="MIDDLE">&nbsp;:&nbsp;&nbsp;</TD>
			<TD VALIGN="MIDDLE"><INPUT TYPE="TEXT" ID="username" NAME="username" MAXLENGTH="20" STYLE="width:200pt"></TD>
		</TR>
		<TR>
			<TD VALIGN="MIDDLE">Password</TD>

			<TD VALIGN="MIDDLE">&nbsp;:&nbsp;&nbsp;</TD>
			<TD VALIGN="MIDDLE"><INPUT TYPE="PASSWORD" ID="password" NAME="password" MAXLENGTH="24" STYLE="width:200pt"></TD>
		</TR>
		<TR ID="div_language" STYLE="display:none">
			<TD VALIGN="MIDDLE">Language</TD>
			<TD VALIGN="MIDDLE">&nbsp;:&nbsp;&nbsp;</TD>
			<TD VALIGN="MIDDLE"><SELECT ID="language" NAME="language" onChange="selLanguge(this.value)" STYLE="width:200"></SELECT></TD>

		</TR>
		<TR>
			<TD COLSPAN="2"></TD>
			<TD VALIGN="TOP"><BR>
				<INPUT TYPE="SUBMIT" ID="Login" NAME="Login" VALUE="Log In" onClick="return login();" STYLE="width:100" CLASS="btn_hl_off" onmouseover="this.className='btn_hl_off btn_hl_on'" onmouseout="this.className='btn_hl_off'">
			</TD>
		</TR>
		</TABLE>
		</BLOCKQUOTE>

		</TD>
	</TR>
	</TABLE>
	</SPAN>
	</TD>
</TR>
</TABLE></FORM><BR><BR>
			</TD>
			<TD WIDTH="10">&nbsp;</TD>
		</TR>

		</TABLE>
		</TD>
	</TR>
	<TR>
		<TD VLAIGN="TOP" BACKGROUND="images/brand/footer_696x19.gif"><IMG SRC="images/brand/footer_696x19.gif" BORDER="0" ALT="" WIDTH="100%" HEIGHT="19"><BR></TD>
	</TR>
	</TABLE>
	</TD>
	<TD VALIGN="TOP" BACKGROUND="images/main/t_ex_border_rm_2x1.gif"><IMG SRC="images/main/t_ex_border_rm_2x1.gif" BORDER="0" ALT="" WIDTH="2" HEIGHT="1"><BR></TD>

</TR>
<TR>
	<TD VALIGN="TOP"><IMG SRC="images/main/t_ex_border_bl_2x2.gif" BORDER="0" ALT="" WIDTH="2" HEIGHT="2"><BR></TD>
 	<TD VALIGN="TOP" BACKGROUND="images/main/t_ex_border_bm_1x2.gif"><IMG SRC="images/main/t_ex_border_bm_1x2.gif" BORDER="0" ALT="" WIDTH="1" HEIGHT="2"><BR></TD>
 	<TD VALIGN="TOP"><IMG SRC="images/main/t_ex_border_br_2x2.gif" BORDER="0" ALT="" WIDTH="2" HEIGHT="2"><BR></TD>	
</TR>
</TABLE>

</BODY>
</HTML>

<Script Language=javascript>
var MSG_ID0001 = 'Are you sure you want to log out?';
var MSG_ID0002 = 'Read-Only';
var MSG_ID0003 = 'Read/Write';
var MSG_ID0004 = 'Active Directory authentication mode';
var MSG_ID0005 = 'Local authentication mode';
var MSG_ID0006 = 'The password contains illegal characters';
</Script>

<Script Language=javascript>
var MSG_ID3101 = 'Please enter the administrator user name.';
var MSG_ID3102 = 'Please enter the administrator password.';
var MSG_ID3103 = 'The user name or password is invalid. Please try again.' //WORD_INVALID_USER_PASSWORD
</Script>

<Script Language=javascript>
function xmlhttpPost(strURL)
{
	var	xmlHttpReq = false;
	var	self = this;
	// Mozilla/Safari
	if (window.XMLHttpRequest)
	{
		self.xmlHttpReq	= new XMLHttpRequest();
	}
	// IE
	else if	(window.ActiveXObject)
	{
		self.xmlHttpReq	= new ActiveXObject("Microsoft.XMLHTTP");
	}
	self.xmlHttpReq.open('POST', strURL, true);
	self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	self.xmlHttpReq.onreadystatechange = function()	{
		if (self.xmlHttpReq.readyState == 4)
		{
			//alert(self.xmlHttpReq.responseText);
			updatepage(self.xmlHttpReq.responseXML);
		}
	}
	self.xmlHttpReq.send(getquerystring());
}

function getquerystring()
{
	var	form = document.forms[0];
	var	submitInput	= form.submitInput.value;
	var	func = form.func.value;

	qstr = 'submitInput=' +	encodeURIComponent(submitInput);  // NOTE: no '?' before querystring
	qstr +=	'&func=' + encodeURIComponent(func);
	
	return qstr;
}

function updatepage(responseXML)
{
	/********************
		<?xml version=\"1.0\" ?>
	<login_main>
		<language enabled='1'>en</language>	
		<language enabled='0'>jp</language>
		<language enabled='0'>tw</language>
	</login_main>
	**************************************/
	
	var alertNode = responseXML.getElementsByTagName('_ALERT_');
	var redirNode = responseXML.getElementsByTagName('_REDIRECT_');
	var languageNode = responseXML.getElementsByTagName('language')
	
	if (alertNode.length > 0) {
		alert(alertNode[0].childNodes[0].nodeValue);
	}
	else if (redirNode.length > 0) {
		window.location = redirNode[0].childNodes[0].nodeValue;
	}
	else {
	
		var	form = document.forms[0];
		var	obj = form.language;
		
		if (languageNode.length > 1)
		{
			//more than 1 language, show language selection
			document.getElementById('div_language').style.display =	'';
		
			for (i=0; i<language.length; i++)
			{
				
				for (j=0; j<languageNode.length; j++)
				{
					//find the support languge 
					if (dir[i] == languageNode[j].childNodes[0].nodeValue)
					{
						tempOpt=new	Option;
						tempOpt.value= dir[i];
						tempOpt.text= language[i];						
						tempOpt.selected=false;
						obj.options[obj.length]=tempOpt;
						
						if (languageNode[j].getAttribute('enabled') == '1')
						{
							currLanguage = languageNode[j].childNodes[0].nodeValue;
							//alert("currLanguage = " + currLanguage);
						}
					}
				}
			}
			
			for (i=0; i<languageNode.length; i++)
			{
				if (obj.options[i].value == currLanguage)
				{
					//alert("match select - " + i + " - " + currLanguage);
					obj.options[i].selected=true;
					break;
				}	
			}
		}
	}
	
	//set default cursor
	document.getElementById("username").focus();
}

function init()
{
	BrowserDetection();
	document.getElementById('func').value =	'';
	xmlhttpPost("login_mainF.cgi");	
}

function selLanguge( szlanguage)
{
	//alert("change language : " + document.getElementById('language').value);
	document.getElementById('func').value = 'Language';
	
	var	form = document.forms[0];
	form.submit();
}

//======================================================================= 
function login()
{
	var	szLoginName	=document.getElementById("username").value ;
	szLoginName=Trim(szLoginName);
	
	if(document.getElementById("username").value =='')
	{
		alert(MSG_ID3101); //Please	enter user name.
		return false;
	}
				
	if(document.getElementById("password").value =='')
	{
		alert(MSG_ID3102); //Please	enter password.
		return false;
	}
	document.getElementById('func').value = 'Login';
	
	return true;
}

//======================================================================= 

function LTrim(str)	{
	return str.replace(/^[ \t\n\r]+/g, "");
}

function RTrim(str)	{
	return str.replace(/[ \t\n\r]+$/g, "");
}

function Trim(str) {
	return RTrim(LTrim(str));
}
//======================================================================= 
function BrowserDetection()
{
	var bDecline = false;
	var nVersion = -1;
	var nStart = -1;
	var nEnd = -1;
	var nLoop = 0;
	var bBrowser = -1; // 1:IE ; 0:FireFox ; -1:neither.
	var tmpStr = "";
	var strVersion = "";
	var browserMsgObj = document.getElementById('browser_decline');
	var loginAreaObj = document.getElementById('login_area');
	
	// Get browser
	aUserAgent = navigator.userAgent.toLowerCase();
	nStart = aUserAgent.indexOf("firefox");
	nEnd = aUserAgent.length;
	if(nStart != -1)
	{
		// Firefox
		nStart += 7;
		bBrowser = 0;
	}
	else
	{
		nStart = aUserAgent.indexOf("msie");
		if(nStart != -1)
		{
			// IE
			nStart += 4;
			bBrowser = 1;
		}
		else
		{
			// neither
			bDecline = true;
		}
	}
	
	// Get version
	if(!bDecline)
	{
		if(nStart > 0)
		{
			tmpStr = aUserAgent.substring(nStart+1, nEnd);
			strVersion = tmpStr;
			nEnd = tmpStr.indexOf(";");
			if(nEnd != -1)
			{
				strVersion = tmpStr.substring(0, nEnd);
			}
		}
		else
		{
			// neither
			bDecline = true;
		}
	}
	
	// Check version
	if(!bDecline)
	{
		if(bBrowser == 1) // IE
		{
			nLoop = 1;
		}
		else if(bBrowser == 0) // Firefox
		{
			nLoop = 3;
		}
		
		nStart = 0;
		nEnd = 1;
		//tmpStr = strVersion.replace(/\./g,"");
		tmpStr = strVersion.replace(".","");
		strVersion = tmpStr.substring(0, nLoop);
		
		if(bBrowser == 1) // IE
		{
			nVersion = eval(strVersion);
			if(nVersion < 6) // at least v6.0
			{
				bDecline = true;
			}
		}
		else if(bBrowser == 0) // Firefox
		{
			nVersion = eval(strVersion);
			if(nVersion < 10.6) // at least v1.0.6.0
			{
				bDecline = true;
			}
		}
	}
	
	if(bDecline)
	{
		// Browser declined
		browserMsgObj.style.display = '';
		loginAreaObj.style.display = 'none';
	}
	else
	{
		browserMsgObj.style.display = 'none';
		loginAreaObj.style.display = '';
	}
}
</Script>

<Script Language=javascript>
var language = new Array("中文(繁體)", "Deutsch", "English", "français","日本語", "한국어 ", "中文(简体)", "Español", "Italiano");
var dir = new Array("zh-TW","de","en","fr","ja","ko","zh-CN","es","it");</Script>


Reproducible: Always

Steps to Reproduce:
1. 
2.
3.
Actual Results:  
page header and titles but no login form

Expected Results:  
login form with graphics
This is a mass search for bugs that are in the Firefox General component, are
UNCO, and have not been changed for 800 days and have an unspecified version. 

Reporter, can you please update to Firefox 3.6.10, create a fresh profile,
http://support.mozilla.com/en-US/kb/managing+profiles, and test again. If you
still see the bug, please update this bug. If the issue is gone, please set the
resolution to RESOLVED > WORKSFORME.
Whiteboard: [CLOSEME 2010-11-01]
No reply from reporter, INCOMPLETE. Please retest with Firefox 3.6.12 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.