Re: Permission Problem nach Update auf 2.9.8

Tjard Kopka <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo,
den Traceback aus dem error-Log habe ich angehängt: Traceback 1
Im Netz habe ich mittlerweile jemanden gefunden der genau dasselbe 
Problem hat(te?): https://bugs.launchpad.net/zope2/+bug/143376

Beim Einstellen der Verbosity haben wir gleichzeitig die 
Security-Maschinerie mal auf Python umgestellt 
(security-policy-implementation python). Dabei tritt an einer anderen 
Stelle der Webanwendung folgender Fehler auf (Details in Anhang: 
Traceback 2): *Error Type: Unauthorized*
*Error Value: The container has no security assertions. Access to 
'setCalendar' of (DictInstance object at 0x35fb7e0) denied.*
Die Umstellung auf 'Python-Security' ändert jedoch nichts an unserem 
erstgenannten Problem.

Gruß
Tjard
PS: Langsam am Verzweifeln mit Zope und Security Themen...

Traceback 1:

Exception traceback

Time     2011/03/16 01:24:10.429 GMT+1
User Name (User Id)     Anonymous User (None)
Request URL     
http://eckhardjost.de:8081/autorenhessen/autoren/kopka/manage_html
Exception Type     Unauthorized
Exception Value <strong>You are not authorized to access this 
resource.</strong>

Traceback (innermost last):

     * Module ZPublisher.Publish, line 106, in publish
     * Module ZPublisher.BaseRequest, line 468, in traverse
     * Module ZPublisher.HTTPResponse, line 687, in unauthorized

Unauthorized: <strong>You are not authorized to access this 
resource.</strong>

Display traceback as text

