If you create an event via the activitystrea.ms API with a title greater then 255 characters, it is incorrectly persisted and causes errors to be logged constantly

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • None
    • Affects Version/s: 5.0 - EAP, 6.3.1, 6.3.15
    • Component/s: Issue - View Issue
    • Environment:

      Jira 5.0 RC3, Windows Server 2003 standard edition, HSQLDB.

    • 5
    • 5
    • Severity 2 - Major
    • 1

      If you create an event via the activitystrea.ms API with a title greater then 255 characters, it is incorrectly persisted and causes errors to be logged constantly.

      On first creating the activity, this is logged:

      2012-02-03 15:41:04,374 http-8080-4 WARN administrator 941x168x1 - 192.168.0.24 /rest/activities/1.0/ [atlassian.streams.thirdparty.ActivityServiceActiveObjectsImpl] Ignoring invalid activity in database (id=495): title exceeds maximum length of 255 characters
      

      Then consequently every few minutes these events are logged:

      2012-02-03 15:41:08,249 StreamsCompletionService::thread-6 WARN administrator 941x248x1 1yjto7c 127.0.0.1 /plugins/servlet/streams [atlassian.streams.thirdparty.ActivityServiceActiveObjectsImpl] Ignoring invalid activity in database (id=495): title exceeds maximum length of 255 characters
      2012-02-03 15:41:08,281 StreamsCompletionService::thread-6 WARN administrator 941x248x1 1yjto7c 127.0.0.1 /plugins/servlet/streams [atlassian.streams.thirdparty.ActivityServiceActiveObjectsImpl] Ignoring invalid activity in database (id=496): title exceeds maximum length of 255 characters
      2012-02-03 15:41:08,515 StreamsCompletionService::thread-6 WARN administrator 941x248x1 1yjto7c 127.0.0.1 /plugins/servlet/streams [atlassian.streams.thirdparty.ActivityServiceActiveObjectsImpl] Ignoring invalid activity in database (id=487): title exceeds maximum length of 255 characters
      2012-02-03 15:41:08,562 StreamsCompletionService::thread-6 WARN administrator 941x248x1 1yjto7c 127.0.0.1 /plugins/servlet/streams [atlassian.streams.thirdparty.ActivityServiceActiveObjectsImpl] Ignoring invalid activity in database (id=486): title exceeds maximum length of 255 characters
      2012-02-03 15:41:08,577 StreamsCompletionService::thread-6 WARN administrator 941x248x1 1yjto7c 127.0.0.1 /plugins/servlet/streams [atlassian.streams.thirdparty.ActivityServiceActiveObjectsImpl] Ignoring invalid activity in database (id=485): title exceeds maximum length of 255 characters
      

      At which point when creating additional activities, even if the title is less then 255 characters, we start receiving the following response back from the activity steams API:

      {
        "errorMessage": "Newly posted activity could not be retrieved",
        "subCode": "stream.error.unexpected.error"
      }
      

      See attached log for more info.

            Assignee:
            Unassigned
            Reporter:
            Alex Henderson
            Votes:
            10 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: