[Seaside] SmalltalkHub setup questions

Jupiter Jones jupiter.jones at mail.com
Thu Oct 9 22:11:13 UTC 2014


Hi All,

I’m setting up a local SmalltalkHub for my team, helping package distribution, and to learn about Kaliningrad and Amber.

I’m testing by connecting directly to the pharo vm from the browser - I don’t know if there’s a need for WebDAV or not.

It appears to be working but I think I have missed something fundamental :)

1. I register a new user with the seaside UI and it appears in the recently registered list.
2. UI still says “0 registered users”

[Error] TypeError: undefined is not an object (evaluating 'a.length')
	each (jquery-1.7.1.min.js, line 2)
	widget (jQueryUi.js, line 5)
	(anonymous function) (jQueryUi.js, line 5)
	global code (jQueryUi.js, line 5)
[Error] Failed to load resource: the server responded with a status of 500 (Internal Server Error) (users, line 0)
http://localhost:8080/hub/projects/count

3. Login fails - Oops invalid username or password
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (login, line 0)
http://localhost:8080/hub/login

I tried:

(ShUser selectOne: [ :each | each username ='jupiter' ])
validatePassword: ‘myPassword’

…and it returned false until I changed ShUser-#validatePassword:
from:
validatePassword: aString
	^self password asInteger = (GRPlatform current secureHashFor: aString)
to: 
validatePassword: aString
	^self password = (GRPlatform current secureHashFor: aString) asString

However, login still fails with NotFound. I tried to put a halt in the login handler however it’s not halting when I hit hub/login.

Could something be caching the old method so my halt is not being seen?

Before I start breaking more things, are there any docs for SmalltalkHub? Is there a version that runs in GemStone rather than using Mongo? (just interested) And finally, for Amber development, is there a defined way to load development and popupHelios()?

Any advice would be much appreciated.

I also noticed from the Mongo log that every connection appears to remain open:
2014-10-10T08:44:18.918+1100 [initandlisten] connection accepted from 127.0.0.1:59924 #1 (1 connection now open)
2014-10-10T08:44:18.922+1100 [initandlisten] connection accepted from 127.0.0.1:59925 #2 (2 connections now open)
2014-10-10T08:44:18.923+1100 [initandlisten] connection accepted from 127.0.0.1:59926 #3 (3 connections now open)
2014-10-10T08:44:18.924+1100 [initandlisten] connection accepted from 127.0.0.1:59927 #4 (4 connections now open)
2014-10-10T08:44:18.992+1100 [initandlisten] connection accepted from 127.0.0.1:59928 #5 (5 connections now open)
2014-10-10T08:44:19.010+1100 [initandlisten] connection accepted from 127.0.0.1:59930 #6 (6 connections now open)
2014-10-10T08:44:19.098+1100 [initandlisten] connection accepted from 127.0.0.1:59931 #7 (7 connections now open)
2014-10-10T08:44:19.182+1100 [initandlisten] connection accepted from 127.0.0.1:59932 #8 (8 connections now open)
2014-10-10T08:44:19.266+1100 [initandlisten] connection accepted from 127.0.0.1:59933 #9 (9 connections now open)
2014-10-10T08:44:19.349+1100 [initandlisten] connection accepted from 127.0.0.1:59934 #10 (10 connections now open)
etc.

Is this correct? After 5 minutes playing around I had hundreds of connections “now open”.

Thanks for your time.

Cheers,

J


More information about the seaside mailing list