google checkout proxy setting details

2009-12-30 Thread asitkumar....@tcs.com

If my Ofbiz application is hosted in a intranet where proxy setting details
need to provided for internet access Where exactly i need to metion the
proxy setting details for google checkout access.??
-- 
View this message in context: 
http://n4.nabble.com/google-checkout-proxy-setting-details-tp991305p991305.html
Sent from the OFBiz - Dev mailing list archive at Nabble.com.


Re: Discussion: Security-Aware Artifacts

2009-12-30 Thread David E Jones

On Dec 30, 2009, at 4:48 PM, Adrian Crum wrote:

> The security-aware artifacts implementation is nearly complete. The branch is 
> out of date and I can't get it synchronized with the trunk because there are 
> too many conflicts. I would like to create a new branch and port the 
> security-aware artifacts implementation over to that.
> 
> Any objections?

Nope, sounds good. Just be sure to give us all some good time to test and 
review it once it is complete in that branch and before adding it to the trunk.

-David



Re: Conditional seed data loading

2009-12-30 Thread David E Jones

That still represents a dependency on the other component.

Lower level components should not even have anything that represents an 
awareness of a higher level component.

The solution, and the only solution, is to move the data to the higher level 
components. It's that simple.

-David


On Dec 30, 2009, at 5:54 PM, Bruno Busco wrote:

> Hi,
> the MyPortal component has many seed data that create a dependence
> from many other components.
> This is done because the seed data create the default MyPortal
> portalPages that include several portlets from all other components.
> 
> For example:
> portalPortletId="SystemInfoNotes" portletSeqId="1"
> columnSeqId="1" sequenceNum="0"/>
> portalPortletId="SystemInfoStatus" portletSeqId="1"
> columnSeqId="1" sequenceNum="1"/>
> portalPortletId="Calendar" portletSeqId="1" columnSeqId="1"
> sequenceNum="2"/>
> portalPortletId="INCOM_CUST_REQUESTS" portletSeqId="1"
> columnSeqId="1" sequenceNum="0"/>
> portalPortletId="MyCommunications" portletSeqId="1"
> columnSeqId="1" sequenceNum="1"/>
> portalPortletId="party" portletSeqId="1" columnSeqId="1"
> sequenceNum="0"/>
> portalPortletId="partyRelContacts" portletSeqId="1"
> columnSeqId="1" sequenceNum="1"/>
> portalPortletId="partyRelAccounts" portletSeqId="1"
> columnSeqId="1" sequenceNum="2"/>
> portalPortletId="contact" portletSeqId="1" columnSeqId="1"
> sequenceNum="3"/>
> portalPortletId="LoyaltyPoints" portletSeqId="1"
> columnSeqId="1" sequenceNum="4"/>
> portalPortletId="PaymentMethods" portletSeqId="1"
> columnSeqId="1" sequenceNum="5"/>
> portalPortletId="AvsSettings" portletSeqId="1" columnSeqId="1"
> sequenceNum="6"/>
> portalPortletId="UserLogin" portletSeqId="1" columnSeqId="2"
> sequenceNum="1"/>
> portalPortletId="Attributes" portletSeqId="1" columnSeqId="2"
> sequenceNum="2"/>
> portalPortletId="Visits" portletSeqId="1" columnSeqId="2"
> sequenceNum="3"/>
> portalPortletId="Content" portletSeqId="1" columnSeqId="2"
> sequenceNum="4"/>
> portalPortletId="ShipperAccount" portletSeqId="1"
> columnSeqId="2" sequenceNum="5"/>
> portalPortletId="Notes" portletSeqId="1" columnSeqId="2"
> sequenceNum="6"/>
> portalPortletId="MYTASKSPARTY" portletSeqId="1"
> columnSeqId="2" sequenceNum="7"/>
> portalPortletId="MyCommunications" portletSeqId="1"
> columnSeqId="1" sequenceNum="0"/>
> portalPortletId="MyCommunications" portletSeqId="1"
> attrName="communicationPartyId" attrValue="Company"/>
> portalPortletId="mytimesheet" portletSeqId="1" columnSeqId="1"
> sequenceNum="0"/>
> portalPortletId="mytasks" portletSeqId="1" columnSeqId="1"
> sequenceNum="0"/>
> 
> How can we have a conditional seed data loading that would load only
> seed data for the portlets really available in the system?
> I mean, could we have something like this:
> 
> 
> portalPortletId="mytimesheet" portletSeqId="1" columnSeqId="1"
> sequenceNum="0"/>
> portalPortletId="mytasks" portletSeqId="1" columnSeqId="1"
> sequenceNum="0"/>
> 
> 
> or is there any other tecnique to do this?
> 
> Many thanks,
> Bruno



[jira] Commented: (OFBIZ-3366) Validate operations in Financial Account Tab for deactivated status (Frozen/cancel).

2009-12-30 Thread Sumit Pandit (JIRA)

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

Sumit Pandit commented on OFBIZ-3366:
-

Thank you Awdesh.

> Validate operations in Financial Account Tab for deactivated status 
> (Frozen/cancel).
> 
>
> Key: OFBIZ-3366
> URL: https://issues.apache.org/jira/browse/OFBIZ-3366
> Project: OFBiz
>  Issue Type: Improvement
>  Components: accounting
>Reporter: Sumit Pandit
>Priority: Minor
> Fix For: SVN trunk
>
> Attachments: OFBIZ-3366.patch
>
>
> https://demo.ofbiz.org/accounting/control/EditFinAccountRoles?finAccountId=ABN_CHECKING
> - When Assign roles to financial account, need to validate following - 
> -- Add Validation at service level, User can not assign role to 
> deactivated(canceled/frozen) financial account.
> -- Add validation at UI level, On click at (ROLES) tab, add new role form 
> should not display.
> https://demo.ofbiz.org/accounting/control/FindFinAccountTrans?finAccountId=ABN_CHECKING
> - Create/edit new transaction under financial account, need to fix.
> -- Add validation at service level, User can not create transaction for 
> deactivated(canceled/frozen) financial account.
> -- Add validation at Ui Level, CREATE NEW button should not display
> https://demo.ofbiz.org/accounting/control/FindPaymentsForDepositOrWithdraw?finAccountId=ABN_CHECKING&organizationPartyId=Company
> - At Deposit/Withdraw tab.
> -- Add validation at service level, user can't create new deposit/withdraw 
> payment for inactive account.
> -- Add validation at UI level, don't display buttons to create new 
> deposit/withdraw payment.
> -- Add validation at UI level, Find should work, but create batch 
> functionality should disable.
> -- Add validation at service level, service should not create a batch for 
> deactivated finaccount.
> https://demo.ofbiz.org/accounting/control/FindDepositSlips?finAccountId=ABN_CHECKING&organizationPartyId=Company
> - At deposit slip tab
> -- Add validation at service level, user can not create a new deposit slip 
> for deactivated finaccount.
> -- Add validation at ui level, Create new deposit slip button should not 
> display.
> https://demo.ofbiz.org/accounting/control/FindFinAccountReconciliations?finAccountId=ABN_CHECKING
> - At reconciliation tab
> -- Validation at UI level, Create new reconciliation button should not 
> display.
> -- Validation at  service level, User can not create a new reconciliation for 
> deactivated finaccount.

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



Conditional seed data loading

2009-12-30 Thread Bruno Busco
Hi,
the MyPortal component has many seed data that create a dependence
from many other components.
This is done because the seed data create the default MyPortal
portalPages that include several portlets from all other components.

For example:
























How can we have a conditional seed data loading that would load only
seed data for the portlets really available in the system?
I mean, could we have something like this:






or is there any other tecnique to do this?

Many thanks,
Bruno


Re: Discussion: Security-Aware Artifacts

2009-12-30 Thread Jacques Le Roux

Not a problem from my POV.
Thanks for your continued work on this Adrian!

Jacques

From: "Adrian Crum" 
The security-aware artifacts implementation is nearly complete. The 
branch is out of date and I can't get it synchronized with the trunk 
because there are too many conflicts. I would like to create a new 
branch and port the security-aware artifacts implementation over to that.


Any objections?

-Adrian





Discussion: Security-Aware Artifacts

2009-12-30 Thread Adrian Crum
The security-aware artifacts implementation is nearly complete. The 
branch is out of date and I can't get it synchronized with the trunk 
because there are too many conflicts. I would like to create a new 
branch and port the security-aware artifacts implementation over to that.


Any objections?

-Adrian


[jira] Commented: (OFBIZ-3385) Axis2 integration returns "Unsupported Content-Type: text/html;charset=utf-8 Supported ones are: [text/xml]"

2009-12-30 Thread chris snow (JIRA)

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

chris snow commented on OFBIZ-3385:
---

I'm also having problems trying to call findPartiesById using a C# 3.5 client.

I am getting a valid SOAP response from the server from the client call (shown 
below the code), but the generated client code doesn't appear to be able to 
re-use the IN object for storing the OUT value.  This is the same problem I had 
experience with the java code.

Has anyone managed to generate a SOAP client against the ofbiz generated wsdl 
and successfully make a call?

Can you spot where I am going wrong?

Many thanks in advance,

Chris

 C# code ---

{code}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using ConsoleApplication1.ServiceReference1;

namespace ConsoleApplication1
{
   class Program
   {
   static void Main(string[] args)
   {  findPartiesByIdPortTypeClient client =
   new findPartiesByIdPortTypeClient();

   mapEntry[] mapEntryArray = new mapEntry[3];
   mapEntryArray[0] = makeMap("idToFind", "admin");
   mapEntryArray[1] = makeMap("login.username", "admin");
   mapEntryArray[2] = makeMap("login.password", "ofbiz");

   client.findPartiesById(ref mapEntryArray);

   Console.WriteLine(mapEntryArray.Length); // is 0, but should be 3

   Console.Read();
   }

   static mapEntry makeMap(String keyString, String valString) {
  stdString mapKeyString = new stdString();
   stdString mapValString = new stdString();

   mapKeyString.value = keyString;
   mapValString.value = valString;

   mapKey key = new mapKey();
   key.stdString = mapKeyString;

   mapValue val = new mapValue();
   val.Item = mapValString;
   val.ItemElementName = ItemChoiceType.stdString;
  mapEntry entry = new mapEntry();
   entry.mapKey = key;
   entry.mapValue = val;

   return entry;
   }
   }
}
{code}

-- SOAP Response 

{code}
Date: Wed, 30 Dec 2009 12:00:38 GMT
Set-Cookie: JSESSIONID=018C937189AF33CDD44D2C69862E5CE1.jvm1; Path=/webtools
Set-Cookie: OFBiz.Visitor=11818; Expires=Thu, 30-Dec-2010 12:00:38 GMT; Path=/
Content-Type: text/xml;charset=utf-8
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked

