OFBiz URL Generation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

OFBiz URL Generation

Adrian Crum-3
I made some recent commits to fix some problems with OFBiz URL generation:

1. URL generation code was duplicated everywhere, with the result that
URL generation was inconsistent. Some duplicates ignored the settings in
the WebSite entity.

2. It was not possible to generate a URL without a HttpServletRequest
object.

3. The servlet path was hard-coded with "/control" in it - making it
impossible to change the servlet path.

I updated some bits of problem code as an example of how to use the new
approach, but I don't have time to fix the entire project. We will need
to fix the remaining problems as we encounter them.

--
Adrian Crum
Sandglass Software
www.sandglass-software.com
Reply | Threaded
Open this post in threaded view
|

Re: OFBiz URL Generation

Jacques Le Roux
Administrator
Thanks for this effort Adrian,

Notably removing the control stuff and allow to use in async services!

Jacques

Adrian Crum wrote:

> I made some recent commits to fix some problems with OFBiz URL generation:
>
> 1. URL generation code was duplicated everywhere, with the result that
> URL generation was inconsistent. Some duplicates ignored the settings in
> the WebSite entity.
>
> 2. It was not possible to generate a URL without a HttpServletRequest
> object.
>
> 3. The servlet path was hard-coded with "/control" in it - making it
> impossible to change the servlet path.
>
> I updated some bits of problem code as an example of how to use the new
> approach, but I don't have time to fix the entire project. We will need
> to fix the remaining problems as we encounter them.