Forum OpenACS Development: bugtracker search broken

Collapse
Posted by Dave Bauer on
Hi,

Carl posted a bug to add bugtracker search to openacs.org and I tried to set it up.

It doesn't work because the bugtracker search tries to get a users community URL to build the datasource, unfortunately the community url proc relies on ad_conn node_id, which is not set in a scheduled proc.

This change made the community_url rely on ad_conn

http://cvs.openacs.org/cvs/openacs-4/packages/acs-tcl/tcl/defs-procs.tcl?r1=1.43.2.4&r2=1.43.2.5

I don't know how to fix this, perhaps default to main subsite if not in a connection?

Collapse
Posted by Dave Bauer on
Wait I am wrong that change didn't cause this problem.

Either subsite::get_element changed or bugtracker search never worked. I'll keep looking.

Collapse
Posted by Dave Bauer on
THis explains it in subsite::get_element

subsite::get_element__arg_parser

if { [empty_string_p $subsite_id] } {
set subsite_id [ad_conn subsite_id]
}

I can't figure out a safe way to handle thi, subsite::get also assumes a connection and it doesn't seem right to push the subsite_id parameter up to the community_url proc.

I will try fixing subsite::get to return the main subsite if not connected.