You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "Guido Wimmel (JIRA)" <ji...@apache.org> on 2014/09/30 08:09:33 UTC

[jira] [Created] (SYNCOPE-555) check for id != 0 in *Controller.resolveReference()

Guido Wimmel created SYNCOPE-555:
------------------------------------

             Summary: check for id != 0 in *Controller.resolveReference()
                 Key: SYNCOPE-555
                 URL: https://issues.apache.org/jira/browse/SYNCOPE-555
             Project: Syncope
          Issue Type: Improvement
          Components: core
    Affects Versions: 1.2.0-M1, 1.1.4
            Reporter: Guido Wimmel
            Assignee: Guido Wimmel
            Priority: Minor


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)