You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Priya Sharma (JIRA)" <ji...@apache.org> on 2019/03/12 10:04:00 UTC

[jira] [Comment Edited] (OFBIZ-2954) Service to get the party postal address

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

Priya Sharma edited comment on OFBIZ-2954 at 3/12/19 10:03 AM:
---------------------------------------------------------------

Hello All, 
 I am trying to use this service to fetch the party address for a third party API, and since the "auth" is set as false in the service definition, I am not sending the userLogin in the service context. And it should work in my opinion.

But unfortunately, the service returns the error as -
{code:java}
Error in Service [getPartyPostalAddress]: You must be logged in to complete the [Get the postal address of the party] process.
 [java] 2019-03-12 15:12:09,884 |http-nio-8443-exec-5 |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows where this is happening:
 [java] java.lang.Exception: Error in Service [getPartyPostalAddress]: You must be logged in to complete the [Get the postal address of the party] process.{code}
P.S. on explicitly adding the attribute login-required="false" in the simple service implementation, it works fine.

It would be great if someone can help me with this.


was (Author: priya.sharma.9362):
Hello All, 
I am trying to use this service to fetch the party address for a third party API, and since the "auth" is set as false in the service definition, I am not sending the userLogin in the service context. And it should work in my opinion.

But unfortunately, the service returns the error as -
{code:java}
Error in Service [getPartyPostalAddress]: You must be logged in to complete the [Get the postal address of the party] process.
 [java] 2019-03-12 15:12:09,884 |http-nio-8443-exec-5 |TransactionUtil |W| Calling transaction setRollbackOnly; this stack trace shows where this is happening:
 [java] java.lang.Exception: Error in Service [getPartyPostalAddress]: You must be logged in to complete the [Get the postal address of the party] process.{code}

> Service to get the party postal address
> ---------------------------------------
>
>                 Key: OFBIZ-2954
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2954
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: party
>            Reporter: Abdullah Shaikh
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: Trunk
>
>         Attachments: OFBIZ-2954_Service to get the party postal address.patch, OFBIZ-2954_Service to get the party postal address.patch
>
>
> There are services to get the party telephone (getPartyTelephone) & email (getPartyEmail), but no service to get the party postal address.
> We should have a getPartyPostalAddress service, therefore, I have attached a patch for the service.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)