Smart commits are not processed

XMLWordPrintable

      This happens after we changed from select("ID,*") to select() in DCON-468.

      The AO.stream method would only select the "ID" column and fail to lazily load the other columns when given a query with select().

      To fix this, either use find or explicitly specify the columns in select("columns").

      There are multiple places that use AO.stream but all of them uses only the "ID" column, except for the SmarcommitOperation class.

      Smart commit processing will fail with the following message:

      2014-10-02 17:47:36,415 DVCSConnector.SmartCommitsProcessor:thread-2 WARN admin 1049x1700x1 1yahiq0 0:0:0:0:0:0:0:1 /rest/bitbucket/1.0/repository/21/softsync [plugins.dvcs.smartcommits.SmartcommitOperation] Failed to process smartcommit operation. Cause = class java.lang.NullPointerException : null
      

      This is because the getMessage() call returns null and parseCommitComment would throw npe when processing the message.

      This affects JIRA 6.3.7, which has DVCS Connector 2.1.23.

            Assignee:
            ZehuaA
            Reporter:
            ZehuaA
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: