[jira] [Commented] (OFBIZ-6746) removePartyContent request is called twice,

2016-06-18 Thread Deepak Dixit (JIRA)

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

Deepak Dixit commented on OFBIZ-6746:
-

Hi [~Florian M],

Its not old code, its an utility to override the request view. I explained why 
its triggerd twice. We need to fix the js code for url preparation.

> removePartyContent request is called twice, 
> 
>
> Key: OFBIZ-6746
> URL: https://issues.apache.org/jira/browse/OFBIZ-6746
> Project: OFBiz
>  Issue Type: Bug
>  Components: party
>Affects Versions: Trunk
>Reporter: Deepak Dixit
>Priority: Minor
>
> Comments from OFBIZ-6708:
> Not sure why the removePartyContent request is called twice and the 2nd 
> fails, and I have no time to investigate.
> {code}
>  [java] 2015-11-21 22:52:38,110 |http-bio-8443-exec-6 |ControlServlet 
>|T| [[[removePartyContent(Domain:https://localhost)] Request Begun, 
> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/removePartyContent] finished in [18] 
> milliseconds
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |RequestHandler 
>|I| Ran Event [service:#removePartyContent] from [request], result 
> is [success]
>  [java] 2015-11-21 22:52:38,135 |http-bio-8443-exec-6 |RequestHandler 
>|I| Rendering View [viewprofile], 
> sessionId=56DBE28A391381E1B44D53CD49968F7E.jvm1
>  [java] 2015-11-21 22:52:38,136 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getUserPreferenceGroup] finished in [1] 
> milliseconds
>  [java] 2015-11-21 22:52:38,138 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getVisualThemeResources] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,163 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 39 screens in 0.008s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
>  [java] 2015-11-21 22:52:38,210 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 4 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,216 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 1 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/commonext/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,284 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getLastSystemInfoNote] finished in [17] 
> milliseconds
>  [java] 2015-11-21 22:52:38,286 |http-bio-8443-exec-6 |PrimaryKeyFinder   
>|I| Returning null because found incomplete primary key in find: 
> [GenericEntity:PartyAcctgPrefAndGroup][partyId,Company
> (java.lang.String)][roleTypeId,null()]
>  [java] 2015-11-21 22:52:38,293 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 24 screens in 0.006s from: 
> file:/C:/projectASF-Mars/ofbiz/framework/common/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,392 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,393 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/partyBasePermissionCheck] finished in 
> [46] milliseconds
>  [java] 2015-11-21 22:52:38,401 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,402 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/partyBasePermissionCheck] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,419 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/acctgBasePermissionCheck] finished in 
> [12] milliseconds
>  [java] 2015-11-21 22:52:38,421 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,423 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/acctgBasePermissionCheck] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,719 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getOrderedSummaryInformation] finished 
> in [116] milliseconds
>  [java] 2015-11-21 22:52:38,847 |http-bio-8443-exec-6 |ServerHit

[jira] [Commented] (OFBIZ-6746) removePartyContent request is called twice,

2016-05-27 Thread Montalbano Florian (JIRA)

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

Montalbano Florian commented on OFBIZ-6746:
---

Hi,
I'm here from the issue OFBIZ-7135 where there is a service called twice too.

I think the problem come from the URL 
<@ofbizUrl>removePartyContent/viewprofile :
Is this a good practice to put 2 actions in the URL ? It doesn't appear a lot 
in the project.

Moreover, it seems that changing this URL to just 
<@ofbizUrl>removePartyContent corrects the problem while deleting 
the party content. For what I understood, the controller catch the delete 
request, it calls the service "removePartyContent" and then, upon success it 
sends the response specified in the  ("EditPartyContents" in this 
case").
{code}





{code}
This is the part of the controller associated with the removing.

It might be an old part of the code not upgraded yet. What do you think ?

> removePartyContent request is called twice, 
> 
>
> Key: OFBIZ-6746
> URL: https://issues.apache.org/jira/browse/OFBIZ-6746
> Project: OFBiz
>  Issue Type: Bug
>  Components: party
>Affects Versions: Trunk
>Reporter: Deepak Dixit
>Priority: Minor
>
> Comments from OFBIZ-6708:
> Not sure why the removePartyContent request is called twice and the 2nd 
> fails, and I have no time to investigate.
> {code}
>  [java] 2015-11-21 22:52:38,110 |http-bio-8443-exec-6 |ControlServlet 
>|T| [[[removePartyContent(Domain:https://localhost)] Request Begun, 
> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/removePartyContent] finished in [18] 
> milliseconds
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |RequestHandler 
>|I| Ran Event [service:#removePartyContent] from [request], result 
> is [success]
>  [java] 2015-11-21 22:52:38,135 |http-bio-8443-exec-6 |RequestHandler 
>|I| Rendering View [viewprofile], 
> sessionId=56DBE28A391381E1B44D53CD49968F7E.jvm1
>  [java] 2015-11-21 22:52:38,136 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getUserPreferenceGroup] finished in [1] 
> milliseconds
>  [java] 2015-11-21 22:52:38,138 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getVisualThemeResources] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,163 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 39 screens in 0.008s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
>  [java] 2015-11-21 22:52:38,210 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 4 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,216 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 1 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/commonext/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,284 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getLastSystemInfoNote] finished in [17] 
> milliseconds
>  [java] 2015-11-21 22:52:38,286 |http-bio-8443-exec-6 |PrimaryKeyFinder   
>|I| Returning null because found incomplete primary key in find: 
> [GenericEntity:PartyAcctgPrefAndGroup][partyId,Company
> (java.lang.String)][roleTypeId,null()]
>  [java] 2015-11-21 22:52:38,293 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 24 screens in 0.006s from: 
> file:/C:/projectASF-Mars/ofbiz/framework/common/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,392 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,393 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/partyBasePermissionCheck] finished in 
> [46] milliseconds
>  [java] 2015-11-21 22:52:38,401 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,402 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/partyBasePermissionCheck] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,419 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/acctgBasePermissionCheck] finished in 
> [12] milliseconds
>  [java] 2015-11-21 22:52:38,4

