You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Adam Heath (JIRA)" <ji...@apache.org> on 2014/06/25 18:48:25 UTC

[jira] [Commented] (OFBIZ-2509) partial select in simple methods does not decrypt encrypted fields

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

Adam Heath commented on OFBIZ-2509:
-----------------------------------

Is this still a problem?  trunk was recently reengineered to do the encryption/decryption at the PreparedStatement/ResultSet layer, so all data should now be in the correct form once it is part of a GenericEntity.

> partial select in simple methods does not decrypt encrypted fields
> ------------------------------------------------------------------
>
>                 Key: OFBIZ-2509
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2509
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>            Reporter: Chris Howe
>            Assignee: Adam Heath
>            Priority: Minor
>
> When using <select-field> in conjunction with entity-* in a simple method encrypted field values are not decrypted.
> Try:
> <entity-one value="singleEntity" entity-name="Person">
>   <field-map field="partyId" from-field="partyId"/>
>   <select-field field-name="socialSecurityNumber"/>
> </entity>
> <log level="info" message="encrypted value returned: ${singleEntity.socialSecurityNumber}"/>
> compared with:
> <entity-one value="singleEntity" entity-name="Person">
>   <field-map field="partyId" from-field="partyId"/>
> </entity>
> <log level="info" message="decrypted value returned: ${singleEntity.socialSecurityNumber}"/>



--
This message was sent by Atlassian JIRA
(v6.2#6252)