Modify

Opened 4 years ago

Last modified 4 years ago

#8582 new defect

May not work on an access-restricted site

Reported by: von_mises@… Owned by: takanorig
Priority: normal Component: WorkflowEditorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

With workfloweiditorplugin 1.0.2 comes with !TracLightning2.5.2, use

<LocationMatch "/trac/portal">
  AuthType SSPI
  :
  Require valid-user
</LocationMatch>

in httpd.conf to ristrict access, the following messages are shown in the workflow section in the Admin page.

Tracebck (most recent call last):
  File "e:\traclight\python\lib\site-packages\Trac-0.11.7.ja1-py2.5.egg\trac\web\api.py", line 376, in send_error
    'text/html')
  File "e:\traclight\python\lib\site-packages\Trac-0.11.7.ja1-py2.5.egg\trac\web\chrome.py", line 739, in render_template
    data = self.populate_data(req, data)
  File "e:\traclight\python\lib\site-packages\Trac-0.11.7.ja1-py2.5.egg\trac\web\chrome.py", line 639, in populate_data
    d['chrome'].update(req.chrome)
  File "e:\traclight\python\lib\site-packages\Trac-0.11.7.ja1-py2.5.egg\trac\web\api.py", line 195, in __getattr__
    value = self.callbacks[name](self)
  File "e:\traclight\python\lib\site-packages\Trac-0.11.7.ja1-py2.5.egg\trac\web\chrome.py", line 494, in prpare_request
    for category, name, text in contributor.get_navigation_items(req):
  File "e:\traclight\python\lib\site-packages\Trac-0.11.7.ja1-py2.5.egg\trac\admin\web_ui.py", line 65, in get_navigation_items
    panels, providres = self._get_panels(req)
  File "e:\traclight\python\lib\site-packages\Trac-0.11.7.ja1-py2.5.egg\trac\admin\web_ui.py", line 161, in _get_panels
    p = list(provider.get_adminpanels(req))
  File "build\bdist.win32\egg\workfloweditor\workfloweditor_admin.py", line 32, in get_admin_panels
    locale = LocaleUtil().get_locale(req)
  File "build\bdist.win32\egg\workfloweditor\api.py", line 16, in get_locale
    if (len(locale_array) > 0):
TypeError: object of type 'NoneType' has no len()

How can I workaround this?

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by rjollos

  • Summary changed from workfloweditorplugin may not work on an access-ristricted site. to May not work on an access-restricted site

Add Comment

Modify Ticket

Action
as new The owner will remain takanorig.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.