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

Rishi Solanki edited comment on OFBIZ-5877 at 11/24/14 11:43 AM:
-----------------------------------------------------------------

Dig into the problem and replicate the issue on both 13.07 and trunk. The issue 
won't be duplicated for user id DemoCustomer at both the instance. Able to 
duplicate the issue for admin user at front store, issue is coming due to admin 
won't have the CUSTOMER role assigned. Error is coming for PartyContactMech 
insertion that admin won't have the customer role. We have two choices here;
1) Add customer role data for admin. This will fix the problem.
2) Give proper message to user on login and do not show the options to do that 
on front store.

If community agree on any option I can provide patch accordingly. Thanks to 
[~deepakdixit] for discussion on the solutions we may go for. Error coming on 
submit the form as below;
{code}
(INSERT on table 'PARTY_CONTACT_MECH' caused a violation of foreign key 
constraint 'PARTY_CMECH_PROLE' for key (admin,CUSTOMER). The statement has been 
rolled back.)))
{code}


was (Author: rishisolankii):
Dig into the problem and replicate the issue on both 13.07 and trunk. The issue 
won't be duplicated for user id DemoCustomer at both the instance. Able to 
duplicate the issue for admin user at front store, issue is coming due to admin 
won't have the CUSTOMER role assigned. Error is coming for PartyContactMech 
insertion that admin won't have the customer role. We have two choices here;
1) Add customer role data for admin. This will fix the problem.
2) Give proper message to user on login and do not show the options to do that 
on front store.

If agree on any option I could provide patch accordingly. Thanks to 
[~deepakdixit] for discussion on the solutions we may go for. Error coming on 
submit the form as below;
{code}
(INSERT on table 'PARTY_CONTACT_MECH' caused a violation of foreign key 
constraint 'PARTY_CMECH_PROLE' for key (admin,CUSTOMER). The statement has been 
rolled back.)))
{code}

> Add new address not workign on manage address screen
> ----------------------------------------------------
>
>                 Key: OFBIZ-5877
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5877
>             Project: OFBiz
>          Issue Type: Bug
>          Components: specialpurpose/ecommerce
>    Affects Versions: Release Branch 13.07, Trunk
>            Reporter: Deepak Dixit
>            Priority: Minor
>
> User is not able to add new address from manage address screen.
> Here is the steps to regenerate issue:
> - Goto http://demo-trunk-ofbiz.apache.org/ecommerce/control/manageAddress
> - After login click on "Add new address"
> - Fill all the details and click on save 
> - You will get error.



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

Reply via email to