Uploaded image for project: 'Hue'
  1. Hue
  2. HUE-2273

[desktop] Blacklisting apps with existing document will break home page

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.7.0
    • Component/s: core.frontend
    • Labels:
      None

      Description

      Superusers will experience "Server Error (500)" when browsing Home page after blacklisting impala

      hue.ini
      [desktop]
      app_blacklist=impala

      remove impala.access from Permission

      User group discussion https://groups.google.com/a/cloudera.org/d/msg/hue-user/TsikXPCmAqc/ffsBxMjZcFEJ

      Error stack

      [15/Aug/2014 14:20:03 -0700] models       WARNING  'impala'
      [15/Aug/2014 14:20:03 -0700] models       INFO     1
      [15/Aug/2014 14:20:03 -0700] middleware   INFO     Processing exception: 'impala' is not a registered namespace: Traceback (most recent call last):
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/handlers/base.py", line 111, in get_response
          response = callback(request, *callback_args, **callback_kwargs)
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/desktop/core/src/desktop/views.py", line 62, in home
          'json_documents': json.dumps(massaged_documents_for_json(docs, request.user)),
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/desktop/core/src/desktop/api.py", line 142, in massaged_documents_for_json
          'url': document.content_object.get_absolute_url(),
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/functional.py", line 11, in _curried
          return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/models/base.py", line 883, in get_absolute_url
          return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self, *args, **kwargs)
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/apps/beeswax/src/beeswax/models.py", line 319, in get_absolute_url
          return reverse(QueryHistory.get_type_name(self.type) + ':execute_design', kwargs={'design_id': self.id})
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/urlresolvers.py", line 472, in reverse
          key)
      NoReverseMatch: 'impala' is not a registered namespace
      
      [15/Aug/2014 14:20:03 -0700] base         ERROR    Internal Server Error: /home
      Traceback (most recent call last):
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/handlers/base.py", line 111, in get_response
          response = callback(request, *callback_args, **callback_kwargs)
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/desktop/core/src/desktop/views.py", line 62, in home
          'json_documents': json.dumps(massaged_documents_for_json(docs, request.user)),
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/desktop/core/src/desktop/api.py", line 142, in massaged_documents_for_json
          'url': document.content_object.get_absolute_url(),
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/utils/functional.py", line 11, in _curried
          return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/db/models/base.py", line 883, in get_absolute_url
          return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' % (opts.app_label, opts.module_name), func)(self, *args, **kwargs)
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/apps/beeswax/src/beeswax/models.py", line 319, in get_absolute_url
          return reverse(QueryHistory.get_type_name(self.type) + ':execute_design', kwargs={'design_id': self.id})
        File "/opt/cloudera/parcels/CDH-5.1.0-1.cdh5.1.0.p0.53/lib/hue/build/env/lib/python2.6/site-packages/Django-1.4.5-py2.6.egg/django/core/urlresolvers.py", line 472, in reverse
          key)
      NoReverseMatch: 'impala' is not a registered namespace
      [15/Aug/2014 14:20:03 -0700] access       INFO     192.168.88.250 mko - "GET /jobbrowser/ HTTP/1.1"
      

        Attachments

          Activity

            People

            • Assignee:
              romain Romain Rigaux
              Reporter:
              michalis Michalis Kongtongk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: