Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-555

check for id != 0 in *Controller.resolveReference()

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.4, 1.2.0-M1
    • Fix Version/s: 1.1.9, 1.2.0, 2.0.0-M1
    • Component/s: core
    • Labels:
      None

      Description

      Optimisation, as discussed in dev ML [1]:

      Check for id != 0 when resolving a reference using an id in *Controller.resolveReference(), to avoid an unnecessary roundtrip to the database layer and the creation of a transaction that must be rolled back because a NotFoundException is thrown.

      [1] http://syncope-dev.1063484.n5.nabble.com/check-for-id-0-in-UserController-td5715962.html

        Attachments

          Activity

            People

            • Assignee:
              gwimmel Guido Wimmel
              Reporter:
              gwimmel Guido Wimmel

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment