[Zope3-dev] publisher ugliness [was: functional testing ugliness]

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Sat, 02 Aug 2003 15:28:20 +1000


>>> Marius Gedminas wrote

> On Fri, Aug 01, 2003 at 04:34:26PM +1000, Anthony Baxter wrote:
> > As part of the testing of adding, we have code like this:
> > 
> >     response = self.publish("/felix_the/+/AddFieldIndexToCatalog=dctitle",
> > 		    basic='mgr:mgrpw', 
> > 		    form={'field.interface.search': 
> > 			  u'zope.app.interfaces.dublincore.IZopeDublinCore',
> > 			  'field.field_name':'Title'})
> > 
> > Initially we had the URL as "/felix_the/+/AddFieldIndexToCatalog%3Ddctitle"
> > (snarfed out of a browser), and this led to an infinite recursion in the
> > publishing code when running the tests.
>
> If you type the following URL to the browser, you will see the same
> RuntimeError:
> 
>   felix_the/+/AddFieldIndexToCatalog%2E3Ddctitle
> 
> Functional testing code passes the URL to the publisher as-is, without
> doing any URL decoding that is done by the HTTP server code, that's why
> it exposed this bug.

Ok, so the publisher's a bit wacked. Anyone know why/how? Should I just
drop something in the collector?

Anthony

-- 
Anthony Baxter     <anthony@interlink.com.au>   
It's never too late to have a happy childhood.