r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!CureCode] web-based bugtracking tool

Henrik
30-Aug-2009
[659x3]
URL  = /bugs/register.rsp
        File = /home/henrikmk/serve/www/bugs/register.rsp

        ** User Error : Server error: tcp connection failed 
        ** Where: none 

        ** Near:  [insert smtp-port reduce [from reduce [addr] tmp]]
and it should be running with root privileges.
DocKimbel, I noticed that it's spelled "STMP-server" in the config 
file and in the other sources. Is that correct? The correct spelling 
would be "SMTP-server"
Graham
30-Aug-2009
[662]
can't you use localhost as the smtp server?
Henrik
30-Aug-2009
[663x3]
from rebol yes, cheyenne, apparently not.
If I'm right, sending mail only happens in the helper.r file. But 
even if I try to make an error well before the actual mail sending 
happens in 'send-confirmation, it still returns a tcp error. It seems 
I'm not hitting the right place in the code.
BTW, I spotted another error with the captcha:

URL  = /bugs/captcha.rsp
        File = /home/henrikmk/serve/www/bugs/captcha.rsp

        ** Access Error : Port none not open
        ** Where: confirm
        ** Near:  [save/png img: make binary! 25000]


At that time I noticed the image was not displayed in the browser, 
but it only happened once.
Graham
30-Aug-2009
[666]
I never got the captcha working the way doc has it .. I had to write 
my images to the public folder and display them from there.
Henrik
30-Aug-2009
[667]
it's probably a permissions problem
Graham
30-Aug-2009
[668x4]
in ram?
There used to be a tracker at http://softinnov.org:8000/curecode
for curecode itself ...
send-confirmation: func [
	spec [block!] vkey [string!]
	/local url login pass template
][
	system/user/name: "REBOL3 Tracker" 
	set-net reduce [[no-reply-:-curecode-:-org] "softinnov.com"]
	url: rejoin [
		request/headers/Host

  either request/server-port = 80 [""][join ":" request/server-port]
		request/web-app
		"/validate.rsp?id=" url-encode spec/login 
		"&key=" vkey
	]
	login: spec/login
	pass: spec/pass
	template: read join locale/get-path %email-activation.tpl
	replace template "$url" url
	replace template "$login" login
	replace template "$pass" pass
	
	send/subject spec/email template
		rejoin ["[REBOL3 Tracker] " say "Account activation"]
]
Henrik
30-Aug-2009
[672]
yes, I thought I could make an error! earlier in that function, but 
I still get a TCP error.
Graham
30-Aug-2009
[673]
You know that ?? logs to trace.log
Dockimbel
30-Aug-2009
[674]
STMP-server
: thanks for finding that one!
Graham
30-Aug-2009
[675]
So, was your smtp error related to trying to connect to sofinnov's 
mail server?
Henrik
30-Aug-2009
[676]
I was trying to use ??, but couldn't get it to work.
Dockimbel
30-Aug-2009
[677]
Port none not open
 on save/png...odd one.
Graham
30-Aug-2009
[678x2]
Oh .. that's for RSP.
helper.r is in the global name space ... so ?? may not work
Dockimbel
30-Aug-2009
[680]
Try debug/probe instead.
Henrik
30-Aug-2009
[681x6]
debug/probe mold spec
 inserted on the first line...
no difference. it still reports tcp error. it must be coming some 
time before that function.
got debug/probe working now. it definitely stops at 'send-confirmation.
oh that's it. I just need to fill that function up with debug/probes 
and it works. :-) got a mail now.
graham or doc, could you please try registering at:

http://97.107.135.89/bugs/register.rsp
your account will be deleted after testing is done
Graham
30-Aug-2009
[687x3]
Type the code your read in the following image

should be .. type in the code below or similar
I'm registered and in!
nice work .. hope you document all the fixes you had to make.
Henrik
30-Aug-2009
[690]
cool. now I need to access the admin account. only need the password.
Graham
30-Aug-2009
[691x4]
yeah ... you only have the hash!
encode-pass: func [pass [string!]][
	enbase/base checksum/method pass 'md5 16
]
use that to create your new password and store that in the db
ie. store the result.
Dockimbel
30-Aug-2009
[695x3]
default admin account is : nimda
that's in comment somewhere (build.sql or install script)
Registering: ok
Email: ok
Login/logou: ok
Henrik
30-Aug-2009
[698]
this is sweet! complete user and project management.
Dockimbel
30-Aug-2009
[699x2]
v0.9.9 is a little bit better for management.
I'll make a package asap, so you can upgrade.
Graham
30-Aug-2009
[701]
it's not in the sql script that I saw
Henrik
30-Aug-2009
[702x3]
yes, BTW, there are many places where the word REBOL3 is hardcoded 
in strings. I was wondering if it's a good idea to move that to the 
config? It seems obvious for customization.
also in the top table of the page, the one with three columns, I 
forced the width of each column to 33% to avoid the changing of the 
title to move the page name in the top middle of the page.
Since this works so well, I will reward graham and doc by keeping 
their accounts, so you don't have to register again. :-)
Dockimbel
30-Aug-2009
[705]
I would have said that CC's current install process is a real PIA 
;-)
Henrik
30-Aug-2009
[706]
I think we unearthed a lot of things that we otherwise would just 
bump into along the way, anyway. I'm still not safe on the email 
issue, as the debug lines are still present.
Graham
30-Aug-2009
[707x2]
Ok, submitted a ticket!
That worked.