You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/09/30 10:40:34 UTC

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

    [ https://issues.apache.org/jira/browse/SYNCOPE-555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152961#comment-14152961 ] 

ASF subversion and git services commented on SYNCOPE-555:
---------------------------------------------------------

Commit 1628373 from [~wimmelg] in branch 'syncope/branches/1_1_X'
[ https://svn.apache.org/r1628373 ]

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

> 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.1.4, 1.2.0-M1
>            Reporter: Guido Wimmel
>            Assignee: Guido Wimmel
>            Priority: Minor
>             Fix For: 1.1.9, 1.2.0, 1.3.0
>
>
> 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)