#2300 Installing private pods from Status302

SlimerDude Fri 13 Jun 2014

I'm trying to install a private pod from Status302 with the following cmd line:

fanr install -r http://repo.status302.com/fanr/ -u XXX -p XXX myPod

But I'm forever greeted with:

ERROR: query command failed
  fanr::RemoteErr: Invalid password (invalid signature) [401]
  use -errTrace for full stack trace

I've checked the user credentials and I can log onto the Status302 with them.

Am I doing anything wrong? Is my fanr syntax correct?

My fantom details:

C:\> fan -version
Fantom Launcher
Copyright (c) 2006-2013, Brian Frank and Andy Frank
Licensed under the Academic Free License version 3.0

Java Runtime:
  java.version:    1.6.0_45
  java.vm.name:    Java HotSpot(TM) 64-Bit Server VM
  java.vm.vendor:  Sun Microsystems Inc.
  java.vm.version: 20.45-b01
  java.home:       C:\Apps\Java\jdk1.6.0_45\jre
  fan.platform:    win32-x86_64
  fan.version:     1.0.66
  fan.env:         sys::BootEnv
  fan.home:        C:\Apps\fantom-1.0.66

SlimerDude Fri 27 Jun 2014

When I found I couldn't publish pods to Status302 from the cms line I figured something was up, for I remembered in this thread problems with authentication were supposed to have been resolved in Fantom-1.0.64.

So, a note to all those using Status302 Fanr Repo from the command line:

Your username is **ALL** lowercase!

Whereas I login with the username SlimerDude, on the cmd line I need to type:

fanr install -r http://repo.status302.com/fanr/ -u slimerdude -p XXX myPod

Ta daa!

: ) Happy happy, joy joy!

tcolar Fri 27 Jun 2014

Hey sorry I missed your original post. Yes you do need 1.064+ because of that auth issues.

I don't remember forcing all lower case on the user name but could be. I0n case of doubt the sources are here: https://github.com/tcolar/fantorepo302

Note that it runs on a slightly modified version of fantom because a few things I needed to use in the fanr package had not been exposed (not public or virtual).

SlimerDude Fri 27 Jun 2014

Cool. I checked the src:

First in AuthService.createUser() - line l03:

userName = form["username"].lower

And then AuthService.login() - line 26:

userName = userName.lower

Phew! I thought I was going insane!

Login or Signup to reply.