cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED]Webclient gives Login Form instead of PDF download

norgan
Champ in-the-making
Champ in-the-making
Greetings, fellow Alfresco fans,
I currently have a behaviour of the 2.9b webclient, that baffles me. When I try to view/download a pdf file from my site,
I get a HTML login form instead of the file content. It has worked before and I really do not know, what i did change. Do you have any ideas ?

When I access the same file via CIFS, all is fine. Other filetypes like TXT, DOC, etc. work fine both ways.

Regards, Norgan

<some title>.pdf
<body bgcolor="#ffffff" style="background-image: url(/alfresco/images/logo/AlfrescoFadedBG.png); background-repeat: no-repeat; background-attachment: fixed">

<html><head><title>Alfresco Web Client - Login</title><link rel="search" type="application/opensearchdescription+xml" href="/alfresco/wcservice/api/search/keyword/description.xml" title="Alfresco Keyword Search"/></head><body>
<link rel="stylesheet" href="/alfresco/css/main.css" TYPE="text/css">
<script type="text/javascript" src="/alfresco/scripts/menu.js"></script><script type="text/javascript" src="/alfresco/scripts/webdav.js"></script><script type="text/javascript" src="/alfresco/scripts/ajax/yahoo/yahoo/yahoo-min.js"></script><script type="text/javascript" src="/alfresco/scripts/ajax/yahoo/connection/connection-min.js"></script><script type="text/javascript" src="/alfresco/scripts/ajax/yahoo/event/event-min.js"></script><script type="text/javascript" src="/alfresco/scripts/ajax/mootools.v1.11.js"></script><script type="text/javascript" src="/alfresco/scripts/ajax/common.js"></script><script type="text/javascript" src="/alfresco/scripts/ajax/summary-info.js"></script><script type="text/javascript">setContextPath('/alfresco');</script>

<form id="loginForm" name="loginForm" method="post" action="/alfresco/faces/jsp/login.jsp;jsessionid=xxx" accept-charset="UTF-8" enctype="application/x-www-form-urlencoded">

<table width=100% height=98% align=center>
<tr width=100% align=center>
<td valign=middle align=center width=100%>

<table cellspacing=0 cellpadding=0 border=0>
<tr><td width=7><img src='/alfresco/images/parts/white_01.gif' width=7 height=7 alt=''></td>
<td background='/alfresco/images/parts/white_02.gif'>
<img src='/alfresco/images/parts/white_02.gif' width=7 height=7 alt=''></td>
<td width=7><img src='/alfresco/images/parts/white_03.gif' width=7 height=7 alt=''></td>
</tr>
<tr><td background='/alfresco/images/parts/white_04.gif'>
<img src='/alfresco/images/parts/white_04.gif' width=7 height=7 alt=''></td><td bgcolor='white'>

<table border=0 cellspacing=4 cellpadding=2>
<tr>
<td colspan=2>
<img src='/alfresco/images/logo/AlfrescoLogo200.png' width=200 height=58 alt="Alfresco" title="Alfresco">
</td>
</tr>

<tr>
<td colspan=2>
<span class='mainSubTitle'>Enter Login details:</span>
</td>
</tr>

<tr>
<td>
User Name:
</td>
<td>

<input id="loginForm:user-name" name="loginForm:user-name" type="text" value="" style="width:150px" />
</td>
</tr>

<tr>
<td>
Password:
</td>
<td>


<input type="password" id="loginForm:user-password" name="loginForm:user-password" style="width:150px" />
</td>
</tr>

<tr>
<td>
Language:
</td>
<td>



<select id="loginForm:language" name="loginForm:language" size="1" style="width:150px" onchange="document.forms['loginForm'].submit(); return true;">   <option value="de_AMT">Ressort</option>   <option value="de_DE">Deutsch</option></select>
</td>
</tr>

<tr>
<td colspan=2 align=right>
<input id="loginForm:submit" name="loginForm:submit" type="submit" value="Login" onclick="if(typeof window.clearFormHiddenParams_loginForm!='undefined'){clearFormHiddenParams_loginForm('loginForm');}" />
</td>
</tr>