[jira] [Commented] (OFBIZ-6746) removePartyContent request is called twice,

2016-05-27 Thread Deepak Dixit (JIRA)

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

Deepak Dixit commented on OFBIZ-6746:
-

Thanks Scott for your input. I dig around it and found that error ocures due to 
incorrect url pattern used in getJSONuiLabels js method.

Ideally it url used in js should be prepared using <@ofbuzUrl> transform 
pattern.

We need to found an way to prepare url correctly for js well.
{code}
function getJSONuiLabels(requiredLabels, callback) {
var requiredLabelsStr = JSON.stringify(requiredLabels)

if (requiredLabels != null && requiredLabels != "") {
jQuery.ajax({
url: "getJSONuiLabelArray",
type: "POST",
data: {"requiredLabels" : requiredLabelsStr},
complete: function(data) {
callback(data);
}
});
}
}
{code}
And getJSONuiLabels called in PartyProfileContent.js  on document.ready.

As per current pattern getJSONuiLabels method using url: "getJSONuiLabelArray", 
this pattern append the current window url and execute it like 
/partymgr/control/removePartyContent/getJSONuiLabelArray and causing the issue.

To test this I useed "/partymgr/control/getJSONuiLabelArray" this in 
getJSONuiLabels method and it works fine.

> removePartyContent request is called twice, 
> 
>
> Key: OFBIZ-6746
> URL: https://issues.apache.org/jira/browse/OFBIZ-6746
> Project: OFBiz
>  Issue Type: Bug
>  Components: party
>Affects Versions: Trunk
>Reporter: Deepak Dixit
>Priority: Minor
>
> Comments from OFBIZ-6708:
> Not sure why the removePartyContent request is called twice and the 2nd 
> fails, and I have no time to investigate.
> {code}
>  [java] 2015-11-21 22:52:38,110 |http-bio-8443-exec-6 |ControlServlet 
>|T| [[[removePartyContent(Domain:https://localhost)] Request Begun, 
> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/removePartyContent] finished in [18] 
> milliseconds
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |RequestHandler 
>|I| Ran Event [service:#removePartyContent] from [request], result 
> is [success]
>  [java] 2015-11-21 22:52:38,135 |http-bio-8443-exec-6 |RequestHandler 
>|I| Rendering View [viewprofile], 
> sessionId=56DBE28A391381E1B44D53CD49968F7E.jvm1
>  [java] 2015-11-21 22:52:38,136 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getUserPreferenceGroup] finished in [1] 
> milliseconds
>  [java] 2015-11-21 22:52:38,138 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getVisualThemeResources] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,163 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 39 screens in 0.008s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
>  [java] 2015-11-21 22:52:38,210 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 4 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,216 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 1 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/commonext/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,284 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getLastSystemInfoNote] finished in [17] 
> milliseconds
>  [java] 2015-11-21 22:52:38,286 |http-bio-8443-exec-6 |PrimaryKeyFinder   
>|I| Returning null because found incomplete primary key in find: 
> [GenericEntity:PartyAcctgPrefAndGroup][partyId,Company
> (java.lang.String)][roleTypeId,null()]
>  [java] 2015-11-21 22:52:38,293 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 24 screens in 0.006s from: 
> file:/C:/projectASF-Mars/ofbiz/framework/common/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,392 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,393 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/partyBasePermissionCheck] finished in 
> [46] milliseconds
>  [java] 2015-11-21 22:52:38,401 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>   

[jira] [Commented] (OFBIZ-6746) removePartyContent request is called twice,

2016-05-26 Thread Swapnil M Mane (JIRA)

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

Swapnil M Mane commented on OFBIZ-6746:
---

Just adding this information for reference, Similar type of behaviour is 
observed (request is called twice) when 'Acctg Trans Entries PDF' is generated 
from Payment Overview screen. 
(https://localhost:8443/accounting/control/paymentOverview?paymentId=8003)

> removePartyContent request is called twice, 
> 
>
> Key: OFBIZ-6746
> URL: https://issues.apache.org/jira/browse/OFBIZ-6746
> Project: OFBiz
>  Issue Type: Bug
>  Components: party
>Affects Versions: Trunk
>Reporter: Deepak Dixit
>Priority: Minor
>
> Comments from OFBIZ-6708:
> Not sure why the removePartyContent request is called twice and the 2nd 
> fails, and I have no time to investigate.
> {code}
>  [java] 2015-11-21 22:52:38,110 |http-bio-8443-exec-6 |ControlServlet 
>|T| [[[removePartyContent(Domain:https://localhost)] Request Begun, 
> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/removePartyContent] finished in [18] 
> milliseconds
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |RequestHandler 
>|I| Ran Event [service:#removePartyContent] from [request], result 
> is [success]
>  [java] 2015-11-21 22:52:38,135 |http-bio-8443-exec-6 |RequestHandler 
>|I| Rendering View [viewprofile], 
> sessionId=56DBE28A391381E1B44D53CD49968F7E.jvm1
>  [java] 2015-11-21 22:52:38,136 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getUserPreferenceGroup] finished in [1] 
> milliseconds
>  [java] 2015-11-21 22:52:38,138 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getVisualThemeResources] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,163 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 39 screens in 0.008s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
>  [java] 2015-11-21 22:52:38,210 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 4 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,216 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 1 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/commonext/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,284 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getLastSystemInfoNote] finished in [17] 
> milliseconds
>  [java] 2015-11-21 22:52:38,286 |http-bio-8443-exec-6 |PrimaryKeyFinder   
>|I| Returning null because found incomplete primary key in find: 
> [GenericEntity:PartyAcctgPrefAndGroup][partyId,Company
> (java.lang.String)][roleTypeId,null()]
>  [java] 2015-11-21 22:52:38,293 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 24 screens in 0.006s from: 
> file:/C:/projectASF-Mars/ofbiz/framework/common/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,392 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,393 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/partyBasePermissionCheck] finished in 
> [46] milliseconds
>  [java] 2015-11-21 22:52:38,401 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,402 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/partyBasePermissionCheck] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,419 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/acctgBasePermissionCheck] finished in 
> [12] milliseconds
>  [java] 2015-11-21 22:52:38,421 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,423 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/acctgBasePermissionCheck] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,719 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getOrderedSummaryInformation] finish

[jira] [Commented] (OFBIZ-6746) removePartyContent request is called twice,

2016-01-02 Thread Scott Gray (JIRA)

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

Scott Gray commented on OFBIZ-6746:
---

That URL style is used to retrieve a specific view in place of whatever is 
normally defined in the controller.  The javascript method that retrieves the 
UiLabels via ajax is using a relative URL which causes the ajax request to end 
up looking like /partymgr/control/removePartyContent/getJSONuiLabelArray
which causes the target to be triggered again.

The only solutions I can think of are:
1. Change the override view logic to actually do a request redirect rather than 
just render the view, or;
2. Find some way to give the javascript an absolute URL to that ajax target

> removePartyContent request is called twice, 
> 
>
> Key: OFBIZ-6746
> URL: https://issues.apache.org/jira/browse/OFBIZ-6746
> Project: OFBiz
>  Issue Type: Bug
>  Components: party
>Affects Versions: Trunk
>Reporter: Deepak Dixit
>Priority: Minor
>
> Comments from OFBIZ-6708:
> Not sure why the removePartyContent request is called twice and the 2nd 
> fails, and I have no time to investigate.
> {code}
>  [java] 2015-11-21 22:52:38,110 |http-bio-8443-exec-6 |ControlServlet 
>|T| [[[removePartyContent(Domain:https://localhost)] Request Begun, 
> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/removePartyContent] finished in [18] 
> milliseconds
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |RequestHandler 
>|I| Ran Event [service:#removePartyContent] from [request], result 
> is [success]
>  [java] 2015-11-21 22:52:38,135 |http-bio-8443-exec-6 |RequestHandler 
>|I| Rendering View [viewprofile], 
> sessionId=56DBE28A391381E1B44D53CD49968F7E.jvm1
>  [java] 2015-11-21 22:52:38,136 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getUserPreferenceGroup] finished in [1] 
> milliseconds
>  [java] 2015-11-21 22:52:38,138 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getVisualThemeResources] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,163 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 39 screens in 0.008s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
>  [java] 2015-11-21 22:52:38,210 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 4 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,216 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 1 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/commonext/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,284 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getLastSystemInfoNote] finished in [17] 
> milliseconds
>  [java] 2015-11-21 22:52:38,286 |http-bio-8443-exec-6 |PrimaryKeyFinder   
>|I| Returning null because found incomplete primary key in find: 
> [GenericEntity:PartyAcctgPrefAndGroup][partyId,Company
> (java.lang.String)][roleTypeId,null()]
>  [java] 2015-11-21 22:52:38,293 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 24 screens in 0.006s from: 
> file:/C:/projectASF-Mars/ofbiz/framework/common/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,392 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,393 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/partyBasePermissionCheck] finished in 
> [46] milliseconds
>  [java] 2015-11-21 22:52:38,401 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,402 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/partyBasePermissionCheck] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,419 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/acctgBasePermissionCheck] finished in 
> [12] milliseconds
>  [java] 2015-11-21 22:52:38,421 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 2

[jira] [Commented] (OFBIZ-6746) removePartyContent request is called twice,

2015-11-25 Thread Deepak Dixit (JIRA)

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

Deepak Dixit commented on OFBIZ-6746:
-

Its because of following url preparation code, I don't have time to dig it 
right now, will dig around it when I get a chance.

{code}
<@ofbizUrl>removePartyContent/viewprofile 
{code}

> removePartyContent request is called twice, 
> 
>
> Key: OFBIZ-6746
> URL: https://issues.apache.org/jira/browse/OFBIZ-6746
> Project: OFBiz
>  Issue Type: Bug
>  Components: party
>Affects Versions: Trunk
>Reporter: Deepak Dixit
>Priority: Minor
>
> Comments from OFBIZ-6708:
> Not sure why the removePartyContent request is called twice and the 2nd 
> fails, and I have no time to investigate.
> {code}
>  [java] 2015-11-21 22:52:38,110 |http-bio-8443-exec-6 |ControlServlet 
>|T| [[[removePartyContent(Domain:https://localhost)] Request Begun, 
> encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/removePartyContent] finished in [18] 
> milliseconds
>  [java] 2015-11-21 22:52:38,134 |http-bio-8443-exec-6 |RequestHandler 
>|I| Ran Event [service:#removePartyContent] from [request], result 
> is [success]
>  [java] 2015-11-21 22:52:38,135 |http-bio-8443-exec-6 |RequestHandler 
>|I| Rendering View [viewprofile], 
> sessionId=56DBE28A391381E1B44D53CD49968F7E.jvm1
>  [java] 2015-11-21 22:52:38,136 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getUserPreferenceGroup] finished in [1] 
> milliseconds
>  [java] 2015-11-21 22:52:38,138 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getVisualThemeResources] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,163 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 39 screens in 0.008s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/PartyScreens.xml
>  [java] 2015-11-21 22:52:38,210 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 4 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/party/widget/partymgr/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,216 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 1 screens in 0.005s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/commonext/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,284 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getLastSystemInfoNote] finished in [17] 
> milliseconds
>  [java] 2015-11-21 22:52:38,286 |http-bio-8443-exec-6 |PrimaryKeyFinder   
>|I| Returning null because found incomplete primary key in find: 
> [GenericEntity:PartyAcctgPrefAndGroup][partyId,Company
> (java.lang.String)][roleTypeId,null()]
>  [java] 2015-11-21 22:52:38,293 |http-bio-8443-exec-6 |ScreenFactory  
>|I| Got 24 screens in 0.006s from: 
> file:/C:/projectASF-Mars/ofbiz/framework/common/widget/CommonScreens.xml
>  [java] 2015-11-21 22:52:38,392 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,393 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/partyBasePermissionCheck] finished in 
> [46] milliseconds
>  [java] 2015-11-21 22:52:38,401 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,402 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/partyBasePermissionCheck] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,419 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/acctgBasePermissionCheck] finished in 
> [12] milliseconds
>  [java] 2015-11-21 22:52:38,421 |http-bio-8443-exec-6 |ServiceEcaRule 
>|I| For Service ECA [partyBasePermissionCheck] on [return] got 
> false for condition: [hasPermission][equals][false][true
> ][Boolean]
>  [java] 2015-11-21 22:52:38,423 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/acctgBasePermissionCheck] finished in 
> [1] milliseconds
>  [java] 2015-11-21 22:52:38,719 |http-bio-8443-exec-6 |ServiceDispatcher  
>|T| Sync service [partymgr/getOrderedSummaryInformation] finished 
> in [116] milliseconds
>  [java] 2015-11-21 22:52:38,847 |http-bio-844