Bad URL returned after Save or State Change

1 message Options
Embed this post
Permalink
Anthony Bosio () Bad URL returned after Save or State Change
Reply Threaded More More options
Print post
Permalink
In a Zope 3 style product, I have two content types that when saved (or state changed) the URL returned to the browser is incorrect.

This is on Plone 3.2.2 (and was also in 3.1.5). In production we have 3 Zope clients connected to a ZEO and Apache handling load balancing and url rewriting. But the problem also occurs on my dev environment with no Apache.

The URL returned to should be:
http://www.plonesite.com/folder/contentitem

But instead, is:
"http://www.plonesite.com/folder/contentitem http://www.plonesite.com/folder/contentitem"

That is: expectedURL+space+expectedURLagain

This results in a Page Not Found when viewed through a proxy that is cleaning the url. When viewed directly via IP address, it does not cause Page Not Found but is still incorrect.

In the same product, we have two folderish content types that do not exhibit this problem. It happens whether or not you are saving a new object or after editing an existing one.

It sounds similar to this thread:
http://n2.nabble.com/Plone-fails-to-find-view-but-can-find-edit-page-tp354687p354687.html

Changing default_view to base_view instead of view in the generic setup profile - as indicated in the thread - does not fix the problem for me, and disables the custom view registered for this content type.

Profile for one of the problematic content types:
http://paste.plone.org/27700

Any ideas about how to get the correct url returned would be appreciated.
--
Anthony Bosio
Web and Multimedia Developer
Lynn University