4e4
http://schemas.xmlsoap.org/soap/envelope/";>http://ofbiz.apache.org/service/";>
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

0
{code}


> Axis2 integration returns "Unsupported Content-Type: text/html;charset=utf-8 
> Supported ones are: [text/xml]"
> 
>
> Key: OFBIZ-3385
> URL: https://issues.apache.org/jira/browse/OFBIZ-3385
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: chris snow
> Attachments: patch.txt
>
>
> I have setup the findPartiesById service to export="true" and tried to call 
> the web service using Netbeans 6.5.
> I received the following error message:
> {code}
> com.sun.xml.internal.ws.server.UnsupportedMediaException: Unsupported 
> Content-Type: text/html;charset=utf-8 Supported ones are: [text/xml]
> at 
> com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:284)
> at 
> com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:118)
> at 
> com.sun.xml.internal.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:278)
> at 
> com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:180)
> at 
> com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:83)
> at 
> com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)
> at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:587)
> at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)
> at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)
> at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)
> at com.sun.xml.internal.ws.client.Stub.process(Stub.java:211)
> at 
> com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:124

[jira] Commented: (OFBIZ-3374) UI upgrade, new lookups

2009-12-30 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux commented on OFBIZ-3374:


Hi Sascha,

Right, I found this line
+background:url(../images/wr.png) top right no-repeat;
And did not check: it was already in trunk. It was only a white space change 
which makes popup this line

> UI upgrade, new lookups
> ---
>
> Key: OFBIZ-3374
> URL: https://issues.apache.org/jira/browse/OFBIZ-3374
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: Sascha Rodekamp
>Priority: Minor
> Fix For: SVN trunk
>
> Attachments: header_bg.gif, header_close_button.png, lookup.jpg, 
> lookup2.jpg, lookups.patch, lookups.patch, lookups.patch, lookups.patch, 
> lookups.patch, lookups.patch, lookups.patch
>
>
> Hi,
> regarding to this articel: 
> [here|http://cwiki.apache.org/confluence/display/OFBADMIN/New+Features+Roadmap+-+Living+Document#NewFeaturesRoadmap-LivingDocument-Quickeranintuitiveaccesstobasicfunctionnalities%28creation,etc.%29]
>  I decided to improve the lookup fields.
> They shouldn't open in a page layer instead of a seperate windows. 
> My Patch contains a prototype (not a final patch), so what do you think about 
> the new lookup windows?
> Should i follow this idea, any suggestions?
> So long 
> Sascha

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



Re: buildbot messages

2009-12-30 Thread Adam Heath
Adam Heath wrote:
> So, every success of buildbot will send a message?  I would prefer
> just when an error is detected, then when the build is fixed after
> such an error.  Seeing one for every commit seems to be worthless.

Ah, I see others agree with this too.


buildbot messages

2009-12-30 Thread Adam Heath
So, every success of buildbot will send a message?  I would prefer
just when an error is detected, then when the build is fixed after
such an error.  Seeing one for every commit seems to be worthless.


Re: Naming pattern of test definition files

2009-12-30 Thread Adam Heath
David E Jones wrote:
> If a test is written as a simple-method it should be names like other files, 
> ie as *Services.xml or *SimpleMethods.xml (an older form, not used much).

Shouldn't test definitions(classes, simple methods, entity defs, etc)
only be active if tests are being run?  This would reduce the memory
load during normal runs.


[jira] Updated: (OFBIZ-3374) UI upgrade, new lookups

2009-12-30 Thread Sascha Rodekamp (JIRA)

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

Sascha Rodekamp updated OFBIZ-3374:
---

Attachment: lookups.patch

Hey,

sorry for the late update (yersterday was birthday time, i took a little 
freetime to celebrate :-))
the patch is updated. 
 - I try to delete all not needed spaces, i hope now it's simpler to review.
 - The conflicts are solved.
 - image location: Both images (heade_close_button.png, header_bg.gif) should 
copied in the folders:
  /themes/bizznestime/webapp/bizznestime/images/
  /themes/bluelight/webapp/bluelight/images/
 /themes/droppingcrumbs/webapp/droppingcrumbs/images/
 /themes/flatgrey/webapp/flatgrey/
(Jacques there is no wr.png in my Patch:-))

Bruno no problem, i understand your point :-)
(If there are any points i can do better/ create patches with higher quality... 
let me now.. :-))

So long
Sascha


> UI upgrade, new lookups
> ---
>
> Key: OFBIZ-3374
> URL: https://issues.apache.org/jira/browse/OFBIZ-3374
> Project: OFBiz
>  Issue Type: Improvement
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: Sascha Rodekamp
>Priority: Minor
> Fix For: SVN trunk
>
> Attachments: header_bg.gif, header_close_button.png, lookup.jpg, 
> lookup2.jpg, lookups.patch, lookups.patch, lookups.patch, lookups.patch, 
> lookups.patch, lookups.patch, lookups.patch
>
>
> Hi,
> regarding to this articel: 
> [here|http://cwiki.apache.org/confluence/display/OFBADMIN/New+Features+Roadmap+-+Living+Document#NewFeaturesRoadmap-LivingDocument-Quickeranintuitiveaccesstobasicfunctionnalities%28creation,etc.%29]
>  I decided to improve the lookup fields.
> They shouldn't open in a page layer instead of a seperate windows. 
> My Patch contains a prototype (not a final patch), so what do you think about 
> the new lookup windows?
> Should i follow this idea, any suggestions?
> So long 
> Sascha

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



Re: getNextSeqId and multiple sequence on entity

2009-12-30 Thread Brett Palmer
Nicolas,

Your proposal for a new method like, "SequenceUtil.getNextSequence(String
key, long staggerMax)" sounds like what I am proposing.  Would the
"staggerMax" parameter set the next range of sequence IDs?  For example:

