You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2017/08/26 21:26:01 UTC

[jira] [Closed] (OFBIZ-9649) Unable to create Customer

     [ https://issues.apache.org/jira/browse/OFBIZ-9649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-9649.
----------------------------------
       Resolution: Fixed
    Fix Version/s: Upcoming Release

Thanks Ayushi and Aditya, well spoted.

Indeed, I missed to look in other files than Java, hence the misses.

Ayushi, in your patch you have duplicates. Maybe because you followed the way I suggest to use Eclipse in the "Eclipse tips" wiki page.  Your duplicates were not a problem, I used only the ones which starts with "plugins". I found another instance in UserEvents.xml, there are no others in any files. 

Ayushi your modified patch (I also refactored things a bit) is in trunk at revision: 1806332, no branches are concerned.

Great collaboration :)

OK, I got an issue I must report. Long story short: in Eclipse I was initially able to change the 2 plugins files in ofbiz/plugins (project) and able to commit them with UserEvents.xml selecting the 3 files in the Eclipse search view. But then it was refused by svn because my plugins svn instance was not up to date. I stupidily updated out of Eclipse (using TortoiseSvn, I'm too much used to it) and after that, though trying hard, I did not find a way to commit the 3 files in the same commit. Before giving up, in the Eclipse search view I was able to select UserEvents.xml and ScrumEvents.xml but not QuickAnonCustomerEvents.xml, Subclipse knows why :/. Once again TortoiseSvn saved my ass and I was able to commit the 3 files in the same commit usint it, lesson learned (the hard way).




> Unable to create Customer
> -------------------------
>
>                 Key: OFBIZ-9649
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9649
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: Trunk
>            Reporter: Ayushi Rathod
>            Assignee: Jacques Le Roux
>             Fix For: Upcoming Release
>
>         Attachments: OFBIZ-9649.patch, OFBIZ-9649_pluginAndOfbizPlugin.patch, OFBIZ-9649.png
>
>
> Steps to regenerate:
> 1. Go to Party Component (https://demo-trunk-ofbiz.apache.org:8443/partymgr/control/main)
> 2. Create on *Create Customer* sub-menu (https://demo-trunk-ofbiz.apache.org:8443/partymgr/control/NewCustomer)
> 3. Fill all the required fields and click on save button
> Expected result: Customer should be created successfully.
> Actual result: An error is thrown
> {code}
> The Following Errors Occurred:
> Error running the simple-method: Error running groovy script [<br/> boolean useEncryption = "true".equals(org.apache.ofbiz.entity.util.EntityUtilProperties.getPropertyValue("security", "password.encrypt", delegator))<br/> if (useEncryption) { newUserLogin.set("currentPassword", org.apache.ofbiz.base.crypto.HashCrypt.getDigestHash((String) newUserLogin.get("currentPassword"))) }<br/> ]: javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: static org.apache.ofbiz.base.crypto.HashCrypt.getDigestHash() is applicable for argument types: (java.lang.String) values: [ofbiz]<br/>Possible solutions: digestHash(java.lang.String, [B) Method = createUser, File = file:/home/ofbizDemo/trunk/applications/party/minilang/user/UserEvents.xml, Element = <script>, Line 316null
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)