Re: REST API plugin won't build under 18.12.08

2023-11-07 Thread Ernest Hocking
Good morning Jacques

Many thanks for your insights into truck,   22.01 etc.

I've tried the trunk REST-Api and it works (y) so subject to the obvious
question - does migrating from 18.12.08 to trunk require any database
changes or is it as per your last advice on upgrading to 18.12.08 that its
mainly function and security?

If its a simple upgrade then I'll move to trunk from 18.12.08

thanks and kind regards

Ernbest



On Tue, Nov 7, 2023 at 8:22 PM Jacques Le Roux 
wrote:

> Actually the 22.01 branch is eventually not expected to be released . We
> would pass directly to 23.xx, if ever exists. Else we would create a 24.xx
> branch.
>
> For now only the 18.12 branch is official.
>
> HTH
>
> Le 07/11/2023 à 10:56, Ernest Hocking a écrit :
> > Good evening Jacques,
> >
> > Thanks for the response.  When you suggest using the 22.01 branch can I
> ask
> > how close this might be to general availability so that I can
> > decide whether to use that.  I have a friend that would like to try Ofbiz
> > in his factory so I am looking to reassure him that Ofbiz meets all of
> his
> > business requirements.  I
> >
> > thanks and kind regards
> >
> > Ernest
> >
> > On Tue, Nov 7, 2023 at 4:25 PM Jacques Le Roux <
> jacques.le.r...@les7arts.com>
> > wrote:
> >
> >> Hi Ernest,
> >>
> >> Indeed, the REST API plugin has been added after the creation of the
> 18.12
> >> branch : https://issues.apache.org/jira/browse/OFBIZ-11328
> >>
> >> So you will need to use the trunk or the 22.01 branch. We expect to
> create
> >> a 23.xx branch, but that's not quite sure.
> >>
> >> Jacques
> >>
> >> Le 07/11/2023 à 04:50, Ernest Hocking a écrit :
> >>> Good morning everyone
> >>>
> >>> I've tried to install the REST API plugin into 18.,12.08.   Running
> >>> ./gradlew build I get a series of errors similar to:
> >>>
> >>>
> >>
> /home/ernest/ofbiz-18.12.08/plugins/rest-api/src/main/java/org/apache/ofbiz/ws/rs/resources/OFBizServiceResource.java:9
> >>> 3: error: cannot find symbol
> >>>   if (service != null && service.isExport() &&
> >>> UtilValidate.isNotEmpty(service.getAction())) {
> >>> ^
> >>> symbol:   method isExport()
> >>> location: variable service of type ModelService
> >>>
> >>> in OFBizServiceResource.java I see:
> >>>
> >>>ModelService service = context.getModelService(serviceName);
> >>>   if (service != null && service.isExport() &&
> >>> UtilValidate.isNotEmpty(service.getAction())) {
> >>>
> >>> checking the class definition for ModelService  there appears to be no
> >>> method definitions for the isExport(),
> >> getAction(),isAuth(),getName().
> >>> so it appear that the plugin has not provided these additional methods.
> >>>
> >>> Any help in locating a fix would be appreciated
> >>>
> >>> thanks in advance
> >>>
> >>> Ernest
>


Profile completion percentage feature

2023-11-07 Thread Riyaz Ahmed Shaikh
Dear All,

We aim to implement a professional profile completion feature.

The HR assistant will be responsible for creating a Professional record,
and the HR manager will subsequently verify and approve the provided
details. Let's assume that address details contribute 5% to the profile
completion percentage and that verifying these details adds another 5%.
This means that creating an address will increase the profile percentage by
5%, and verifying it will further increase it by 5%.

To manage these percentage values, we are utilizing a SystemProperty entity.

We would appreciate the community's guidance on the most effective approach
to address this requirement. Our goal is to link all of this information to
the Party entity and calculate the profile percentage accordingly.

We eagerly await your valuable insights. Thank you for your
attention to this matter.

Regards


Re: What controls the creation of one or more invoices?

2023-11-07 Thread Emad Radwan
Thank you for the clarification.

On Tue, 7 Nov 2023, 12:12 Nicolas Malin,  wrote:

> Hello Emad
>
> Your invoice is created by default from each shipment did.
>
> So if you order is linked to one shipment, you'll have only one invoice.
>
> Nicolas
>
> Le 15/10/2023 à 10:06, Emad Radwan a écrit :
>
> Hello Community,
>
> Please shed some light on this for a sales order. Let's assume the case
> that the payment will be made using both Cash On Delivery and a Billing
> Account, how will this affect the number of invoices?
>
> Regards,
> Emad
>
>
>
>


Re: Form reuse

2023-11-07 Thread Ernest Hocking
Good evening Nicolas

The intention was to  include the form in a plugin screen:

 
...



  
 

I believe that I might be able to solve this issue:through the use of the
following line to the plugin webapp/..WEB_INF/controller.xml file



along with the view maps (I have not tested to see if they are a necessary
inclusion)




   etc


I've not yet fully tested this due to other priorities


kind regards

Ernest




On Tue, Nov 7, 2023 at 4:36 PM Nicolas Malin 
wrote:

> Hello Ernest,
>
> Can you share me your code,
>
> This would be help to spot the good solution :)
>
> Nicolas
>
> Le 13/10/2023 à 09:34, Ernest Hocking a écrit :
> > Good afternoon everyone,
> >
> > I tried to use the include form directive in a plugin screen ( calling
> the
> > BOM form from the manufacturing application ). However ofbiz complains
> > about missing decorators.  Is there something else I need to specify in
> for
> > example the controller.xml to enable the full context needed to run the
> > form?.  The sim is to avoid the user having to switch applications (from
> > the plugin) to access the functionality
> >
> > If anyone can point me ti an example in the code base that would be a
> great
> > help
> >
> > Thanks and kind regards
> >
> > Ernest
> >
>


Re: What controls the creation of one or more invoices?

2023-11-07 Thread Nicolas Malin

Hello Emad

Your invoice is created by default from each shipment did.

So if you order is linked to one shipment, you'll have only one invoice.

Nicolas

Le 15/10/2023 à 10:06, Emad Radwan a écrit :

Hello Community,

Please shed some light on this for a sales order. Let's assume the case
that the payment will be made using both Cash On Delivery and a Billing
Account, how will this affect the number of invoices?

Regards,
Emad



Re: REST API plugin won't build under 18.12.08

2023-11-07 Thread Jacques Le Roux
Actually the 22.01 branch is eventually not expected to be released . We would pass directly to 23.xx, if ever exists. Else we would create a 24.xx 
branch.


For now only the 18.12 branch is official.

HTH

Le 07/11/2023 à 10:56, Ernest Hocking a écrit :

Good evening Jacques,

Thanks for the response.  When you suggest using the 22.01 branch can I ask
how close this might be to general availability so that I can
decide whether to use that.  I have a friend that would like to try Ofbiz
in his factory so I am looking to reassure him that Ofbiz meets all of his
business requirements.  I

thanks and kind regards

Ernest

On Tue, Nov 7, 2023 at 4:25 PM Jacques Le Roux 
wrote:


Hi Ernest,

Indeed, the REST API plugin has been added after the creation of the 18.12
branch : https://issues.apache.org/jira/browse/OFBIZ-11328

So you will need to use the trunk or the 22.01 branch. We expect to create
a 23.xx branch, but that's not quite sure.

Jacques

Le 07/11/2023 à 04:50, Ernest Hocking a écrit :

Good morning everyone

I've tried to install the REST API plugin into 18.,12.08.   Running
./gradlew build I get a series of errors similar to:



/home/ernest/ofbiz-18.12.08/plugins/rest-api/src/main/java/org/apache/ofbiz/ws/rs/resources/OFBizServiceResource.java:9

3: error: cannot find symbol
  if (service != null && service.isExport() &&
UtilValidate.isNotEmpty(service.getAction())) {
^
symbol:   method isExport()
location: variable service of type ModelService

in OFBizServiceResource.java I see:

   ModelService service = context.getModelService(serviceName);
  if (service != null && service.isExport() &&
UtilValidate.isNotEmpty(service.getAction())) {

checking the class definition for ModelService  there appears to be no
method definitions for the isExport(),

getAction(),isAuth(),getName().

so it appear that the plugin has not provided these additional methods.

Any help in locating a fix would be appreciated

thanks in advance

Ernest


Re: Form reuse

2023-11-07 Thread Deepak Dixit
Hello Ernest,

Form does not need the decorators, decorators required by screens.
Please check the web.xml files to define the decorator location.
e.g mainDecoratorLocation

Thanks & Regards
--
Deepak Dixit
ofbiz.apache.org


On Fri, Oct 13, 2023 at 1:04 PM Ernest Hocking 
wrote:

> Good afternoon everyone,
>
> I tried to use the include form directive in a plugin screen ( calling the
> BOM form from the manufacturing application ). However ofbiz complains
> about missing decorators.  Is there something else I need to specify in for
> example the controller.xml to enable the full context needed to run the
> form?.  The sim is to avoid the user having to switch applications (from
> the plugin) to access the functionality
>
> If anyone can point me ti an example in the code base that would be a great
> help
>
> Thanks and kind regards
>
> Ernest
>


Re: REST API plugin won't build under 18.12.08

2023-11-07 Thread Ernest Hocking
Good evening Jacques,

Thanks for the response.  When you suggest using the 22.01 branch can I ask
how close this might be to general availability so that I can
decide whether to use that.  I have a friend that would like to try Ofbiz
in his factory so I am looking to reassure him that Ofbiz meets all of his
business requirements.  I

thanks and kind regards

Ernest

On Tue, Nov 7, 2023 at 4:25 PM Jacques Le Roux 
wrote:

> Hi Ernest,
>
> Indeed, the REST API plugin has been added after the creation of the 18.12
> branch : https://issues.apache.org/jira/browse/OFBIZ-11328
>
> So you will need to use the trunk or the 22.01 branch. We expect to create
> a 23.xx branch, but that's not quite sure.
>
> Jacques
>
> Le 07/11/2023 à 04:50, Ernest Hocking a écrit :
> > Good morning everyone
> >
> > I've tried to install the REST API plugin into 18.,12.08.   Running
> > ./gradlew build I get a series of errors similar to:
> >
> >
> /home/ernest/ofbiz-18.12.08/plugins/rest-api/src/main/java/org/apache/ofbiz/ws/rs/resources/OFBizServiceResource.java:9
> > 3: error: cannot find symbol
> >  if (service != null && service.isExport() &&
> > UtilValidate.isNotEmpty(service.getAction())) {
> >^
> >symbol:   method isExport()
> >location: variable service of type ModelService
> >
> > in OFBizServiceResource.java I see:
> >
> >   ModelService service = context.getModelService(serviceName);
> >  if (service != null && service.isExport() &&
> > UtilValidate.isNotEmpty(service.getAction())) {
> >
> > checking the class definition for ModelService  there appears to be no
> > method definitions for the isExport(),
> getAction(),isAuth(),getName().
> >
> > so it appear that the plugin has not provided these additional methods.
> >
> > Any help in locating a fix would be appreciated
> >
> > thanks in advance
> >
> > Ernest


CVE-2023-46819: Apache OFBiz: Execution of Solr plugin queries without authentication

2023-11-07 Thread Jacques Le Roux
Severity: moderate

Affected versions:

- Apache OFBiz before 18.12.09

Description:

Missing Authentication in Apache Software Foundation Apache OFBiz when using 
the Solr plugin.
This issue affects Apache OFBiz: before 18.12.09. 

Users are recommended to upgrade to version 18.12.09

Credit:

Anonymous by demand (finder)

References:

https://ofbiz.apache.org/download.html
https://ofbiz.apache.org/security.html
https://ofbiz.apache.org/release-notes-18.12.09.html
https://ofbiz.apache.org/
https://www.cve.org/CVERecord?id=CVE-2023-46819



Re: Form reuse

2023-11-07 Thread Nicolas Malin

Hello Ernest,

Can you share me your code,

This would be help to spot the good solution :)

Nicolas

Le 13/10/2023 à 09:34, Ernest Hocking a écrit :

Good afternoon everyone,

I tried to use the include form directive in a plugin screen ( calling the
BOM form from the manufacturing application ). However ofbiz complains
about missing decorators.  Is there something else I need to specify in for
example the controller.xml to enable the full context needed to run the
form?.  The sim is to avoid the user having to switch applications (from
the plugin) to access the functionality

If anyone can point me ti an example in the code base that would be a great
help

Thanks and kind regards

Ernest



Re: REST API plugin won't build under 18.12.08

2023-11-07 Thread Jacques Le Roux

Hi Ernest,

Indeed, the REST API plugin has been added after the creation of the 18.12 
branch : https://issues.apache.org/jira/browse/OFBIZ-11328

So you will need to use the trunk or the 22.01 branch. We expect to create a 
23.xx branch, but that's not quite sure.

Jacques

Le 07/11/2023 à 04:50, Ernest Hocking a écrit :

Good morning everyone

I've tried to install the REST API plugin into 18.,12.08.   Running
./gradlew build I get a series of errors similar to:

/home/ernest/ofbiz-18.12.08/plugins/rest-api/src/main/java/org/apache/ofbiz/ws/rs/resources/OFBizServiceResource.java:9
3: error: cannot find symbol
 if (service != null && service.isExport() &&
UtilValidate.isNotEmpty(service.getAction())) {
   ^
   symbol:   method isExport()
   location: variable service of type ModelService

in OFBizServiceResource.java I see:

  ModelService service = context.getModelService(serviceName);
 if (service != null && service.isExport() &&
UtilValidate.isNotEmpty(service.getAction())) {

checking the class definition for ModelService  there appears to be no
method definitions for the isExport(), getAction(),isAuth(),getName().

so it appear that the plugin has not provided these additional methods.

Any help in locating a fix would be appreciated

thanks in advance

Ernest

Re: Small report from ASF Conference

2023-11-07 Thread Nicolas Malin

Hello Nicola,

Thanks a lot for your feedback.

From Bratislava, we currently share at Néréide to organize the travel. 
We hope to see you face to face :) .


Nicolas


Le 12/10/2023 à 20:01, Nicola Mazzoni a écrit :

Hi OFBiz users,
I'm returning from Halifax, where the Apache "community over code" 
conference just ended.
Some negative notes, compared to last year I think there was less 
participants. One of the causes is probably political, given that many 
Indian citizens have had problems reaching Canada for the reasons we 
know.
However, the atmosphere is always very familiar and pleasant, it is 
the third Apachecon for me and I can only confirm that it is a very 
enriching experience from a human, cultural and not just strictly 
technological point of view.
The speeches were mainly focused on a limited group of projects, so 
only a small part of the more than 300 Apache projects were 
"represented". To put it very simply: the focus was on big data. This 
year there was also visibility for a business-related project (and not 
just frameworks for other developers), specifically Fineract which 
received many talks and a fair amount of interest. I think that OFBiz 
and Fineract are among the few Apache projects not aimed at developers 
but "concretely" at business users.
As a result, it was no surprise to me to find that almost none of the 
participants I spoke to were familiar with OFBiz; many were unaware of 
what an ERP was, being focused on developments of another nature.
In any case, it is an experience that I recommend everyone to have, 
even if you cannot have direct feedback on your business. However, it 
is an experience that I hope to repeat. Even though I worked on 
ERP/business software and not "frameworks" or "big data", I had the 
opportunity to learn about new projects and understand the trends of 
certain technologies. This certainly helps me to "see from above" and 
to have a different approach to certain problems that I encounter in 
my professional life. Sorry if my English is poor, but it seemed right 
to me to give a little feedback to the OFBiz community as I am the 
only OFBiz committer present (excluding my colleague Giulio Speri).


I hope to meet many of you in Bratislava for the 2024 "community over 
code" EU conference.


Best

Nicola