REQUEST
form
-C    ''
cookies
lazy items
SESSION <bound method SessionDataManager.getSessionData of 
<SessionDataManager at /session_data_manager>>
other
TraversalRequestNameStack    []
URL    'http://eckhardjost.de:8081/autorenhessen/autoren/kopka/manage_html'
SERVER_URL    'http://eckhardjost.de:8081'
traverse_subpath    []
PUBLISHED <ZopePageTemplate at /autorenhessen/autoren/manage_html used 
for /autorenhessen/autoren/kopka>
ACTUAL_URL    
'http://eckhardjost.de:8081/autorenhessen/autoren/kopka/manage_html'
URL0    http://eckhardjost.de:8081/autorenhessen/autoren/kopka/manage_html
URL1    http://eckhardjost.de:8081/autorenhessen/autoren/kopka
URL2    http://eckhardjost.de:8081/autorenhessen/autoren
URL3    http://eckhardjost.de:8081/autorenhessen
URL4    http://eckhardjost.de:8081
BASE0    http://eckhardjost.de:8081
BASE1    http://eckhardjost.de:8081
BASE2    http://eckhardjost.de:8081/autorenhessen
BASE3    http://eckhardjost.de:8081/autorenhessen/autoren
BASE4    http://eckhardjost.de:8081/autorenhessen/autoren/kopka
BASE5    http://eckhardjost.de:8081/autorenhessen/autoren/kopka/manage_html
environ
HTTP_ACCEPT    'application/x-ms-application, image/jpeg, 
application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, */*'
CONNECTION_TYPE    'Keep-Alive'
HTTP_USER_AGENT    'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; 
WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET 
CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)'
SERVER_PORT    '8081'
HTTP_REFERER    'http://eckhardjost.de:8081/autorenhessen/autoren/kopka'
SERVER_NAME    '0.0.0.0'
GATEWAY_INTERFACE    'CGI/1.1'
SERVER_SOFTWARE    'Zope/(Zope 2.9.8-final, python 2.4.4, linux2) 
ZServer/1.1 Plone/2.5.4-2'
REMOTE_ADDR    '188.107.243.186'
HTTP_ACCEPT_LANGUAGE    'de-DE'
SCRIPT_NAME    ''
REQUEST_METHOD    'GET'
HTTP_HOST    'eckhardjost.de:8081'
PATH_INFO    '/autorenhessen/autoren/kopka/manage_html'
SERVER_PROTOCOL    'HTTP/1.1'
channel.creation_time    1300235030
HTTP_ACCEPT_ENCODING    'gzip, deflate'
PATH_TRANSLATED    '/autorenhessen/autoren/kopka/manage_html'

Traceback 2:

Traceback (innermost last):

    * Module ZPublisher.Publish, line 115, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 41, in call_object
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.PageTemplates.ZopePageTemplate, line 255, in _exec
    * Module Products.CacheSetup.patch_cmf, line 68, in PT_pt_render
    * Module Products.CacheSetup.patch_utils, line 9, in call_pattern
    * Module Products.PageTemplates.PageTemplate, line 104, in pt_render
      *<ZopePageTemplate at /autorenhessen/lesungen/index_html>*
    * Module TAL.TALInterpreter, line 238, in __call__
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 647, in do_insertStructure_tal
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      *URL: /autorenhessen/lesungen/index_html*
      *Line 14, Column 0*
      *Expression: standard:'here/dtml_calendar'*
      *Names:*

      {'container':<Folder at /autorenhessen/lesungen>,
        'context':<Folder at /autorenhessen/lesungen>,
        'default':<Products.PageTemplates.TALES.Default instance at 0x7f9ac3de5950>,
        'here':<Folder at /autorenhessen/lesungen>,
        'loop':<Products.PageTemplates.TALES.SafeMapping object at 0xa4ace60>,
        'modules':<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x7f9ac3de5d88>,
        'nothing': None,
        'options': {'args': ()},
        'repeat':<Products.PageTemplates.TALES.SafeMapping object at 0xa4ace60>,
        'request':<HTTPRequest, URL=http://eckhardjost.de:8080/autorenhessen/lesungen/index_html>,
        'root':<Application at>,
        'template':<ZopePageTemplate at /autorenhessen/lesungen/index_html>,
        'traverse_subpath': [],
        'user':<SpecialUser 'Anonymous User'>}

    * Module Products.PageTemplates.Expressions, line 185, in __call__
    * Module Products.PageTemplates.Expressions, line 180, in _eval
    * Module Products.PageTemplates.Expressions, line 83, in render
    * Module Products.PageTemplates.ZRPythonExpr, line 74, in call_with_ns
    * Module OFS.DTMLMethod, line 138, in __call__
      *<DTMLMethod at /autorenhessen/lesungen/dtml_calendar>*
      *URL:
      http://eckhardjost.de:8080/autorenhessen/lesungen/dtml_calendar/manage_main*
      *Physical Path:*/autorenhessen/lesungen/dtml_calendar
    * Module DocumentTemplate.DT_String, line 476, in __call__
    * Module DocumentTemplate.DT_Let, line 76, in render
    * Module Products.Calendar.CalendarTag, line 887, in render
    * Module Products.Calendar.CalendarTag, line 1028, in render_dwm
    * Module Products.Calendar.CalendarTag, line 1071, in render_day_
    * Module DocumentTemplate.DT_Util, line 190, in eval
      __traceback_info__: setCalendar
    * Module AccessControl.ImplPython, line 189, in guarded_getattr
    * Module AccessControl.ImplPython, line 729, in guarded_getattr
    * Module AccessControl.ImplPython, line 671, in aq_validate
    * Module AccessControl.ImplPython, line 565, in validate
    * Module AccessControl.ImplPython, line 335, in validate
    * Module AccessControl.ImplPython, line 810, in raiseVerbose

Unauthorized: The container has no security assertions. Access to 
'setCalendar' of (DictInstance object at 0x35fb7e0) denied.