Before calling "getNextSequence" method"

SeqName:  MySequence
SeqId:  1000

Now call your method:  SequenceUtil.getNextSequence("MySequence", 1500)

After the call the SequenceValueItem record has the following:

SeqName: MySequence
SeqId:  2501

We ran into some performance problems for some of our entities (OrderItem,
InventoryItem, etc) when the application servers were generating sequenceIds
for these entities and the default sequence-bank-size was only 10.  The
process of getting a new range of sequence IDs from the database is a
locking process and we had multiple servers trying to perform the same
function.  This was creating table locks during high loads.

In the entity definition you can specify the "sequence-bank-size" like so:


but we couldn't find a way to specify the bank size for non-entity related
sequence IDs.  We also use the "sequence-id" simple method a lot but this
only works for entity related sequences and doesn't have a parameter to set
the "staggerMax".

My proposal was simply to add a new column to the SequenceValueItem table
called "sequenceBankSize" (or something like that).  Using my example above
the SequenceValueItem table might look like the following:

column names: SeqName, SeqId, SeqBankSize
record values:  MySequence,  1000,  1500

Then when the you used the SequenceUtil.getNextSequence("MySequence") or the
simple method "sequence-id" for the first time the sequencer would update
the SequenceValueItem table as follows:

MySequence, 2501, 1500

Subsequent "getNextSequence" calls would continue to return unique IDs
without hitting the database until the bank of 1500 IDs was used up and then
the above process would continue again.

For us the key points we would like to see for the sequencer are as follows:

1. Ability to use non-entity related sequences by just providing a sequence
name.

2. Ability to configure the sequence bank size so we can adjust the
frequency for database updates.

3. Any APIs for the sequence util should be available via simple
methods.  We could provide a patch for the simple method support for the new
utils if needed.

Thanks,



Brett


On Thu, Dec 24, 2009 at 8:52 AM, Nicolas Malin <
malin.nico...@librenberry.net> wrote:

> After some reflection on this subject, I arrive to :
> getNextSeqId is use normaly to get an single id that identify an
> entity : Invoice.invoiceId, Order.orderId, Party.partyId etc ...
> It's easier to remove the problematic instruction but bypasses
> getNextSeqId purpose.
>
> For multiple sequence on Entity I suggest to create new function on
> delegator : getNextSequence (String entityName, String diff, long
> staggerMax) that manage sequence as getNextSeqId but analyse just the
> validity of entityName and generate sequenceValueId : entityName.diff.
>
> As this, Delegator continue to work only on entity and not use for other
> not in relation with entitymodel.
>
> For sequence not in relation with entity, I can extend sequenceUtil to
> have a function SequenceUtil.getNextSequence(String key, long
> staggerMax).
>
> Brett can you give me an example for your proposal ? I don't really
> understand your improvement.
>
> If you wait to read, Have a nice end year ;)
> Nicolas
>
>
> Le mercredi 23 décembre 2009 à 13:49 -0700, Brett Palmer a écrit :
>  > I confirmed that if you use the delegator.getNextSeqId() you will get
> an
> > exception every time it is used with a complaint that an entity doesn't
> > exist for the sequence you requested.  It does give still generate an ID
> but
> > the exception is a little concerning when you are running in a production
> > environment.  This exception probably isn't intended but is a consequence
> of
> > the call to look for the entity name.
> >
> > I would prefer we just outputted a warning log and not threw an
> exception.
> >
> > Another request for the sequence generator is the ability to specify the
> gap
> > between the next sequence ID update.  This can be configured in the
> entity
> > engine but only for those IDs that have a corresponding entity.  If you
> try
> > to use a generic sequencer with no attached entity the default is 10
> which
> > can be low for a production environment with multiple servers.  Could we
> add
> > a column to the SequenceValueItem to include the next increment value?
> >
> >
> > Brett
> >
> > Here is the stack trace:
> >
> >
> >  exception report
> > --
> > Error getting entity definition from model
> > Exception: org.ofbiz.entity.GenericModelException
> > Message: Could not find definition for entity name DummySequence
> >  stack trace
> > ---
> > org.ofbiz.entity.GenericModelException: Could not find defi

Discussion: BuildBot component independence check

2009-12-30 Thread Bruno Busco
Hi devs,
I am trying to remove some OFBiz components but even removing few
specialpurpose components make the build or the data loading
impossible.
I think we need to gain back the components independence in a controlled way.
Even reviewing commits is not so easy to detect that a change
introduce a wrong dependence and then, when you try to separate things
its a complete mess.

What about to start a process that will take us to have a set of
different OFBiz configurations to be all built on BuildBot to be sure
that no wrong dependence has been introduced?

The first thing to do would be to agree to a dependence tree we want to rispect.
Then we could define one or more partial OFBiz configuration that
should work according to the approved dependence tree.
Then we could setup BuildBot to automatically build them for us.

Whet do you think about?

Thank you,
-Bruno


buildbot success in ASF Buildbot on ofbiz-trunk

