[jira] Created: (OFBIZ-2838) ServiceUtil.getUserLogin tests on null but not empty

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

[jira] Created: (OFBIZ-2838) ServiceUtil.getUserLogin tests on null but not empty

Nicolas Malin (Jira)
ServiceUtil.getUserLogin tests on null but not empty
----------------------------------------------------

                 Key: OFBIZ-2838
                 URL: https://issues.apache.org/jira/browse/OFBIZ-2838
             Project: OFBiz
          Issue Type: Bug
          Components: framework
            Reporter: Al Byers


Line 587 in ServiceUtil.getUserLogin is:
        if (runAsUser != null) {
but i got an empty string passed in.
Should use UtilValidate.isNotEmpty?

I could change it, but I don't think I have ever touched core code and don't wish to start.
-Al

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2838) ServiceUtil.getUserLogin tests on null but not empty

Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-2838:
----------------------------------------

Hi Al,

IMO yes, what would mean an empty login ?

> ServiceUtil.getUserLogin tests on null but not empty
> ----------------------------------------------------
>
>                 Key: OFBIZ-2838
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2838
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>            Reporter: Al Byers
>
> Line 587 in ServiceUtil.getUserLogin is:
>         if (runAsUser != null) {
> but i got an empty string passed in.
> Should use UtilValidate.isNotEmpty?
> I could change it, but I don't think I have ever touched core code and don't wish to start.
> -Al

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-2838) ServiceUtil.getUserLogin tests on null but not empty

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-2838.
----------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk
                   Release Branch 9.04
         Assignee: Al Byers

Thanks for report Al,

Fixed in trunk at r810370 and R9.04 at r810375.

> ServiceUtil.getUserLogin tests on null but not empty
> ----------------------------------------------------
>
>                 Key: OFBIZ-2838
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2838
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>            Reporter: Al Byers
>            Assignee: Al Byers
>             Fix For: Release Branch 9.04, SVN trunk
>
>
> Line 587 in ServiceUtil.getUserLogin is:
>         if (runAsUser != null) {
> but i got an empty string passed in.
> Should use UtilValidate.isNotEmpty?
> I could change it, but I don't think I have ever touched core code and don't wish to start.
> -Al

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.