> Message: 1
> Date: Mon, 14 Mar 2011 14:54:13 +0100
> From: Gottfried Sascha<[email protected]>
> To: "[email protected]"<[email protected]>
> Subject: [dzug-zope] Re: Permission Problem nach Update auf 2.9.8
> Message-ID:
> 	<[email protected]>
> Content-Type: text/plain; charset="utf-8"
>
> Schalte mal ?Verbose Security? an und sende den kompletten Traceback der Fehlermeldung, der zeigt, wer was mit welchen Rechten versucht und welche Rechte man haben müsste, um die entsprechende Aktion erfolgreich ausführen zu können. Wenn du nur an das Error-Log herankommst, musst du dafür sorgen, dass ?Unauthorized? Exceptions nicht weggefiltert werden. Siehe properties des Objekts ?error_log?.
>
> http://wiki.zope.org/zope2/revisions/VerboseSecurity
> http://plone.org/documentation/kb/debug-unauthorized
>
>
>
>
> P Bitte prüfen Sie vorher, ob ein Ausdruck dieser E-Mail wirklich nötig ist.
>
> IAS Institut für Arbeits- und Sozialhygiene Stiftung
> Steinhäuserstraße 19, D-76135 Karlsruhe
>
> Sprecher des Vorstands: Arndt Kempen, Vorstand: Dr. Peter Wrogemann
> Vorsitzender des Kuratoriums: Prof. Dr. Dr. Norbert Gross
>
> Sitz der Stiftung: Karlsruhe, USt-IdNr.: DE 143609069
> Eingetragen ins Stiftungsverzeichnis des Regierungspräsidiums Karlsruhe
>
> Diese E-Mail könnte vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
> Von: [email protected] [mailto:[email protected]] Im Auftrag von Tjard Kopka
> Gesendet: Samstag, 12. März 2011 12:11
> An: [email protected]
> Betreff: [dzug-zope] Permission Problem nach Update auf 2.9.8
>
> Hallo zusammen,
> wird sind vor kurzem mit einer selbst entwickelten Applikation (inkl. Abracadabra und PropertyFolder) auf einen neuen Server umgezogen. Von Version 2.7.x auf Zope<http://www.forum-hilfe.de/vbglossar.php?do=showentry&item=Zope>  2.9.8-final, python 2.4.4, linux2.
> Leider kommt es jetzt zu Authentifzierungsproblemen. Die Ordnerstruktur ist wie folgt:
> .
> ordner
> manage_html (View: Manager, Owner)
> - subordner (PropertyFolder)
> - subacl_users
> .
> Versucht nun ein Webuser, der sich im "subordner" befindet, das Page Template "manage_html" aufzurufen, erscheint der Browser-Anmeldedialog. So weit alles richtig, da die View-Permission für "manage_html" nur für die Rollen Manager und Owner gesetzt ist. Leider scheitert die Authorisierung mit folgender Meldung:
>
>   *   Module ZPublisher.Publish, line 106, in publish
>   *   Module ZPublisher.BaseRequest, line 468, in traverse
>   *   Module ZPublisher.HTTPResponse, line 687, in unauthorized
> Unauthorized:<strong>You are not authorized to access this resource.</strong>
>
> Wenn "subacl_user" in "ordner" liegt klappt alles.
> Wenn "manage_html" in "subordner" liegt klapt's auch.
> Es scheint so als würden die im "subordner" erworbenen Rechte für das 'heruntergereichte' Page Template nicht gelten.
>
> Hat jemand eine Idee was falsch läuft?
> Vielen Dank
> Gruß
> Tjard
>
>
>
> Empfehlen Sie WEB.DE DSL Ihren Freunden und Bekannten und wir
> belohnen Sie mit bis zu 100,- Euro! https://freundschaftswerbung.web.de
>
>
> -------------- nächster Teil --------------
> Ein Dateianhang mit HTML-Daten wurde abgetrennt...
> URL:<http://mail.dzug.org/mailman/archives/zope/attachments/20110314/cee22550/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 14 Mar 2011 15:46:58 +0100
> From: Ingo Schnieders<[email protected]>
> To: Deutschsprachige Zope-Benutzer-Liste<[email protected]>
> Subject: [dzug-zope] Datum Format in Kollektionen
> Message-ID:<[email protected]>
> Content-Type: text/plain; charset="iso-8859-15"; Format="flowed"
>
> Hallo zusammen,
>
> ich habe in einer Kollektion Datum 2 Spalten "Ablaufdatum" und
> "Freigabedatum".
> In den ZMI portal_properties/site_properties habe ich "%d.%b.%Y" im
> localTimeFormat
> eingestellt. Wenn ich nun auf die Spaltenüberschriften drücke wird aber
> NICHT nach Datum
> (Jahr - Monat - Tag) sondern nach Ziffern/String sortiert.
>
> Ich halte das nicht für sinnvoll. Hat dafür jemand eine Erklärung oder
> ist das schon immer so ?
>
> Ich nutze ein
> ---
>       *  Plone 3.3.5
>       * CMF 2.1.2
>       * Zope (unreleased version, python 2.4.6, linux2)
>       * Python 2.4.6 (#1, Jul 29 2010, 16:04:12) [GCC 4.3.2]
>       * PIL 1.1.6
> ---
>
> Danke im voraus
>
> Grüße    Ingo
> -------------- nächster Teil --------------
> Ein Dateianhang mit HTML-Daten wurde abgetrennt...
> URL:<http://mail.dzug.org/mailman/archives/zope/attachments/20110314/19c69a84/attachment-0001.html>
>
> ------------------------------
>
> _______________________________________________
> zope mailing list
> [email protected]
> https://mail.dzug.org/mailman/listinfo/zope
>
>
> Ende zope Nachrichtensammlung, Band 60, Eintrag 13
> **************************************************
>



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.