Forum OpenACS Q&A: ad_conn urlv not returning consistent results


Today we upgraded to the beta release.  Some code that I wrote that
calls [ad_conn urlv] is doing funny things--it looks like [ad_conn
urlv] is not returning consistent results.  I put some selective
dump messages in to log what's going on--sometimes when I hit the
page (which is /jsi/2000v1i1/) [ad_conn urlv] returns just "jsi",
other times it returns the full list of "jsi 2000v1i1". Any ideas
what's going on?  I'm confused because [ad_conn urlc] returns "2" in
all cases...

Posted by David Walker on
Check to see if you get different results with and without the trailing slash.
i.e. /jsi/2000vlil/ and /jsi/2000vlil
Posted by C. R. Oldham on

It makes no difference.


I've confirmed this exists against a stock install.  I've opened a bug report (, and attached some sample code (twice, since I forgot that the SDM doesn't handle html vs. plain text very well).

I haven't had time to debug this yet.  If anyone has any idea why this is happening, I'd like to know.  Thanks.

Posted by C. R. Oldham on

OK, I think I found where this is happening. See

Bug 1492

Something is wrong with the way ad_conn is overloaded in the developer-support package. Disabling the developer-support package seems to fix it.

You can't link bug reports in this version of the SDM can you? I put a comment in bug 1425 pointing to 1492 since 1425 has test code.

Posted by Don Baccus on
No, there's no linking available ... that's a good feature request, though.  Thanks for tracking this down ... it shouldn't be too hard to find.