Re: segfault on xpath queries :P

darryl <[email protected]> Tue, 04 May 2004 10:57:23 -0500
Newsgroups gmane.comp.web.syncato.general
Message-ID <[email protected]>
emf wrote:
> On May 4, 2004, at 02:56, darryl wrote:
> 
>> I have no idea what your problem is, BUT i think kimbro's idea of 
>> passing the xpath in via
>> a named parameter is the way to go.
> 
> 
> I have solved the xpath issue, and it's certainly not the apache thing:
> 
> from Weblog import Weblog
> blog = Weblog('/home/roland/Syncato/config')
> print blog.handleRequest('//character','','','')
> 
> That segfaults reliably. (character is an element that appears ~320 
> times in the six documents I have).
> 
> I would be very appreciative if you could tell me if, after copying the 
> documents http://mindlace.net/tmp/roland.tgz , and using the attached 
> config file (changing paths accordingly), running the script above (in 
> your dist/scripts/lib/ dir) gives you a segfault.
> 
> I really like xpath sans a named parameter - it makes it very elegant to 
> make xpath requests.
> 
>> I've also found that while trying to use mod_rewrite to proxy to 
>> another apache install
>> is causing issues with item titles ending in a "?" Webware is now 
>> intrepreting that as a query parameter....
> 
> 
> Well, that'll teach you to make querulous blog entries.
> -- 
> ~mindlace

I'll try and get some time to try your scripts out.

As for using a named parameter for xpath queries. The problem as I 
percieve it is that somewhere along the line (either webware or apache)
the url's are getting mangled. For example:

http://randomthoughts.vandorp.ca/WK/blog/item//a

*should* yield all links. However by the time it gets to syncato
syncato sees:

/WK/blog/item/a

So when you say you've fixed the xpath issue are you referring to the 
patch the other day?

-darryl

-- 
http://randomthoughts.vandorp.ca/syncato/WK/blog


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click