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 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. |
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Raj Saini updated OFBIZ-2072: ----------------------------- Attachment: Screenshot.png Error page screenshot > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656165#action_12656165 ] Jacques Le Roux commented on OFBIZ-2072: ---------------------------------------- I thought i could be related to changes in PreferenceServices.java and reverted version by version and finally reverted to the 1st version : still the same problem. hence either it's related to this class and the problem existed at the origin or it's no related. Inclined to think it was not related, I then tried to give flexadmin the permission MYPAGE_EMPLOYEE, since I noticed I was not able to view MyPage with flexadmin : noway. Very strange indeed... I also thought it could be related to Adrian's recent work on integration of the Unified Expression Language (JSR-245) into the FlexibleStringExpander class as he sent a message on dev ML about a problem he has in FlexibleMapAccessor but so far I can't see how this would be related... > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656173#action_12656173 ] Adrian Crum commented on OFBIZ-2072: ------------------------------------ Jacques, I doubt this error has anything to do with any of my recent work. Here is an informative log entry: 2008-12-12 13:47:41,093 (http-0.0.0.0-8443-5) [ ServiceDispatcher.java:522:ERROR] Error in Service [getUserPreferenceGroup]: Permissions error while getting user preferences Maybe you could track it down from there. I would offer to help, but I'm really busy right now. > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656177#action_12656177 ] Adrian Crum commented on OFBIZ-2072: ------------------------------------ I tracked down the cause, but I don't have time to fix it. There is a name clash with the preference services and one of the input fields on that page - userLoginId. The userLoginId parameter in the preferences services will need to be changed to some other name. > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656185#action_12656185 ] Jacques Le Roux commented on OFBIZ-2072: ---------------------------------------- Thanks Adrian, Actually I tried easy ways because I have also not much time to spend on this. Maybe someone else (Raj ?) will fix it ;) > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656465#action_12656465 ] Jacques Le Roux commented on OFBIZ-2072: ---------------------------------------- Adrian, I was just reviewing your comment. I just wonder why it works for admin and not for flexadmin, have you an idea ? > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656510#action_12656510 ] Adrian Crum commented on OFBIZ-2072: ------------------------------------ Jacques, It is because admin has permission to view and modify other people's preferences. All of the user preference services take an optional userLoginId parameter - so that an admin can modify another user's preferences. If that optional parameter isn't present, then it is assumed the user is getting/setting their own preferences. > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656545#action_12656545 ] Raj Saini commented on OFBIZ-2072: ---------------------------------- I will be taking this up during this week. > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660286#action_12660286 ] Raj Saini commented on OFBIZ-2072: ---------------------------------- I fixed this by changing the userLoginId to userPrefLoginid on line #446 framework/common/servicedef/service.xml file. I tested and it is working fine so far. > 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. |
In reply to this post by Nicolas Malin (Jira)
[ 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660300#action_12660300 ] Raj Saini commented on OFBIZ-2072: ---------------------------------- Hi Jacques, Sorry, I thought it would be a quick one and did not test it with the latest revision. I will do that now and submit the patch. Thanks, Raj > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660301#action_12660301 ] Raj Saini commented on OFBIZ-2072: ---------------------------------- Just verified your code and it is getUserPreferenceGroup service instead of setUserPreferenceGroup. > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660309#action_12660309 ] Jacques Le Roux commented on OFBIZ-2072: ---------------------------------------- Yes, I tried also getUserPreferenceGroup, as it made more sense, : same issue > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-2072. ---------------------------------- Resolution: Fixed Fix Version/s: SVN trunk Assignee: Jacques Le Roux OK, it made even more sense with getUserPreference and there yes it works. You see a patch here would have been a great save of time... Thanks anyway, in trunk revision 730761. PS : "Hell is in details" ;) > 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 > Assignee: Jacques Le Roux > Fix For: SVN trunk > > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian Crum reopened OFBIZ-2072: -------------------------------- I'm reopening this issue because it wasn't really fixed. A symptom was fixed, but the real problem still exists. > 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 > Assignee: Jacques Le Roux > Fix For: SVN trunk > > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian Crum reassigned OFBIZ-2072: ---------------------------------- Assignee: Adrian Crum (was: Jacques Le Roux) > 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 > Assignee: Adrian Crum > Fix For: SVN trunk > > 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. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adrian Crum closed OFBIZ-2072. ------------------------------ Resolution: Fixed Fixed, rev 732744. > 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 > Assignee: Adrian Crum > Fix For: SVN trunk > > 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. |
Free forum by Nabble | Edit this page |