When I access a service called getRelatedParties from another service definition , I got a message as below:
ServiceDispatcher.java:532:ERROR] Error in Service [getRelatedParties]: You must be logged in to complete the [Get Parties Related to a Party] process. But I can't see any permission check in the getRelatedParties definition. Anybody could help me? |
Hi ,
Please try to call getRelatedParties service by setting, include-user-login="true" . Some thing like below, <call-service service-name="getRelatedParties" include-user-login="true" in-map-name="lookupMap" /> Thanks -- Divesh Dutta. zhiyongcui wrote: > When I access a service called getRelatedParties from another service > definition , I got a message as below: > ServiceDispatcher.java:532:ERROR] Error in Service [getRelatedParties]: You > must be logged in to complete the [Get Parties Related to a Party] process. > But I can't see any permission check in the getRelatedParties definition. > Anybody could help me? > |
In reply to this post by zhiyongcui
You need to pass the userLogin or security credentials from the calling service to the service it is calling. -David On Dec 30, 2009, at 11:21 PM, zhiyongcui wrote: > > When I access a service called getRelatedParties from another service > definition , I got a message as below: > ServiceDispatcher.java:532:ERROR] Error in Service [getRelatedParties]: You > must be logged in to complete the [Get Parties Related to a Party] process. > But I can't see any permission check in the getRelatedParties definition. > Anybody could help me? > -- > View this message in context: http://n4.nabble.com/Access-service-error-tp991277p991277.html > Sent from the OFBiz - User mailing list archive at Nabble.com. |
But there isn't any permission check in the service definition.
|
Requiring a permission (authorization) is different from requiring authentication. -David On Dec 31, 2009, at 12:57 AM, zhiyongcui wrote: > > But there isn't any permission check in the service definition. > > David E Jones-4 wrote: >> >> >> You need to pass the userLogin or security credentials from the calling >> service to the service it is calling. >> >> -David >> >> >> On Dec 30, 2009, at 11:21 PM, zhiyongcui wrote: >> >>> >>> When I access a service called getRelatedParties from another service >>> definition , I got a message as below: >>> ServiceDispatcher.java:532:ERROR] Error in Service [getRelatedParties]: >>> You >>> must be logged in to complete the [Get Parties Related to a Party] >>> process. >>> But I can't see any permission check in the getRelatedParties definition. >>> Anybody could help me? >>> -- >>> View this message in context: >>> http://n4.nabble.com/Access-service-error-tp991277p991277.html >>> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >> >> > > -- > View this message in context: http://n4.nabble.com/Access-service-error-tp991277p991298.html > Sent from the OFBiz - User mailing list archive at Nabble.com. |
How can I knows that service requires authentication.
|
In reply to this post by zhiyongcui
the in parameters for getRelatedParties.userlogin(rev 9.04) is shown as
optional and provided internally. should this be changed. David E Jones sent the following on 12/30/2009 11:00 PM: > Requiring a permission (authorization) is different from requiring authentication. > > -David > > > On Dec 31, 2009, at 12:57 AM, zhiyongcui wrote: > >> But there isn't any permission check in the service definition. >> >> David E Jones-4 wrote: >>> >>> You need to pass the userLogin or security credentials from the calling >>> service to the service it is calling. >>> >>> -David >>> >>> >>> On Dec 30, 2009, at 11:21 PM, zhiyongcui wrote: >>> >>>> When I access a service called getRelatedParties from another service >>>> definition , I got a message as below: >>>> ServiceDispatcher.java:532:ERROR] Error in Service [getRelatedParties]: >>>> You >>>> must be logged in to complete the [Get Parties Related to a Party] >>>> process. >>>> But I can't see any permission check in the getRelatedParties definition. >>>> Anybody could help me? >>>> -- >>>> View this message in context: >>>> http://n4.nabble.com/Access-service-error-tp991277p991277.html >>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>> >>> >> -- >> View this message in context: http://n4.nabble.com/Access-service-error-tp991277p991298.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. > > |
In reply to this post by David E. Jones-2
https://localhost:8443/webtools/control/ServiceList?sel_service_name=getRelatedParties
you can use the url and see that userlogin is optional or not or look at the service definition file component://party/script/org/ofbiz/party/party/PartyServices.xml in this case. zhiyongcui sent the following on 12/30/2009 11:18 PM: > How can I knows that service requires authentication. > > David E Jones-4 wrote: >> >> Requiring a permission (authorization) is different from requiring >> authentication. >> >> -David >> >> >> On Dec 31, 2009, at 12:57 AM, zhiyongcui wrote: >> >>> But there isn't any permission check in the service definition. >>> >>> David E Jones-4 wrote: >>>> >>>> You need to pass the userLogin or security credentials from the calling >>>> service to the service it is calling. >>>> >>>> -David >>>> >>>> >>>> On Dec 30, 2009, at 11:21 PM, zhiyongcui wrote: >>>> >>>>> When I access a service called getRelatedParties from another service >>>>> definition , I got a message as below: >>>>> ServiceDispatcher.java:532:ERROR] Error in Service [getRelatedParties]: >>>>> You >>>>> must be logged in to complete the [Get Parties Related to a Party] >>>>> process. >>>>> But I can't see any permission check in the getRelatedParties >>>>> definition. >>>>> Anybody could help me? >>>>> -- >>>>> View this message in context: >>>>> http://n4.nabble.com/Access-service-error-tp991277p991277.html >>>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>> >>>> >>> -- >>> View this message in context: >>> http://n4.nabble.com/Access-service-error-tp991277p991298.html >>> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >> > |
In reply to this post by BJ Freeman
BJ: have you by any chance looked at any of the other service definitions and compared them to the webtools service reference (which I assume you're talking about here, you didn't say)? -David On Dec 31, 2009, at 2:29 AM, BJ Freeman wrote: > the in parameters for getRelatedParties.userlogin(rev 9.04) is shown as > optional and provided internally. should this be changed. > > David E Jones sent the following on 12/30/2009 11:00 PM: >> Requiring a permission (authorization) is different from requiring authentication. >> >> -David >> >> >> On Dec 31, 2009, at 12:57 AM, zhiyongcui wrote: >> >>> But there isn't any permission check in the service definition. >>> >>> David E Jones-4 wrote: >>>> >>>> You need to pass the userLogin or security credentials from the calling >>>> service to the service it is calling. >>>> >>>> -David >>>> >>>> >>>> On Dec 30, 2009, at 11:21 PM, zhiyongcui wrote: >>>> >>>>> When I access a service called getRelatedParties from another service >>>>> definition , I got a message as below: >>>>> ServiceDispatcher.java:532:ERROR] Error in Service [getRelatedParties]: >>>>> You >>>>> must be logged in to complete the [Get Parties Related to a Party] >>>>> process. >>>>> But I can't see any permission check in the getRelatedParties definition. >>>>> Anybody could help me? >>>>> -- >>>>> View this message in context: >>>>> http://n4.nabble.com/Access-service-error-tp991277p991277.html >>>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>> >>>> >>> -- >>> View this message in context: http://n4.nabble.com/Access-service-error-tp991277p991298.html >>> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >> > |
In reply to this post by BJ Freeman
That's not correct. You need to look at the authentication attribute on the service definition. ALL services have an optional userLogin attribute/parameter, ALL of them, but it is added by the service engine and not specified in the service definition. -David On Dec 31, 2009, at 2:43 AM, BJ Freeman wrote: > https://localhost:8443/webtools/control/ServiceList?sel_service_name=getRelatedParties > you can use the url and see that userlogin is optional or not > or look at the service definition file > component://party/script/org/ofbiz/party/party/PartyServices.xml > in this case. > > zhiyongcui sent the following on 12/30/2009 11:18 PM: >> How can I knows that service requires authentication. >> >> David E Jones-4 wrote: >>> >>> Requiring a permission (authorization) is different from requiring >>> authentication. >>> >>> -David >>> >>> >>> On Dec 31, 2009, at 12:57 AM, zhiyongcui wrote: >>> >>>> But there isn't any permission check in the service definition. >>>> >>>> David E Jones-4 wrote: >>>>> >>>>> You need to pass the userLogin or security credentials from the calling >>>>> service to the service it is calling. >>>>> >>>>> -David >>>>> >>>>> >>>>> On Dec 30, 2009, at 11:21 PM, zhiyongcui wrote: >>>>> >>>>>> When I access a service called getRelatedParties from another service >>>>>> definition , I got a message as below: >>>>>> ServiceDispatcher.java:532:ERROR] Error in Service [getRelatedParties]: >>>>>> You >>>>>> must be logged in to complete the [Get Parties Related to a Party] >>>>>> process. >>>>>> But I can't see any permission check in the getRelatedParties >>>>>> definition. >>>>>> Anybody could help me? >>>>>> -- >>>>>> View this message in context: >>>>>> http://n4.nabble.com/Access-service-error-tp991277p991277.html >>>>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>>> >>>>> >>>> -- >>>> View this message in context: >>>> http://n4.nabble.com/Access-service-error-tp991277p991298.html >>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>> >>> >> > |
In reply to this post by BJ Freeman
sorry was not clear I was talking about userlogin. since that you
commented on that. David E Jones sent the following on 12/31/2009 12:46 AM: > That's not correct. You need to look at the authentication attribute on the service definition. ALL services have an optional userLogin attribute/parameter, ALL of them, but it is added by the service engine and not specified in the service definition. > > -David > > > On Dec 31, 2009, at 2:43 AM, BJ Freeman wrote: > >> https://localhost:8443/webtools/control/ServiceList?sel_service_name=getRelatedParties >> you can use the url and see that userlogin is optional or not >> or look at the service definition file >> component://party/script/org/ofbiz/party/party/PartyServices.xml >> in this case. >> >> zhiyongcui sent the following on 12/30/2009 11:18 PM: >>> How can I knows that service requires authentication. >>> >>> David E Jones-4 wrote: >>>> Requiring a permission (authorization) is different from requiring >>>> authentication. >>>> >>>> -David >>>> >>>> >>>> On Dec 31, 2009, at 12:57 AM, zhiyongcui wrote: >>>> >>>>> But there isn't any permission check in the service definition. >>>>> >>>>> David E Jones-4 wrote: >>>>>> You need to pass the userLogin or security credentials from the calling >>>>>> service to the service it is calling. >>>>>> >>>>>> -David >>>>>> >>>>>> >>>>>> On Dec 30, 2009, at 11:21 PM, zhiyongcui wrote: >>>>>> >>>>>>> When I access a service called getRelatedParties from another service >>>>>>> definition , I got a message as below: >>>>>>> ServiceDispatcher.java:532:ERROR] Error in Service [getRelatedParties]: >>>>>>> You >>>>>>> must be logged in to complete the [Get Parties Related to a Party] >>>>>>> process. >>>>>>> But I can't see any permission check in the getRelatedParties >>>>>>> definition. >>>>>>> Anybody could help me? >>>>>>> -- >>>>>>> View this message in context: >>>>>>> http://n4.nabble.com/Access-service-error-tp991277p991277.html >>>>>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>>>> >>>>> -- >>>>> View this message in context: >>>>> http://n4.nabble.com/Access-service-error-tp991277p991298.html >>>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>> > > |
In reply to this post by David E. Jones-2
There is not authentication attribute on the service definition of getRelatedParties.
|
The attribute name is auth
Regards Scott HotWax Media http://www.hotwaxmedia.com On 1/01/2010, at 1:12 PM, zhiyongcui wrote: > > There is not authentication attribute on the service definition of > getRelatedParties. > > David E Jones-4 wrote: >> >> >> That's not correct. You need to look at the authentication >> attribute on >> the service definition. ALL services have an optional userLogin >> attribute/parameter, ALL of them, but it is added by the service >> engine >> and not specified in the service definition. >> >> -David >> >> >> On Dec 31, 2009, at 2:43 AM, BJ Freeman wrote: >> >>> https://localhost:8443/webtools/control/ServiceList?sel_service_name=getRelatedParties >>> you can use the url and see that userlogin is optional or not >>> or look at the service definition file >>> component://party/script/org/ofbiz/party/party/PartyServices.xml >>> in this case. >>> >>> zhiyongcui sent the following on 12/30/2009 11:18 PM: >>>> How can I knows that service requires authentication. >>>> >>>> David E Jones-4 wrote: >>>>> >>>>> Requiring a permission (authorization) is different from requiring >>>>> authentication. >>>>> >>>>> -David >>>>> >>>>> >>>>> On Dec 31, 2009, at 12:57 AM, zhiyongcui wrote: >>>>> >>>>>> But there isn't any permission check in the service definition. >>>>>> >>>>>> David E Jones-4 wrote: >>>>>>> >>>>>>> You need to pass the userLogin or security credentials from the >>>>>>> calling >>>>>>> service to the service it is calling. >>>>>>> >>>>>>> -David >>>>>>> >>>>>>> >>>>>>> On Dec 30, 2009, at 11:21 PM, zhiyongcui wrote: >>>>>>> >>>>>>>> When I access a service called getRelatedParties from another >>>>>>>> service >>>>>>>> definition , I got a message as below: >>>>>>>> ServiceDispatcher.java:532:ERROR] Error in Service >>>>>>>> [getRelatedParties]: >>>>>>>> You >>>>>>>> must be logged in to complete the [Get Parties Related to a >>>>>>>> Party] >>>>>>>> process. >>>>>>>> But I can't see any permission check in the getRelatedParties >>>>>>>> definition. >>>>>>>> Anybody could help me? >>>>>>>> -- >>>>>>>> View this message in context: >>>>>>>> http://n4.nabble.com/Access-service-error-tp991277p991277.html >>>>>>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>>>>> >>>>>>> >>>>>> -- >>>>>> View this message in context: >>>>>> http://n4.nabble.com/Access-service-error-tp991277p991298.html >>>>>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>>>> >>>>> >>>> >>> >> >> >> > > -- > View this message in context: http://n4.nabble.com/Access-service-error-tp991277p991668.html > Sent from the OFBiz - User mailing list archive at Nabble.com. smime.p7s (4K) Download Attachment |
In reply to this post by David E. Jones-2
By default it should be false for attribute auth of the service,then it's false for attribute auth of getRelatedParties.It's means that this service didn't need any authentication.Then why the error is occured?
|
In reply to this post by Scott Gray-2
auth should represents authorization?
|
Free forum by Nabble | Edit this page |