<tr>
<td colspan=2>


</td>
</tr>
</table>

</td><td background='/alfresco/images/parts/white_06.gif'>
<img src='/alfresco/images/parts/white_06.gif' width=7 height=7 alt=''></td></tr>
<tr><td width=7><img src='/alfresco/images/parts/white_07.gif' width=7 height=7 alt=''></td>
<td background='/alfresco/images/parts/white_08.gif'>
<img src='/alfresco/images/parts/white_08.gif' width=7 height=7 alt=''></td>
<td width=7><img src='/alfresco/images/parts/white_09.gif' width=7 height=7 alt=''></td></tr>
</table>

<div id="no-cookies" style="display:none">
<table cellpadding="0" cellspacing="0" border="0" style="padding-top:16px;">
<tr>
<td>
<table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td width=7><img src='/alfresco/images/parts/yellowInner_01.gif' width=7 height=7 alt=''></td><td background='/alfresco/images/parts/yellowInner_02.gif'><img src='/alfresco/images/parts/yellowInner_02.gif' width=7 height=7 alt=''></td><td width=7><img src='/alfresco/images/parts/yellowInner_03.gif' width=7 height=7 alt=''></td></tr><tr><td background='/alfresco/images/parts/yellowInner_04.gif'><img src='/alfresco/images/parts/yellowInner_04.gif' width=7 height=7 alt=''></td><td bgcolor='#ffffcc'>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign=top style="padding-top:2px" width=20><img src="/alfresco/images/icons/info_icon.gif;jsessionid=xxx" height="16" width="16" /></td>
<td class="mainSubText">
Cookies must be enabled in your browser for the Alfresco Web-Client to function correctly.
</td>
</tr>
</table>
</td><td background='/alfresco/images/parts/yellowInner_06.gif'><img src='/alfresco/images/parts/yellowInner_06.gif' width=7 height=7 alt=''></td></tr><tr><td width=7><img src='/alfresco/images/parts/yellowInner_07.gif' width=7 height=7 alt=''></td><td background='/alfresco/images/parts/yellowInner_08.gif'><img src='/alfresco/images/parts/yellowInner_08.gif' width=7 height=7 alt=''></td><td width=7><img src='/alfresco/images/parts/yellowInner_09.gif' width=7 height=7 alt=''></td></tr></table>
</td>
</tr>
</table>
</div>
<script>
document.cookie="_alfTest"
var cookieEnabled = (document.cookie.indexOf("_alfTest") != -1);
if (cookieEnabled == false)
{
document.getElementById("no-cookies").style.display = 'inline';
}
</script>

</td>
</tr>

</table>

<input type="hidden" name="loginForm_SUBMIT" value="1" /><input type="hidden" name="loginForm:_idcl" /><input type="hidden" name="loginForm:_link_hidden_" /><script type="text/javascript"><!–

   function clear_loginForm()
   {
      clearFormHiddenParams_loginForm('loginForm');
   }
   
   function clearFormHiddenParams_loginForm(currFormName)
   {
      var f = document.forms['loginForm'];
      f.elements['loginForm:_idcl'].value='';
      f.elements['loginForm:_link_hidden_'].value='';
      f.target='';
   }
   
   clearFormHiddenParams_loginForm();
//–></script><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAExcHQADi9qc3AvbG9naW4uanNw" /></form>


<script>

if (document.getElementById("loginForm:user-name").value.length == 0)
{
document.getElementById("loginForm:user-name").focus();
}
else
{
document.getElementById("loginForm:user-password").focus();
}

</script>


</body></html>

</body>
2 REPLIES 2

norgan
Champ in-the-making
Champ in-the-making
Hi Folks,
the problem disappeared. This morning, all was fine again. Beats me Smiley Happy

Regards, Norgan

norgan
Champ in-the-making
Champ in-the-making
Thats it : I use a firefox plugin "PDF Download" which looses the authentification data from time to time.
Thus, alfresco transfers an login form and the plugin stores that as PDF content.