[Building Sakai] Welcome Help page fails on LocalName in 2.9.2

David Wafula Wanyonyi DavidWafula.Wanyonyi at wits.ac.za
Thu Aug 29 07:52:33 PDT 2013


Hi all,
We noticed our welcome help page was never loading. Looking through the code, this pointed to:

 org.sakaiproject.tool.help.ContentServet.java

Line 88:             url = new URL(req.getScheme(),req.getLocalName(),req.getServerPort(),req.getContextPath()+"/"+docId);

Now, req.getLocalName() was failing in our case, because of an entry in /etc/hosts that had a non-qualified domain name.

We changed to req.getServerName():

              url = new URL(req.getScheme(),req.getServerName(),req.getServerPort(),req.getContextPath()+"/"+docId);


and this works.
This could just be an issue specific to us..not sure whether it was worth opening a jira on it.
Regards

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="width:100%;"> 
<tr>
<td align="left" style="text-align:justify;"><font face="arial,sans-serif" size="1" color="#999999"><span style="font-size:11px;">This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorised signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary. </span></font></td>
</tr>
</table>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130829/9ddd78d0/attachment.html 


More information about the sakai-dev mailing list