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

Greetings,

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...

Collapse
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
Collapse
Posted by C. R. Oldham on
David,

It makes no difference.

All,

I've confirmed this exists against a stock install.  I've opened a bug report (https://openacs.org/sdm/one-baf.tcl?baf_id=1425), 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.

Collapse
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.

Collapse
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.