Building a New Website Using "ecommerce"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
33 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

OfBizSuds
Thanks BJ. Today I am struggling with a different problem :) Up until yesterday my application (a clone of ecommerce) was working fine as in I could log in using a few ids that I had registered.
But since this morning the Login keeps giving me the following error :
"The Following Errors Occurred: unable to login this application".

But I am able to log in to ecommerce & ecomclone with these newly registered ids.

Only the admin id seems to work to log in to my app.

I had been changing data from backend for Party, PartyRole, PartyRelationship tables so I am thinking maybe somewhere I messed it up.

Is there any way of reinstallling the demo/ seed data only & start from scratch?
Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

Ruth Hoffman-2
Hi OfBizSuds:
Getting that error usually indicates that your users are not part of the
Security Group defined for the application. In the default scenario,
PartyRole and PartyRelationship have nothing to do with Security Group(s).
Ruth

OfBizSuds wrote:

> Thanks BJ. Today I am struggling with a different problem :) Up until
> yesterday my application (a clone of ecommerce) was working fine as in I
> could log in using a few ids that I had registered.
> But since this morning the Login keeps giving me the following error :
> "The Following Errors Occurred: unable to login this application".
>
> But I am able to log in to ecommerce & ecomclone with these newly registered
> ids.
>
> Only the admin id seems to work to log in to my app.
>
> I had been changing data from backend for Party, PartyRole,
> PartyRelationship tables so I am thinking maybe somewhere I messed it up.
>
> Is there any way of reinstallling the demo/ seed data only & start from
> scratch?
>  
Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

BJ Freeman
In reply to this post by OfBizSuds
login carry the roles and security specific to that login.
Party the login belongs to has other roles but no security.
Logins with Customer Roles (including Party roles) and security can only
login to the myportal on the back end.
there is something you did that effects this.
but not enough info to be certain what.



OfBizSuds sent the following on 8/11/2010 5:10 AM:

>
> Thanks BJ. Today I am struggling with a different problem :) Up until
> yesterday my application (a clone of ecommerce) was working fine as in I
> could log in using a few ids that I had registered.
> But since this morning the Login keeps giving me the following error :
> "The Following Errors Occurred: unable to login this application".
>
> But I am able to log in to ecommerce&  ecomclone with these newly registered
> ids.
>
> Only the admin id seems to work to log in to my app.
>
> I had been changing data from backend for Party, PartyRole,
> PartyRelationship tables so I am thinking maybe somewhere I messed it up.
>
> Is there any way of reinstallling the demo/ seed data only&  start from
> scratch?
Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

rajsaini
In reply to this post by OfBizSuds
Check your ofbiz-component.xml of your application and see if you have
configure security permission there?

Raj

On 11/08/10 17:40, OfBizSuds wrote:

> Thanks BJ. Today I am struggling with a different problem :) Up until
> yesterday my application (a clone of ecommerce) was working fine as in I
> could log in using a few ids that I had registered.
> But since this morning the Login keeps giving me the following error :
> "The Following Errors Occurred: unable to login this application".
>
> But I am able to log in to ecommerce&  ecomclone with these newly registered
> ids.
>
> Only the admin id seems to work to log in to my app.
>
> I had been changing data from backend for Party, PartyRole,
> PartyRelationship tables so I am thinking maybe somewhere I messed it up.
>
> Is there any way of reinstallling the demo/ seed data only&  start from
> scratch?
>    

Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

OfBizSuds
This is a part of my ofbiz-component file

<webapp name="shopngive"
        title="shopngive"
        server="default-server"
        location="webapp/shopngive"
        base-permission="OFBTOOLS,"
        mount-point="/shopngive"/>


Should I change the base-permission??
Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

BJ Freeman
if your component is an eccomerce then remove
base-permission="OFBTOOLS,"
if your component is meant to be backend then you need add the
permnission to
base-permission="OFBTOOLS,"
if you want them to have access to webtools
or remove OFBTOOLS and put in the permission you are assigning your logins.


note: you have a , that maybe causing you problems also.

