bmor1 / bimserver

Automatically exported from code.google.com/p/bimserver
0 stars 0 forks source link

setup.jsp still available after setup #405

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. setup new server 
2. goto serveradress/setup.jsp

What is the expected output? What do you see instead?
expect to be forwarded to main.jsp, but get setup.jsp instead.

Original issue reported on code.google.com by berlo...@gmail.com on 27 Jun 2012 at 9:54

GoogleCodeExporter commented 8 years ago
This is likely because of the way in which the server settings are being read 
back from the collection(store_Settings)

IfcModel model = session.getAllOfType(StorePackage.eINSTANCE.getSettings(), 
false, null);
if (model.size() == 1) {IdEObject idEObject = 
model.getValues().iterator().next();
if (idEObject instanceof Settings) {settings = (Settings) idEObject;}

Looks like its not picking the most recent update instead it picks the previous 
model which had no setting. Hence failing again in the validation below

if (settings.getSiteAddress().isEmpty() || settings.getSmtpServer().isEmpty() 
|| !adminFound) {

Original comment by reisang....@gmail.com on 7 Sep 2012 at 11:54

GoogleCodeExporter commented 8 years ago
setup.jsp is now only available as long as the server has not been setup.
I refactored the whole Settings code so work better as well, thanks for the 
suggestion.

Original comment by ru...@logic-labs.nl on 13 Sep 2012 at 12:39