ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OFBIZ-2072) Search is broken in the party manager application when logged in as any user other than admin
Date Fri, 02 Jan 2009 11:19:44 GMT

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

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

Hi Raj,

It does not work for me with last revision (730688). BTW it's always better to submit a patch
because lines numbers may change..

When changing userLoginId to userPrefLoginId in
{code}
    <service name="setUserPreferenceGroup" engine="java"
            location="org.ofbiz.common.preferences.PreferenceServices" invoke="setUserPreferenceGroup"
auth="true">
        <description>Sets a group of user preferences.</description>
        <permission-service service-name="preferenceGetSetPermission" main-action="CREATE"/>
        <attribute name="userPrefMap" type="Map" mode="IN" optional="false"/>
        <attribute name="userPrefGroupTypeId" type="String" mode="IN" optional="false"/>
        <attribute name="userPrefLoginId" type="String" mode="IN" optional="true"/>
    </service>
{code}

I get 


2009-01-02 12:18:27,750 (http-0.0.0.0-18443-1) [FlexibleStringExpander.java:303:WARN ]
---- exception report ----------------------------------------------------------
Error evaluating BSH scriptlet ["DEFAULT".equals(userPreferences.get("ORGANIZATION_PARTY"))?defaultOrganizationPartyIdProperties:userPreferences.get("ORGANIZATION_PARTY")],
inserting nothing; error was: Sourc
ed file: inline evaluation of: ``"DEFAULT".equals(userPreferences.get("ORGANIZATION_PARTY"))?defaultOrganizationP
. . . '' : at Line: 1 : in file: inline evaluation of: ``"DEFAULT".equals(userPreferences.get(
"ORGANIZATION_PARTY"))?defaultOrganizationP . . . '' : userPreferences .get ( "ORGANIZATION_PARTY"
)

Target exception: java.lang.NullPointerException: Null Pointer in Method Invocation

> Search is broken in the party manager application when logged in as any user other than
admin
> ---------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2072
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2072
>             Project: OFBiz
>          Issue Type: Bug
>          Components: site
>    Affects Versions: SVN trunk
>         Environment: Ubuntu 8.10, Firefix 3.0.4
>            Reporter: Raj Saini
>         Attachments: Screenshot.png
>
>
> Party search is broken in the party manager application when any other user than the
one with Full Admin permissions.
> How to reproduce:
> 1. Login as flexadmin https://demo.hotwaxmedia.com/partymgr/ application
> 2. Search the party using any field (party id, login id or first name, last name).
> 3. Search results shows a error page.
> See the attached screen shot 

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


Mime
View raw message