2009-12-30 Thread buildbot
The Buildbot has finished a build of ofbiz-trunk on ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/ofbiz-trunk/builds/

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: isis_ubuntu

Build Reason: 
Build Source Stamp: [branch ofbiz/trunk] 894595
Blamelist: mor

Build succeeded!

sincerely,
 -The ASF Buildbot



buildbot success in ASF Buildbot on ofbiz-trunk

2009-12-30 Thread buildbot
The Buildbot has finished a build of ofbiz-trunk on ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/ofbiz-trunk/builds/2221

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: isis_ubuntu

Build Reason: 
Build Source Stamp: [branch ofbiz/trunk] 894593
Blamelist: jacopoc

Build succeeded!

sincerely,
 -The ASF Buildbot



Re: buildbot success in ASF Buildbot on ofbiz-trunk

2009-12-30 Thread Scott Gray
As mentioned already in the jira issue what we want is notification of  
when the status changes i.e. from pass to fail or from fail to pass


Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 31/12/2009, at 12:39 AM, Jacques Le Roux wrote:


I put a comment to Gavin at https://issues.apache.org/jira/browse/INFRA-2353
We want to receive it only when it fails. Anyway it's better to  
receive in both cases than never :)


Thanks

Jacques

From: 

The Buildbot has finished a build of ofbiz-trunk on ASF Buildbot.
Full details are available at:
http://ci.apache.org/builders/ofbiz-trunk/builds/2220
Buildbot URL: http://ci.apache.org/
Buildslave for this Build: isis_ubuntu
Build Reason: Build Source Stamp: [branch ofbiz/trunk] 894576
Blamelist: mor
Build succeeded!
sincerely,
-The ASF Buildbot







smime.p7s
Description: S/MIME cryptographic signature


Re: buildbot success in ASF Buildbot on ofbiz-trunk

2009-12-30 Thread Jacques Le Roux

I put a comment to Gavin at https://issues.apache.org/jira/browse/INFRA-2353
We want to receive it only when it fails. Anyway it's better to receive in both 
cases than never :)

Thanks

Jacques

From: 

The Buildbot has finished a build of ofbiz-trunk on ASF Buildbot.
Full details are available at:
http://ci.apache.org/builders/ofbiz-trunk/builds/2220

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: isis_ubuntu

Build Reason: 
Build Source Stamp: [branch ofbiz/trunk] 894576

Blamelist: mor

Build succeeded!

sincerely,
-The ASF Buildbot





how to access uiLabelMap in custom view handler

2009-12-30 Thread Qingfeng Liang
hi all,


I am trying to implement an ajax tooltip feature in ofbiz, what i am doing are:

1, define a request map in controller.xml to handle request for
tooltip resource from client. the client requested uri looks like:
http://localhost:8080/tooltip?res=${uiLabelMap.CommonUpdate}

2, write a custom view handler to return localized tooltip resource
view associated with the above request map, in my custom view handler,
i will try to locate the resource with key in uiLabelMap which is also
used in form field definition.


Is it feasible to do it in custom view handler other than defining
some screen like view handler  since uiLabelMap is put in the context
of screen?



thanks,
Nathan


buildbot success in ASF Buildbot on ofbiz-trunk

2009-12-30 Thread buildbot
The Buildbot has finished a build of ofbiz-trunk on ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/ofbiz-trunk/builds/2220

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: isis_ubuntu

Build Reason: 
Build Source Stamp: [branch ofbiz/trunk] 894576
Blamelist: mor

Build succeeded!

sincerely,
 -The ASF Buildbot



Re: End of month : Main New features

2009-12-30 Thread Jeroen van der Wal
Maybe Jira can help in populating this page:

New Features resolved from 2009-12-01 to 2009-12-31:
https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&&type=2&pid=12310500&customfield_12310221%3Aafter=1%2FDec%2F09&customfield_12310221%3Abefore=31%2FDec%2F09&sorter/field=issuekey&sorter/order=DESC
Improvements resolved from 2009-12-01 to 2009-12-31:
https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&&type=4&pid=12310500&customfield_12310221%3Aafter=1%2FDec%2F09&customfield_12310221%3Abefore=31%2FDec%2F09&sorter/field=issuekey&sorter/order=DESC

Jeroen van der Wal
Stromboli b.v.
+31 655 874050


On Wed, Dec 30, 2009 at 11:01 AM, Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Please devs, don't forget to add your changes in Main New features with
> short explanations
>
> http://docs.ofbiz.org/display/OFBIZ/Main+New+features
>
> Thanks
>
> Jacques
>
>
>


Re: Search for unused uiLabels

2009-12-30 Thread Jacques Le Roux

Forget it, there is already "Only Not Used Labels"  ;o)

Jacques

From: "Jacques Le Roux" 

Hi Erwan,

I don't think so. But may be derived from the "Only Missing Translations" 
feature in Webtools Label Manager?

Jacques

From: "Erwan de FERRIERES" 

Hi all,

While looking at the uiLabels, I was wondering if there is an existing 
tool which can quickly find all the unused ones in OFBiz.


I don't know if there are some of them, but if some are present, it 
would be nice to remove them.


Cheers,

--
Erwan de FERRIERES
www.nereide.biz





Re: Search for unused uiLabels

2009-12-30 Thread Jacques Le Roux

Hi Erwan,

I don't think so. But may be derived from the "Only Missing Translations" 
feature in Webtools Label Manager?

