XMLWordPrintable

    • Severity 3 - Minor

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      We've getting emails at random times on slow sitemap generation:

      Undead request intercepted at: 17-10-2012 14:33:31 UTC
      
      GET http://answers.atlassian.com/sitemap-questions.xml
      Thread ID:  47165863395808
      Process ID: 17987
      Parent PID: 17973
      Started:    17-10-2012 14:33:21 UTC
      
        File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/query.py", line 271, in iterator
          for row in compiler.results_iter():
        File "/opt/python/domains/atlassian.com/answers/ADM-28319/forum/models/base.py", line 142, in __init__
          self.reset_original_state(kwargs.keys())
        File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/base.py", line 364, in __init__
          signals.post_init.send(sender=self.__class__, instance=self)
        File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/fields/subclassing.py", line 99, in __set__
          obj.__dict__[self.field.name] = self.field.to_python(value)
        File "/opt/python/domains/atlassian.com/answers/ADM-28319/forum/models/utils.py", line 82, in to_python
          return value
        File "/opt/python/domains/atlassian.com/answers/ADM-28319/forum/models/utils.py", line 34, in dbsafe_decode
          value = loads(decompress(b64decode(value)))
      
      Full backtrace with local variables:
      
        File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/query.py", line 300, in iterator
          yield obj
      
            Arguments: iterator(self=<forum.models.node.NodeQuerySet object at 0xd3c1690 (really long repr)>)
            Local variables:
      
            {'aggregate_select': [],
             'aggregate_start': 19,
             'compiler': <django.db.models.sql.compiler.SQLCompiler object at 0x9cc7210>,
             'obj': <Question: How to implement/use basic authentication for REST Plugins>,
             'only_load': {},
             'pk_idx': 0,
             'requested': None,
             'row': (57317,
                     u'How to implement/use basic authentication for REST Plugins',
                     u'fisheye-development',
                     611,
                     u'<p>I am developing a REST plugin for Fisheye which should utilize the login capabilities the Admin API gives (i.e. embed the username and password in the HTTP request header) like:</p>\n<pre class="brush: java; class-name: wrap; fontsize: 100; first-line: 1; ">httpclient.getCredentialsProvider().setCredentials(\r\n\t\t\t\tnew AuthScope(host, AuthScope.ANY_PORT), \r\n\t\t\t\tnew UsernamePasswordCredentials("", "feAdminpw"));</pre>\n<p>\xa0</p>\n<p>\xa0</p>\n<p>Implementing this in my REST Client allows me to call the Admin API free of errors. Calling my plugin gives me a HTTP 401 Forbidden.</p>\n<p>What do I have to implement in my plugin to utilize the given login data?</p>',
                     u'question',
                     None,
                     None,
                     datetime.datetime(2012, 5, 24, 7, 1, 58, 982216),
                     0,
                     u'',
                     195375,
                     611,
                     datetime.datetime(2012, 5, 24, 7, 8, 29, 149870),
                     68371,
                     None,
                     None,
                     53,
                     False),
             'self': [<Question: Migrating attachments from previous version>, <Question: how to calculate how many PRs are reopened in a time period in JIRA 4.2.1>, <Question: [closed] In my machine "JIRA Gantt-Chart Plugin Version 2.0.1" installation completed and plug-in enabled in JIRA but when I access plug-in from JIRA administrator window, it is not working and throwing exception>, <Question: Preferred way to upgrade from Jira 3.12.1 to 5.1>, <Question: Webwork action vs. servlet and other plugin admin ui questions>, <Question: JiraUserSessionTracker.getInstance() gets null>, <Question: Getting custom clover reports with automated builds/tests>, <Question: User unable to access administration, error: The password you entered is incorrect>, <Question: Is it possible to return all groups with same name inside multiple directories?>, <Question: Is there a way to get a list of pages that haven't been updated recently?>, <Question: Integrate Bamboo with JIRA behind firewall>, <Question: Shared filters set to private>, <Question: Modifying the Rest OAuth example to include a JSON body in the request?>, <Question: Does anyone have an example of JIRA used as a company suggestion box?>, <Question: EXCEPTION in my JIRA plug-in : java.lang.NoClassDefFoundError: org/picocontainer/PicoContainer>, <Question: Photo pixelated when uploading>, <Question: Bulk move - Retain values not working>, <Question: Out of contract security patches>, <Question: Email Editors for outgoing emails>, <Question: [closed] can I ask a jboss related questions here? very urgent, I'm waiting online to get the answers.>, '...(remaining elements truncated)...'],
             'skip': None}
      
        File "/opt/python/domains/atlassian.com/answers/ADM-28319/forum/models/base.py", line 142, in __init__
          self.reset_original_state(kwargs.keys())
      
            Arguments: __init__(self=<Question: how to catch Plugin Enabled event in JIRA?>, *args=<tuple object at 0x87c6050 (really long repr)>, **kwargs={})
            Local variables:
      
            {'args': (18054,
                      u'how to catch Plugin Enabled event in JIRA?',
                      u'jira-development jira-plugins',
                      1875,
                      u"<p>I need to perform few auto configuration steps after plugin is enabled. Which method in Jira will help me to allow me to do these configuration methods after Plugin is fully loaded by JIRA and available to use.</p>\r\n<p>Right now I've tried to use onStart() method made available by LifecycleAware interface. But it seems to be getting called before plugin is enabled as I get nullpointer exception when tried to access modules declared in this Plugin.</p>\r\n<p>AfterPropertiesSet() available from interface InitializingBean also doesnt provide much help.</p>\r\n<p> </p>\r\n<p>Any other suggestions on how one can perform the operations within Plugin after it is successfully loaded?</p>\r\n<p> </p>\r\n<p>thanks,</p>\r\n<p>Raju</p>",
                      u'question',
                      None,
                      None,
                      datetime.datetime(2011, 10, 27, 20, 38, 45, 320263),
                      1,
                      u'',
                      None,
                      545,
                      datetime.datetime(2011, 11, 16, 2, 28, 1, 624570),
                      22113,
                      u'eJxtjz1PwzAQhnf/Cm8Ny8V2vkq7MIEQqpCoFLFFVmJaN3Fs/IGAX8+ZAQaQbnre5073FpPj5LiRsw5GxQ1xghSTqxCN1hi1xiF+OIW8Jv1rUiFquxLXkPAryBTP1g/JL6i1pM9ZCsoP2iHo8BTvBPAWKqgbJNsfQZ5wH8k1Ogf7qZdFlg0wWhzkqNdow3lP79eoFoqAPh7pM+UMuj31b7sWGIgreqfG2ZaCcYbD6a326sW+l98pXubs76cZ585P8pLog5ykyUT8U0kZqXMpXpHeow1ztm9OGQO6mNQkBPgCdehkAQ==',
                      None,
                      123,
                      False),
             'kwargs': {},
             'self': <Question: how to catch Plugin Enabled event in JIRA?>}
      
        File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/base.py", line 364, in __init__
          signals.post_init.send(sender=self.__class__, instance=self)
      
            Arguments: __init__(self=<Question: how to catch Plugin Enabled event in JIRA?>, *args=<tuple object at 0x87c6bb0 (really long repr)>, **kwargs={})
            Local variables:
      
            {'args': (18054,
                      u'how to catch Plugin Enabled event in JIRA?',
                      u'jira-development jira-plugins',
                      1875,
                      u"<p>I need to perform few auto configuration steps after plugin is enabled. Which method in Jira will help me to allow me to do these configuration methods after Plugin is fully loaded by JIRA and available to use.</p>\r\n<p>Right now I've tried to use onStart() method made available by LifecycleAware interface. But it seems to be getting called before plugin is enabled as I get nullpointer exception when tried to access modules declared in this Plugin.</p>\r\n<p>AfterPropertiesSet() available from interface InitializingBean also doesnt provide much help.</p>\r\n<p> </p>\r\n<p>Any other suggestions on how one can perform the operations within Plugin after it is successfully loaded?</p>\r\n<p> </p>\r\n<p>thanks,</p>\r\n<p>Raju</p>",
                      u'question',
                      None,
                      None,
                      datetime.datetime(2011, 10, 27, 20, 38, 45, 320263),
                      1,
                      u'',
                      None,
                      545,
                      datetime.datetime(2011, 11, 16, 2, 28, 1, 624570),
                      22113,
                      u'eJxtjz1PwzAQhnf/Cm8Ny8V2vkq7MIEQqpCoFLFFVmJaN3Fs/IGAX8+ZAQaQbnre5073FpPj5LiRsw5GxQ1xghSTqxCN1hi1xiF+OIW8Jv1rUiFquxLXkPAryBTP1g/JL6i1pM9ZCsoP2iHo8BTvBPAWKqgbJNsfQZ5wH8k1Ogf7qZdFlg0wWhzkqNdow3lP79eoFoqAPh7pM+UMuj31b7sWGIgreqfG2ZaCcYbD6a326sW+l98pXubs76cZ585P8pLog5ykyUT8U0kZqXMpXpHeow1ztm9OGQO6mNQkBPgCdehkAQ==',
                      None,
                      123,
                      False),
             'args_len': 19,
             'field': <django.db.models.fields.BooleanField object at 0x42fa410>,
             'fields_iter': <listiterator object at 0x14aa07d0>,
             'kwargs': {},
             'self': <Question: how to catch Plugin Enabled event in JIRA?>,
             'val': False}
      
        File "/opt/python/domains/atlassian.com/answers/lib/python2.6/site-packages/django/db/models/fields/subclassing.py", line 99, in __set__
          obj.__dict__[self.field.name] = self.field.to_python(value)
      
            Arguments: __set__(self=<django.db.models.fields.subclassing.Creator object at 0x42fa610>, obj=<Question: how to catch Plugin Enabled event in JIRA?>, value=<unicode object at 0x14aa3030 (really long repr)>)
            Local variables:
      
            {'obj': <Question: how to catch Plugin Enabled event in JIRA?>,
             'self': <django.db.models.fields.subclassing.Creator object at 0x42fa610>,
             'value': u'eJxtjz1PwzAQhnf/Cm8Ny8V2vkq7MIEQqpCoFLFFVmJaN3Fs/IGAX8+ZAQaQbnre5073FpPj5LiRsw5GxQ1xghSTqxCN1hi1xiF+OIW8Jv1rUiFquxLXkPAryBTP1g/JL6i1pM9ZCsoP2iHo8BTvBPAWKqgbJNsfQZ5wH8k1Ogf7qZdFlg0wWhzkqNdow3lP79eoFoqAPh7pM+UMuj31b7sWGIgreqfG2ZaCcYbD6a326sW+l98pXubs76cZ585P8pLog5ykyUT8U0kZqXMpXpHeow1ztm9OGQO6mNQkBPgCdehkAQ=='}
      
        File "/opt/python/domains/atlassian.com/answers/ADM-28319/forum/models/utils.py", line 82, in to_python
          return value
      
            Arguments: to_python(self=<forum.models.utils.PickledObjectField object at 0x42fa310>, value={'akismet': {...}})
            Local variables:
      
            {'self': <forum.models.utils.PickledObjectField object at 0x42fa310>,
             'value': {'akismet': {'comment_author': 'Raju Kadam',
                                   'comment_author_email': u'raju.kadam@gmail.com',
                                   'comment_author_url': u'',
                                   'comment_type': u'question',
                                   'user_agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20100101 Firefox/6.0.2',
                                   'user_ip': '172.16.3.45'}}}
      
        File "/opt/python/domains/atlassian.com/answers/ADM-28319/forum/models/utils.py", line 35, in dbsafe_decode
          return value
      
            Arguments: dbsafe_decode(value={'akismet': {...}}, compress_object=True)
            Local variables:
      
            {'compress_object': True,
             'value': {'akismet': {'comment_author': 'Raju Kadam',
                                   'comment_author_email': u'raju.kadam@gmail.com',
                                   'comment_author_url': u'',
                                   'comment_type': u'question',
                                   'user_agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20100101 Firefox/6.0.2',
                                   'user_ip': '172.16.3.45'}}}
      

      Seeing how often bots will hit the sitemap, this should be something that we fix asap. Maybe caching is the problem.

              Assignee:
              eternicode
              Reporter:
              Dennis Kromhout van der Meer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: