Re: REST API plugin won't build under 18.12.08

2023-11-08 Thread Jacques Le Roux

Hi Ernest,

It should not be a problem. You can checkhttps://s.apache.org/x4pk8 Jacques

Le 08/11/2023 à 05:42, Ernest Hocking a écrit :

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

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
>


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: 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


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

REST API plugin won't build under 18.12.08

2023-11-06 Thread Ernest Hocking
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: rest-api Plugin

2022-03-25 Thread Johan Cronje
Hi Michael,

Thank you for the advice.
I was able to back port the rest-api and got it working on r18.12.

Kind Regards
Johan

On Fri, 25 Mar 2022 at 10:23, Michael Brohl  wrote:
>
> Hi Johan,
>
> If you want to be based on a stable branch, I would switch over to the
> release branch r22.01 and the plugins release r22.01 which contains the
> rest-api. It has no release yet but I guess it will have it's first
> release during this year.
>
> trunk is not advised as the base for production.
>
> The migration from r18.12 to r22.01 should not be too hard, other than
> 9.04 to 18.12.
>
> Note that 22.01 will be the first release which requires OpenJDK 11
> (maybe 17, depending of what we decide on base of
> https://lists.apache.org/thread/8cpz4dh7zoznp4mx2xxv35hns4j8mvf0 )
>
> Best regards,
>
> Michael Brohl
>
> ecomify GmbH - www.ecomify.de
>
>
> Am 24.03.22 um 19:16 schrieb Johan Cronje:
> > Hi Michael,
> >
> > Thank you for the advice.
> > Would you rather advise that I change my source branches over to the
> > trunk, is the trunk based on the r18.12?
> > Or should I bring the changes from the trunk over to my r18.12 branch
> > I have cloned the r18.12 to a local branch as it was the newest at the
> > time and have been migrating a custom build from 9.04.
> >
> > Kind Regards
> > Johan
> >
> > On Thu, 24 Mar 2022 at 18:04, Michael Brohl  
> > wrote:
> >> Hi Johan,
> >>
> >> for r18.12 you would have to make some modifications in the framework /
> >> service engine to make it compatible.
> >>
> >> Best regards,
> >>
> >> Michael Brohl
> >>
> >> ecomify GmbH - www.ecomify.de
> >>
> >>
> >> Am 24.03.22 um 11:19 schrieb Johan Cronje:
> >>> Good day,
> >>>
> >>> I would just like to find out if the rest-api Plugin under trunk
> >>> plugin branch is compatible with the release18.02 framework branch as
> >>> it is not part of the release18.02 Plugin branch
> >>>
> >>> Kind Regards,
> >>> Johan


Re: rest-api Plugin

2022-03-25 Thread Michael Brohl

Hi Johan,

If you want to be based on a stable branch, I would switch over to the 
release branch r22.01 and the plugins release r22.01 which contains the 
rest-api. It has no release yet but I guess it will have it's first 
release during this year.


trunk is not advised as the base for production.

The migration from r18.12 to r22.01 should not be too hard, other than 
9.04 to 18.12.


Note that 22.01 will be the first release which requires OpenJDK 11 
(maybe 17, depending of what we decide on base of 
https://lists.apache.org/thread/8cpz4dh7zoznp4mx2xxv35hns4j8mvf0 )


Best regards,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 24.03.22 um 19:16 schrieb Johan Cronje:

Hi Michael,

Thank you for the advice.
Would you rather advise that I change my source branches over to the
trunk, is the trunk based on the r18.12?
Or should I bring the changes from the trunk over to my r18.12 branch
I have cloned the r18.12 to a local branch as it was the newest at the
time and have been migrating a custom build from 9.04.

Kind Regards
Johan

On Thu, 24 Mar 2022 at 18:04, Michael Brohl  wrote:

Hi Johan,

for r18.12 you would have to make some modifications in the framework /
service engine to make it compatible.

Best regards,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 24.03.22 um 11:19 schrieb Johan Cronje:

Good day,

I would just like to find out if the rest-api Plugin under trunk
plugin branch is compatible with the release18.02 framework branch as
it is not part of the release18.02 Plugin branch

Kind Regards,
Johan


Re: rest-api Plugin

2022-03-24 Thread Johan Cronje
Hi Michael,

Thank you for the advice.
Would you rather advise that I change my source branches over to the
trunk, is the trunk based on the r18.12?
Or should I bring the changes from the trunk over to my r18.12 branch
I have cloned the r18.12 to a local branch as it was the newest at the
time and have been migrating a custom build from 9.04.

Kind Regards
Johan

On Thu, 24 Mar 2022 at 18:04, Michael Brohl  wrote:
>
> Hi Johan,
>
> for r18.12 you would have to make some modifications in the framework /
> service engine to make it compatible.
>
> Best regards,
>
> Michael Brohl
>
> ecomify GmbH - www.ecomify.de
>
>
> Am 24.03.22 um 11:19 schrieb Johan Cronje:
> > Good day,
> >
> > I would just like to find out if the rest-api Plugin under trunk
> > plugin branch is compatible with the release18.02 framework branch as
> > it is not part of the release18.02 Plugin branch
> >
> > Kind Regards,
> > Johan


Re: rest-api Plugin

2022-03-24 Thread Michael Brohl

Hi Johan,

for r18.12 you would have to make some modifications in the framework / 
service engine to make it compatible.


Best regards,

Michael Brohl

ecomify GmbH - www.ecomify.de


Am 24.03.22 um 11:19 schrieb Johan Cronje:

Good day,

I would just like to find out if the rest-api Plugin under trunk
plugin branch is compatible with the release18.02 framework branch as
it is not part of the release18.02 Plugin branch

Kind Regards,
Johan


rest-api Plugin

2022-03-24 Thread Johan Cronje
Good day,

I would just like to find out if the rest-api Plugin under trunk
plugin branch is compatible with the release18.02 framework branch as
it is not part of the release18.02 Plugin branch

Kind Regards,
Johan