Projects tigase _server tigase-http-api Issues #54
HTTP Setup does not display CSS Styling (#54)
Daniel Wisnewski opened 7 years ago

The web-setup displays basic text and no CSS styling on either chrome or IE browsers.

Source from web-page

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta charset="UTF-8"/>
<title>Tigase XMPP Server: Setup: About software</title>



</head>
<body>
<noscript>
	<div style="border: 2px solid red; margin: 3px">
		<div style="color: red; font-weight: bold; padding: 10px "><span>WARNING:</span><span>Your browser does not support JavaScript or JavaScript is disabled.</span></div>
		<div style="font-size: 0.9em; padding: 5px 15px">Tigase XMPP Server Setup uses JavaScript to validate chosen configuration options - it may not work properly without JavaScript and may result in an incorrect configuration.<br/>We strongly recommend changing web browser or enabling JavaScript in web browser configuration.</div>
	</div>
</noscript>
<div id="wrapper">
<nav class="navbar navbar-default navbar-static-top" role = "navigation" style="margin-bottom: 0;">
	<div class="navbar-header">
		<a class="navbar-brand" href="/" id="logo">
			<p>Setup: About software</p>
		</a>
	</div>
	
	<div class="navbar-default sidebar" role="navigation">
		<div class="sidebar-nav navbar-collapse">
			<ul class="nav" id="side-menu">
				
				<li>
					<a  href="?step=1"><i class="fa fa-fw"></i>About software</a>
				</li>
				
				<li>
					<a  href="?step=2"><i class="fa fa-fw"></i>Advanced Clustering Strategy information</a>
				</li>
				
				<li>
					<a  href="?step=3"><i class="fa fa-fw"></i>Basic Tigase server configuration</a>
				</li>
				
				<li>
					<a  href="?step=4"><i class="fa fa-fw"></i>Advanced configuration options</a>
				</li>
				
				<li>
					<a  href="?step=5"><i class="fa fa-fw"></i>Plugins selection</a>
				</li>
				
				<li>
					<a  href="?step=6"><i class="fa fa-fw"></i>Database configuration</a>
				</li>
				
				<li>
					<a  href="?step=7"><i class="fa fa-fw"></i>Database connectivity check</a>
				</li>
				
				<li>
					<a  href="?step=8"><i class="fa fa-fw"></i>HTTP API - REST security configuration</a>
				</li>
				
				<li>
					<a  href="?step=9"><i class="fa fa-fw"></i>Setup security</a>
				</li>
				
				<li>
					<a  href="?step=10"><i class="fa fa-fw"></i>Saving configuration</a>
				</li>
				
				<li>
					<a  href="?step=11"><i class="fa fa-fw"></i>Finished</a>
				</li>
				
			</ul>
		</div>
	</div>
	
</nav>
<div id="page-wrapper" >
	 <div class="row">
		 <div class="col-sm-12 col-md-12 col-lg-12">
			 <div class="panel-body">

<div class="panel panel-default">
    <div class="panel-body">
<p>While the Tigase server is quite stable and well tested application the installer itself is a new addition. Take precautions especially if you upgrade the server from earlier version. Backup old server files and the database.</p>
<p>If you notice any problems please report them at Tigase XMPP Server <a href="https://projects.tigase.org/projects/tigase-server/boards">forum</a> or create a new <a href="https://projects.tigase.org/projects/tigase-server/issues/new">issue</a>.</p>
    </div>
</div>
<form class="form-horizontal" method='POST' action="?step=2">

    <button class="btn btn-default" type="submit">Next</button>

</form>
			<!---->
			</div>
		</div>
	</div>
			<div class="row">
				<div class="col-sm-12 col-md-12 col-lg-12">&nbsp;</div>
			</div>
</div>
<div id="footer" class="container-fluid">
	<div class="row">
		<div class="panel-footer text-right">
			<p>Powered by Tigase XMPP Server 8.0.0-SNAPSHOT-b5023/88325bc4 (2017-10-09/01:16:45)</p>
		</div>
	</div>
</div>
</body>
</html>

Result is lacking any style. Attached screenshot shows result.

Both /setup/ and /admin/ are affected. /ui/ appears to be fine.

screenshot.png

Andrzej Wójcik (Tigase) commented 7 years ago

I've found a root cause of this issue and fixed it. It was Windows-only so it was working fine for me.

With my fix, I've checked on OSX, Linux and Windows and it is working fine now. Please check on the next build.

Daniel Wisnewski commented 7 years ago

Error is fixed on windows machines, closing issue

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
6208
Version
tigase-server-8.0.0rc1
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-http-api#54
Please wait...
Page is in error, reload to recover