Jacques

From: "Erwan de FERRIERES" 

Hi all,

While looking at the uiLabels, I was wondering if there is an existing 
tool which can quickly find all the unused ones in OFBiz.


I don't know if there are some of them, but if some are present, it 
would be nice to remove them.


Cheers,

--
Erwan de FERRIERES
www.nereide.biz





End of month : Main New features

2009-12-30 Thread Jacques Le Roux

Please devs, don't forget to add your changes in Main New features with short 
explanations

http://docs.ofbiz.org/display/OFBIZ/Main+New+features

Thanks

Jacques




[jira] Updated: (OFBIZ-3385) Axis2 integration returns "Unsupported Content-Type: text/html;charset=utf-8 Supported ones are: [text/xml]"

2009-12-30 Thread chris snow (JIRA)

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

chris snow updated OFBIZ-3385:
--

Attachment: patch.txt

> Axis2 integration returns "Unsupported Content-Type: text/html;charset=utf-8 
> Supported ones are: [text/xml]"
> 
>
> Key: OFBIZ-3385
> URL: https://issues.apache.org/jira/browse/OFBIZ-3385
> Project: OFBiz
>  Issue Type: Bug
>  Components: framework
>Affects Versions: SVN trunk
>Reporter: chris snow
> Attachments: patch.txt
>
>
> I have setup the findPartiesById service to export="true" and tried to call 
> the web service using Netbeans 6.5.
> I received the following error message:
> {code}
> com.sun.xml.internal.ws.server.UnsupportedMediaException: Unsupported 
> Content-Type: text/html;charset=utf-8 Supported ones are: [text/xml]
> at 
> com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:284)
> at 
> com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:118)
> at 
> com.sun.xml.internal.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:278)
> at 
> com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:180)
> at 
> com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:83)
> at 
> com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)
> at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:587)
> at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)
> at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)
> at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)
> at com.sun.xml.internal.ws.client.Stub.process(Stub.java:211)
> at 
> com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:124)
> at 
> com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:98)
> at 
> com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
> at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
> at $Proxy28.findPartiesById(Unknown Source)
> at javaapplication7.Main.main(Main.java:74)
> {code}
> Watching the tcp steam with wireshark, I can see that the prefix ns2 is added 
> to the map-Entry items:
> {code}
> http://schemas.xmlsoap.org/soap/envelope/";>
>
>   http://ofbiz.apache.org/service/";>
>  
> 
>
>   
>
>
>   
>
> 
> 
>
>   
>
>
>   
>
> 
> 
>
>   
>
>
>   
>
> 
>  
>   
>
> 
> {code}
> If I copy this soap message and paste into SoapUI, the soap call fails.  
> However, if I strip off the ns2 prefix from the map-Entry items (as below), 
> the call succeeds:
> {code}
> http://schemas.xmlsoap.org/soap/envelope/";>
>
>   http://ofbiz.apache.org/service/";>
>  
> 
>
>   
>
>
>   
>
> 
> 
>
>   
>
>
>   
>
> 
> 
>
>   
>
>
>   
>
> 
>  
>   
>
> 
> {code}
> My java class is:
> {code}
> package javaapplication7;
> import org.apache.ofbiz.service.MapEntry;
> import org.apache.ofbiz.service.MapKey;
> import org.apache.ofbiz.service.MapMap;
> import org.apache.ofbiz.service.MapValue;
> import org.apache.ofbiz.service.StdString;
> public class Main {
> public static void main(String[] args) {
> try { 
> org.apache.ofbiz.service.FindPartiesById service = new 
> org.apache.ofbiz.service.FindPartiesById();
> org.apache.ofbiz.service.FindPartiesByIdPortType port = 
> service.getFindPartiesByIdPort();
> StdString keyString = new StdString();
> keyString.setValue("idToFind");
> MapKey mapKey = new MapKey();
> mapKey.setStdString(keyString);
> 
> StdString valueString = new StdString();
> valueString.setValue("admin");
> 
> MapValue mapValue = new MapValue();
>

Search for unused uiLabels

2009-12-30 Thread Erwan de FERRIERES

Hi all,

While looking at the uiLabels, I was wondering if there is an existing 
tool which can quickly find all the unused ones in OFBiz.


I don't know if there are some of them, but if some are present, it 
would be nice to remove them.


Cheers,

--
Erwan de FERRIERES
www.nereide.biz


[jira] Assigned: (OFBIZ-3381) Update of the geolocation screen in party

2009-12-30 Thread Erwan de FERRIERES (JIRA)

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

Erwan de FERRIERES reassigned OFBIZ-3381:
-

Assignee: Erwan de FERRIERES

> Update of the geolocation screen in party
> -
>
> Key: OFBIZ-3381
> URL: https://issues.apache.org/jira/browse/OFBIZ-3381
> Project: OFBiz
>  Issue Type: Improvement
>  Components: party
>Affects Versions: SVN trunk
>Reporter: Erwan de FERRIERES
>Assignee: Erwan de FERRIERES
> Fix For: SVN trunk
>
> Attachments: OFBIZ-3381.diff
>
>
> This will allow to use the new geoChart screen introduced by Bruno instead of 
> the geoLocation screen, and then have less javascript calls.
> I put this as a JIRA issue to have your comments and be sure that this meet 
> OFBiz requirements.
> if it's OK, I will then commit it to the trunk.

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



buildbot success in ASF Buildbot on ofbiz-trunk

2009-12-30 Thread buildbot
The Buildbot has finished a build of ofbiz-trunk on ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/ofbiz-trunk/builds/2219

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: isis_ubuntu

Build Reason: 
Build Source Stamp: [branch ofbiz/trunk] 894570
Blamelist: jleroux

Build succeeded!

sincerely,
 -The ASF Buildbot



Re: Moving securityext to the framework

2009-12-30 Thread Bilgin Ibryam

Bruno Busco wrote:

One thing we need in the framework is the possibility to create a
userLogin with an associated email address and have the possibility to
have the password emailed if forgotten.
This is actually done in
public static String emailPassword(HttpServletRequest request,
HttpServletResponse response) {
that is located in LoginEvents.java in securityext.

To get the email address, emailPassword(...) checks if the userLoginId
exists, then find the related party, then find a related ContactMech
with PRIMARY_MAIL purpose.
To get the email body and other details, emailPassword(...) starts
from a ProductStore and gets the related ProductStoreEmailSetting.

So, being dependent from both party and product, emailPassword(...)
service needs to be in applications/securityext and cannot be
available in a framework-only distribution.

Now,
the emailPassword(...) sevice in the securityext is OK for the
ecommerce application (that depends on party and product) but IMO is
not the right implementation for the backoffice (and thus for the
framework-only).

I propose to do the following:
1) Put an email address in the userLogin entity. This would be used to
retrieve the password.
 
What about if someone wants to implement retrieving forgotten passwords 
through sms (short messaging service) instead of email? Are we going to 
add telephone number to userLogin entity?
So my vote is to let forgotten password feature in applications or move 
the related entities to framework.


Bilgin


Re: Naming pattern of test definition files

2009-12-30 Thread David E Jones

If a test is written as a simple-method it should be names like other files, ie 
as *Services.xml or *SimpleMethods.xml (an older form, not used much).

-David


On Dec 30, 2009, at 2:39 AM, Vikas Mayur wrote:

> Yes but the definition and implementation of a test need two separate files. 
> Same is true for a service except the entity-auto feature.
> 
> There is an example btw.
> 
> party/script/org/ofbiz/party/test/PartyTests.xml
> party/testdef/PartyTests.xml
> 
> Both of files above reside in different folders in the structure and thus 
> there purpose is obvious but still it is very useful to identify the purpose 
> of the file when you do lookup in the editor
> 
> and I think it is far easier to refer a test definition file if we follow the 
> pattern applied to services.
> 
> Exceptions are always there but I think they have their own advantages if it 
> helps in making an easier reference to a file in this case or any thing else.
> 
> Vikas
> 
> On Dec 30, 2009, at 1:54 PM, Jacques Le Roux wrote:
> 
>> I was for the  tests-*.xml type of file because it was consistent with 
>> services defintions files names. But I should say that I don't like to have 
>> dashes and underscores in names at large (should I say that it remains me my 
>> 1st and only short experience with Cobol 25 years ago ). It would be even 
>> easier to have camel-cased and an upper-case first letter almost everywhere 
>> it makes sense (of course keeping uppercase for static var and camel-cased 
>> and a lower-case first letter for methods, and anyway Sun conventions for 
>> Java languages). Then you don't have to guess about how to write a name.
>> 
>> So +1 for David's proposition.
>> 
>> Jacques
>> 
>> From: "David E Jones" 
>>> 
>>> Actually, most XML files in OFBiz these days (with just a few exceptions) 
>>> follow a patterns like:
>>> 
>>> *Services.xml
>>> *Forms.xml
>>> *Screens.xml
>>> *Data.xml
>>> ... etc
>>> 
>>> By that pattern the test files should be *Tests.xml, with the rest of the 
>>> file camel-cased and an upper-case first letter.
>>> 
>>> -David
>>> 
>>> 
>>> On Dec 29, 2009, at 6:44 PM, David E Jones wrote:
>>> 
 
 Why not camel case them like most other files?
 
 -David
 
 
 On Dec 29, 2009, at 1:05 PM, Bilgin Ibryam wrote:
 
> Vikas Mayur wrote:
>> Hi,
>> 
>> The test definition files name is not consistent throughout the project. 
>> Some of the files name is all lowercase and others have camel case 
>> pattern.
>> 
>> I think we can follow the pattern used in service definition files.
>> 
>> The files under accounting/testdef are
>> 
>> accountingtests.xml
>> invoicetests.xml
>> paymenttests.xml
>> fixedassettests.xml
>> 
>> and would be (after this change)
>> 
>> tests.xml (generic test)
>> tests_invoice.xml (tests specific to invoices)
>> tests_payment.xml (tests specific to payments)
>> tests_fixedasset.xml (tests specific to fixed assets)
>> etc..
>> 
>> Any thoughts?
>> 
>> Vikas
>> 
> + 1 for a naming pattern. The above proposal is fine for me.
> 
> Bilgin
 
>> 
>> 
> 



[jira] Closed: (OFBIZ-3386) Docbook Online Help: Help screens for Global GL Settings

2009-12-30 Thread Jacques Le Roux (JIRA)

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

Jacques Le Roux closed OFBIZ-3386.
--

   Resolution: Fixed
Fix Version/s: SVN trunk
 Assignee: Jacques Le Roux

Thanks Sharan,

Your patch is in trunk at r894570  


> Docbook Online Help: Help screens for Global GL Settings
> 
>
> Key: OFBIZ-3386
> URL: https://issues.apache.org/jira/browse/OFBIZ-3386
> Project: OFBiz
>  Issue Type: Improvement
>  Components: accounting
>Affects Versions: SVN trunk
>Reporter: Sharan Foga
>Assignee: Jacques Le Roux
>Priority: Minor
> Fix For: SVN trunk
>
> Attachments: OFBIZ-3386_DocbookGlobalGLSettings.patch
>
>
> Hi
> This is a patch for the Docbook online help. It contains some help text and 
> placemarker xml files for the Accounting Global GL Settings screens. 
> Thanks
> Sharan

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



Re: Naming pattern of test definition files

2009-12-30 Thread Vikas Mayur
Yes but the definition and implementation of a test need two separate  
files. Same is true for a service except the entity-auto feature.


There is an example btw.

party/script/org/ofbiz/party/test/PartyTests.xml
party/testdef/PartyTests.xml

Both of files above reside in different folders in the structure and  
thus there purpose is obvious but still it is very useful to identify  
the purpose of the file when you do lookup in the editor


and I think it is far easier to refer a test definition file if we  
follow the pattern applied to services.


Exceptions are always there but I think they have their own advantages  
if it helps in making an easier reference to a file in this case or  
any thing else.


Vikas

On Dec 30, 2009, at 1:54 PM, Jacques Le Roux wrote:

I was for the  tests-*.xml type of file because it was consistent  
with services defintions files names. But I should say that I don't  
like to have dashes and underscores in names at large (should I say  
that it remains me my 1st and only short experience with Cobol 25  
years ago ). It would be even easier to have camel-cased and an  
upper-case first letter almost everywhere it makes sense (of course  
keeping uppercase for static var and camel-cased and a lower-case  
first letter for methods, and anyway Sun conventions for Java  
languages). Then you don't have to guess about how to write a name.


So +1 for David's proposition.

Jacques

From: "David E Jones" 


Actually, most XML files in OFBiz these days (with just a few  
exceptions) follow a patterns like:


*Services.xml
*Forms.xml
*Screens.xml
*Data.xml
... etc

By that pattern the test files should be *Tests.xml, with the rest  
of the file camel-cased and an upper-case first letter.


-David


On Dec 29, 2009, at 6:44 PM, David E Jones wrote:



Why not camel case them like most other files?

-David


On Dec 29, 2009, at 1:05 PM, Bilgin Ibryam wrote:


Vikas Mayur wrote:

Hi,

The test definition files name is not consistent throughout the  
project. Some of the files name is all lowercase and others have  
camel case pattern.


I think we can follow the pattern used in service definition  
files.


The files under accounting/testdef are

accountingtests.xml
invoicetests.xml
paymenttests.xml
fixedassettests.xml

and would be (after this change)

tests.xml (generic test)
tests_invoice.xml (tests specific to invoices)
tests_payment.xml (tests specific to payments)
tests_fixedasset.xml (tests specific to fixed assets)
etc..

Any thoughts?

Vikas


+ 1 for a naming pattern. The above proposal is fine for me.

Bilgin









smime.p7s
Description: S/MIME cryptographic signature


Re: Naming pattern of test definition files

2009-12-30 Thread Jacques Le Roux
I was for the  tests-*.xml type of file because it was consistent with services defintions files names. But I should say that I 
don't like to have dashes and underscores in names at large (should I say that it remains me my 1st and only short experience with 
Cobol 25 years ago ). It would be even easier to have camel-cased and an upper-case first letter almost everywhere it makes sense 
(of course keeping uppercase for static var and camel-cased and a lower-case first letter for methods, and anyway Sun conventions 
for Java languages). Then you don't have to guess about how to write a name.


So +1 for David's proposition.

Jacques

From: "David E Jones" 


Actually, most XML files in OFBiz these days (with just a few exceptions) 
follow a patterns like:

*Services.xml
*Forms.xml
*Screens.xml
*Data.xml
... etc

By that pattern the test files should be *Tests.xml, with the rest of the file 
camel-cased and an upper-case first letter.

-David


On Dec 29, 2009, at 6:44 PM, David E Jones wrote:



Why not camel case them like most other files?

-David


On Dec 29, 2009, at 1:05 PM, Bilgin Ibryam wrote:


Vikas Mayur wrote:

Hi,

The test definition files name is not consistent throughout the project. Some of the files name is all lowercase and others 
have camel case pattern.


I think we can follow the pattern used in service definition files.

The files under accounting/testdef are

accountingtests.xml
invoicetests.xml
paymenttests.xml
fixedassettests.xml

and would be (after this change)

tests.xml (generic test)
tests_invoice.xml (tests specific to invoices)
tests_payment.xml (tests specific to payments)
tests_fixedasset.xml (tests specific to fixed assets)
etc..

Any thoughts?

Vikas


+ 1 for a naming pattern. The above proposal is fine for me.

Bilgin









buildbot success in ASF Buildbot on ofbiz-trunk

2009-12-30 Thread buildbot
The Buildbot has finished a build of ofbiz-trunk on ASF Buildbot.
Full details are available at:
 http://ci.apache.org/builders/ofbiz-trunk/builds/2218

Buildbot URL: http://ci.apache.org/

Buildslave for this Build: isis_ubuntu

Build Reason: 
Build Source Stamp: [branch ofbiz/trunk] 894563
Blamelist: erwan

Build succeeded!

sincerely,
 -The ASF Buildbot