This page last changed on Oct 29, 2013 by dirkx.

Affected version: OpenRemote-Controller-2.1.0_SNAPSHOT-2013-06-17

When logging in on an empty account (through usual localhost:8080/controller) with sync enabled -

org.openremote.controller.service.Deployer$BeehiveConnection.downloadZip(Deployer.java:1492)

will correctly detect that there is no zip/empty zip file. However it is reported up the stack
as

line account failed : Authentication failed, please check your username and password.
org.openremote.controller.exception.ConnectionException: Authentication failed, please check your username and password.

and hence the user feedback is not 'no zip/model/ui' yet created - but an authentication failure (which it is not).

Nice catch, thank you.

The problem originates from the server side which treats two separate conditions as 404 – either the user path is not found (which would mean you've entered your username incorrectly, or you haven't created an account yet) or because no data on an existing account was found.

Reporting the latter as authentication failure is clearly terribly wrong.

Posted by juha at Oct 30, 2013 01:18

Aye - a simple split of the two

case HttpURLConnection.HTTP_UNAUTHORIZED:
case HttpURLConnection.HTTP_NOT_FOUND:

switch statements would do. Failed to find your CLA document - so reported it this way

Posted by dirkx at Oct 30, 2013 09:18

For simple bug reports reporting here is fine. If you're interested in creating patches, let me know and I'll send the contributor agreement. Email me: juha at openremote dot org

Posted by juha at Oct 31, 2013 16:27
Document generated by Confluence on Jun 05, 2016 09:40