OfBizSuds sent the following on 8/11/2010 10:09 AM:

>
> This is a part of my ofbiz-component file
>
> <webapp name="shopngive"
>          title="shopngive"
>          server="default-server"
>          location="webapp/shopngive"
>          base-permission="OFBTOOLS,"
>          mount-point="/shopngive"/>
>
>
> Should I change the base-permission??
Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

rajsaini
In reply to this post by OfBizSuds
Remove the base-permission="OFBTOOLS," attribute all together. This is
needed for protected applications and not e-commerce.

Raj

On 11/08/10 22:39, OfBizSuds wrote:

> This is a part of my ofbiz-component file
>
> <webapp name="shopngive"
>          title="shopngive"
>          server="default-server"
>          location="webapp/shopngive"
>          base-permission="OFBTOOLS,"
>          mount-point="/shopngive"/>
>
>
> Should I change the base-permission??
>    

Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

Jacques Le Roux
Administrator
BTW, by and large you might read
https://cwiki.apache.org/confluence/display/OFBTECH/OFBiz+security

Jacques

From: "Raj Saini" <[hidden email]>

> Remove the base-permission="OFBTOOLS," attribute all together. This is
> needed for protected applications and not e-commerce.
>
> Raj
>
> On 11/08/10 22:39, OfBizSuds wrote:
>
>> This is a part of my ofbiz-component file
>>
>> <webapp name="shopngive"
>>          title="shopngive"
>>          server="default-server"
>>          location="webapp/shopngive"
>>          base-permission="OFBTOOLS,"
>>          mount-point="/shopngive"/>
>>
>>
>> Should I change the base-permission??
>>    
>

Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

Ruth Hoffman-2
Yes, and learn all about Security Groups and how OFBiz web applications
are protected using the same.
Regards,
Ruth

Jacques Le Roux wrote:

> BTW, by and large you might read
> https://cwiki.apache.org/confluence/display/OFBTECH/OFBiz+security
>
> Jacques
>
> From: "Raj Saini" <[hidden email]>
>> Remove the base-permission="OFBTOOLS," attribute all together. This
>> is needed for protected applications and not e-commerce.
>>
>> Raj
>>
>> On 11/08/10 22:39, OfBizSuds wrote:
>>
>>> This is a part of my ofbiz-component file
>>>
>>> <webapp name="shopngive"
>>>          title="shopngive"
>>>          server="default-server"
>>>          location="webapp/shopngive"
>>>          base-permission="OFBTOOLS,"
>>>          mount-point="/shopngive"/>
>>>
>>>
>>> Should I change the base-permission??
>>>    
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

OfBizSuds
In reply to this post by rajsaini
Thanks, that worked.
Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

OfBizSuds
In reply to this post by BJ Freeman
Thanks BJ, removed OFBTools & it works!
Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

OfBizSuds
In reply to this post by BJ Freeman
Hi BJ,

Have 2 problems-

1) createPartyRelationship is a service in PartyServices.xml. This requires the caller to have PARTY_CREATE permission. But when we call from ecommerce we don't have that permission correct? So how do we call this service? For now I have written xml code to save PartyRelationship but it's probably better to call the service.

2) CustomerEvents.xml in ecommerce has calls to many map-processors like the one below
        <call-map-processor in-map-name="parameters" out-map-name="personContext">
            <simple-map-processor name="newPerson">
                    <process field="USER_FIRST_NAME">
                               <copy to-field="firstName"/>
                                    <not-empty><fail-property resource="PartyUiLabels"          property="PartyFirstNameMissing"/></not-empty>
                </process>

which it uses to validate the user entries while registration.
I want to add a validation that the user selects a restaurant from the dropdown while regtistering.
So my question is, where are simple-map-processors defined? If I need to add one where would I do that?

Your help is grealy appreciated.

Regards,

Sudha

Reply | Threaded
Open this post in threaded view
|

Re: Building a New Website Using "ecommerce"

OfBizSuds
Regarding my problem 2 - I found out the way using map xml as is done for PartySimpleEvents.xml
12