You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Vyom Jain (JIRA)" <ji...@apache.org> on 2015/10/22 08:38:27 UTC
[jira] [Created] (OFBIZ-6694) Service reencryptFields doesn't work
as expected
Vyom Jain created OFBIZ-6694:
--------------------------------
Summary: Service reencryptFields doesn't work as expected
Key: OFBIZ-6694
URL: https://issues.apache.org/jira/browse/OFBIZ-6694
Project: OFBiz
Issue Type: Bug
Components: framework
Affects Versions: Trunk
Reporter: Vyom Jain
This service reencryptFields was introduced in OFBIZ-6494. There's an exception when running the service reencryptFields from Webtools.
{code}org.ofbiz.entity.GenericEntityNotFoundException: Tried to update an entity that does not exist, entity: [GenericEntity:PaymentGatewayPayflowPro][lastUpdatedStamp,2015-10-22 12:02:55.812(java.sql.Timestamp)][lastUpdatedTxStamp,2015-10-22 12:02:55.805(java.sql.Timestamp)][proxyPassword,null()] (Tried to update an entity that does not exist, entity: [GenericEntity:PaymentGatewayPayflowPro][lastUpdatedStamp,2015-10-22 12:02:55.812(java.sql.Timestamp)][lastUpdatedTxStamp,2015-10-22 12:02:55.805(java.sql.Timestamp)]{code}
This happens because only encrypted field is being selected in the EntityQuery.
An improvement would be to change the code to use EntityListIterator, which will be particularly helpful for re-encrypting large data set.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)