ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhiyongcui <zhiyong...@gmail.com>
Subject Re: Access service error
Date Sat, 02 Jan 2010 00:04:46 GMT

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?

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-tp991277p992022.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Mime
View raw message