Re: [Zope] Redirection problem

2007-05-25 Thread Ken Ara
Thanks for that.

Well, I don't feel like changing everything just
because of this one new feature (user editing).

Instead, could I add something in my edit method,
ahead of
return REQUEST.RESPONSE.redirect(redir_url())
to inform Zope about the port to use?

Ken

--- Andrew Milton <[EMAIL PROTECTED]> wrote:

> +---[ Ken Ara ]--
> | Thanks for bringing this up! I have always wanted
> to
> | know: since the introduction of VHM I have never
> used
> | this 'VirtualHostBase' business. I have only ever
> used
> | the mappings tab as mentioned below; no Apache or
> | other redirect rules. All has always worked
> perfectly.
> | Am I finally being bitten by this?
> 
> I would say so.
> 
> | BTW, I always override the  tags.
> 
> That's obviously not working for you in this case.
> 
> -- 
> Andrew Milton
> [EMAIL PROTECTED]
> 



   
Need
 a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Redirection problem

2007-05-25 Thread Andrew Milton
+---[ Ken Ara ]--
| Thanks for bringing this up! I have always wanted to
| know: since the introduction of VHM I have never used
| this 'VirtualHostBase' business. I have only ever used
| the mappings tab as mentioned below; no Apache or
| other redirect rules. All has always worked perfectly.
| Am I finally being bitten by this?

I would say so.

| BTW, I always override the  tags.

That's obviously not working for you in this case.

-- 
Andrew Milton
[EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Redirection problem

2007-05-25 Thread Ken Ara
Thanks for bringing this up! I have always wanted to
know: since the introduction of VHM I have never used
this 'VirtualHostBase' business. I have only ever used
the mappings tab as mentioned below; no Apache or
other redirect rules. All has always worked perfectly.
Am I finally being bitten by this?

BTW, I always override the  tags.

Ken

--- Andrew Milton <[EMAIL PROTECTED]> wrote:

> +---[ Ken Ara ]--
> | Virtual hosting for us is limited to two lines in
> the
> | default VHM mappings:
> | 
> | mysite.org/mysite
> | *.mysite.org/mysite
> | 
> | This minimal arrangement has worked for several
> years,
> | although Pound and ZEO are new for us. No other
> | problems.
> 
> Right, but, when you 'forward' from pound or squid
> into Zope, you need to
> reference your Zope portion via the Virtual Host
> Monster, in order to have the
>  tags that Zope generates be correct.
> 
> e.g.
> 
>
http://127.0.0.1:8080/VirtualHostBase/http/mysite.org:80/mysite/VirtualHostRoot/...
> 
> 
> 
> -- 
> Andrew Milton
> [EMAIL PROTECTED]
> 



   

Moody friends. Drama queens. Your life? Nope! - their life, your story. Play 
Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Redirection problem

2007-05-25 Thread Andrew Milton
+---[ Ken Ara ]--
| Virtual hosting for us is limited to two lines in the
| default VHM mappings:
| 
| mysite.org/mysite
| *.mysite.org/mysite
| 
| This minimal arrangement has worked for several years,
| although Pound and ZEO are new for us. No other
| problems.

Right, but, when you 'forward' from pound or squid into Zope, you need to
reference your Zope portion via the Virtual Host Monster, in order to have the
 tags that Zope generates be correct.

e.g.

http://127.0.0.1:8080/VirtualHostBase/http/mysite.org:80/mysite/VirtualHostRoot/...



-- 
Andrew Milton
[EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Unauthorized: You are not allowed to access 'manage_page_header' in this context

2007-05-25 Thread Andreas Jung



--On 25. Mai 2007 11:03:47 +0200 Yuri <[EMAIL PROTECTED]> wrote:


Andreas Jung wrote:



--On 25. Mai 2007 10:48:04 +0200 Yuri <[EMAIL PROTECTED]> wrote:


I've an application in Zope. A user see this message when he try to
submit a form. I've tried myself with his account and I had no error.
> Unauthorized: You are not allowed to access 'manage_page_header' in
this
context



Google for "Plone How to debug unauthorized".



It is Zope and I now how to debug (now :-D). The problem is that it
doesn't happen to me, but to that specific user, on that specific
computer/browser, I suppose :)


You might take advices seriously (but you tend to ignore them) :-)

Unauthorized is a *ZOPE* exception and VerboseSecurity is a *Zope* tool.

-aj

pgpc07vDDVcJc.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Unauthorized: You are not allowed to access 'manage_page_header' in this context

2007-05-25 Thread Yuri

Andreas Jung wrote:



--On 25. Mai 2007 10:48:04 +0200 Yuri <[EMAIL PROTECTED]> wrote:


I've an application in Zope. A user see this message when he try to
submit a form. I've tried myself with his account and I had no error.
> Unauthorized: You are not allowed to access 'manage_page_header' in 
this

context



Google for "Plone How to debug unauthorized".



It is Zope and I now how to debug (now :-D). The problem is that it 
doesn't happen to me, but to that specific user, on that specific 
computer/browser, I suppose :)


I just asked if it is happened already that the browser matter (maybe a 
cookie/browser problem?)

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Redirection problem

2007-05-25 Thread Ken Ara
Virtual hosting for us is limited to two lines in the
default VHM mappings:

mysite.org/mysite
*.mysite.org/mysite

This minimal arrangement has worked for several years,
although Pound and ZEO are new for us. No other
problems.

Ken


--- Andrew Milton <[EMAIL PROTECTED]> wrote:

> +---[ Ken Ara ]--
> | We have a filesystem product with an edit method
> that
> | allows users to change some properties. At the
> end,
> | the user is redirected to the page from which they
> | came.
> | 
> | Our setup has Squid in front on port 80, with
> Pound on
> | port 81 load-balancing to 3 ZEO clients.
> | 
> | No matter how we define the redirect URL - even
> when
> | we hardcoded it explicitly with ':80' for test
> | purposes - the redirection is always to port 81.
> What
> | is going on?
> 
> Your rewrite rule (if any), is not traversing
> through your Virtual Host
> Monster correctly.
> 
> -- 
> Andrew Milton
> [EMAIL PROTECTED]


--- Andreas Jung <[EMAIL PROTECTED]> wrote:

> 
> Improper virtualhosting configuration? Without a
> detailed description
> it is unlikely that someone might help.
> 
> -aj



  

Park yourself in front of a world of choices in alternative vehicles. Visit the 
Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Unauthorized: You are not allowed to access 'manage_page_header' in this context

2007-05-25 Thread Andreas Jung



--On 25. Mai 2007 10:48:04 +0200 Yuri <[EMAIL PROTECTED]> wrote:


I've an application in Zope. A user see this message when he try to
submit a form. I've tried myself with his account and I had no error.
> Unauthorized: You are not allowed to access 'manage_page_header' in this
context



Google for "Plone How to debug unauthorized".

-aj

pgpyFrL9yGhRO.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Unauthorized: You are not allowed to access 'manage_page_header' in this context

2007-05-25 Thread Yuri
I've an application in Zope. A user see this message when he try to 
submit a form. I've tried myself with his account and I had no error.


I'm using OpenFlow, if it matters. The user is never sent to the 
openflow instance, so I don't understand how he tries to request this url.


Can be a browser problem? The user is sent to management screen with no 
apparent reason:


Time2007/05/25 10:12:05.769 GMT+2
User Name (User Id) ww (ww)
Request URL 
http://myserver.com:8080/xxx/yyy/WorkFlow/ProcessInstances/1180080540.75/paper/index_html 



Exception Type  Unauthorized
Exception Value 	You are not allowed to access 'manage_page_header' in 
this context


Traceback (innermost last):

   * Module ZPublisher.Publish, line 101, in publish
   * Module ZPublisher.mapply, line 88, in mapply
   * Module ZPublisher.Publish, line 39, in call_object
   * Module Shared.DC.Scripts.Bindings, line 306, in __call__
   * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   * Module Products.PageTemplates.PageTemplateFile, line 106, in _exec
   * Module Products.PageTemplates.PageTemplate, line 96, in pt_render
 **
   * Module TAL.TALInterpreter, line 190, in __call__
   * Module TAL.TALInterpreter, line 234, in interpret
   * Module TAL.TALInterpreter, line 569, in do_insertStructure_tal
   * Module Products.PageTemplates.TALES, line 221, in evaluate
 *URL: index_html*
 *Line 1, Column 0*
 *Expression: standard:'here/manage_page_header'*
 *Names:*

 {'container': ,
  'context': ,
  'default': ,
  'here': ,
  'loop': ,
  'modules': ,
  'nothing': None,
  'options': {'args': ()},
  'repeat': ,
  'request': http://myserver.com:8080/xxx/yyy/WorkFlow/ProcessInstances/1180080540.75/paper/index_html>,
  'root': ,
  'template': ,
  'traverse_subpath': [],
  'user': bersani}

   * Module Products.PageTemplates.Expressions, line 172, in __call__
   * Module Products.PageTemplates.Expressions, line 160, in _eval
   * Module Products.PageTemplates.Expressions, line 116, in _eval
 __traceback_info__: here
   * Module Products.PageTemplates.Expressions, line 311, in
 restrictedTraverse
 __traceback_info__: {'path': ['manage_page_header'],
 'TraversalRequestNameStack': []}

Unauthorized: You are not allowed to access 'manage_page_header' in this 
context

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Redirection problem

2007-05-25 Thread Andrew Milton
+---[ Ken Ara ]--
| We have a filesystem product with an edit method that
| allows users to change some properties. At the end,
| the user is redirected to the page from which they
| came.
| 
| Our setup has Squid in front on port 80, with Pound on
| port 81 load-balancing to 3 ZEO clients.
| 
| No matter how we define the redirect URL - even when
| we hardcoded it explicitly with ':80' for test
| purposes - the redirection is always to port 81. What
| is going on?

Your rewrite rule (if any), is not traversing through your Virtual Host
Monster correctly.

-- 
Andrew Milton
[EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Redirection problem

2007-05-25 Thread Andreas Jung



--On 25. Mai 2007 01:26:32 -0700 Ken Ara <[EMAIL PROTECTED]> wrote:


We have a filesystem product with an edit method that
allows users to change some properties. At the end,
the user is redirected to the page from which they
came.

Our setup has Squid in front on port 80, with Pound on
port 81 load-balancing to 3 ZEO clients.

No matter how we define the redirect URL - even when
we hardcoded it explicitly with ':80' for test
purposes - the redirection is always to port 81. What
is going on?




Improper virtualhosting configuration? Without a detailed description
it is unlikely that someone might help.

-aj

pgp0Myn1Wc8ln.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Redirection problem

2007-05-25 Thread Ken Ara
We have a filesystem product with an edit method that
allows users to change some properties. At the end,
the user is redirected to the page from which they
came.

Our setup has Squid in front on port 80, with Pound on
port 81 load-balancing to 3 ZEO clients.

No matter how we define the redirect URL - even when
we hardcoded it explicitly with ':80' for test
purposes - the redirection is always to port 81. What
is going on?

Thanks!

Ken


 

Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )