Hi Jean-Yves,

For this kind of thing (static content out of OFBiz domain), I suggest to 
rather use the ofbizContentUrl concept. You can find several examples in code.

It allows to to centralize static content. By default OOTB in OFBiz that is in themes/common-theme/ component. In an images webapp that's under there, mounted as /images, see hemes/common-theme/ofbiz-component.xml for details. But you can define any static content prefix you want in the url.properties file (content.url.prefix* properties) or in the website record, see https://demo-trunk.ofbiz.apache.org/content/control/EditWebSite?webSiteId=WebStore

Please let us know if that corresponds to your need. In general it's better to centralize static content. Else we will need to address OFBIZ-11343. If not please close it as "Won't do"

Thanks

Jacques

Le 10/02/2020 à 13:52, Jean-Yves Landry a écrit :
Hi Jacques,

I did make the test and rebuild the entire demo.

I just did modify 1 image in the demo  (WG-1111) using the same URL of Apache

It still produce the same problem: 
https://192.168.202.246:8443/ecommerce/http%3A%2F%2F192.168.202.246%2Fbibb.png

Bien a vous

Jean-Yves


On 2/10/20 12:45 AM, Jacques Le Roux wrote:
Hi Jean-Yves,

Before creating a Jira https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Contributors+Best+Practices, did you try to set throwRequestHandlerExceptionOnMissingLocalRequest to N in requestHandler.properties?

HTH

Jacques

Le 10/02/2020 à 09:06, Pierre Smits a écrit :
Hi Jean-Ives,

Please raise a ticket in our JIRA.

Best regards,

Pierre Smits
*Proud* *contributor* (but without privileges)* of* Apache OFBiz 
<https://ofbiz.apache.org/>, since 2008

*Apache Trafodion <https://trafodion.apache.org>, Vice President*
*Apache Directory <https://directory.apache.org>, PMC Member*
Apache Incubator <https://incubator.apache.org>, committer
Apache Steve <https://steve.apache.org>, committer


On Mon, Feb 10, 2020 at 5:55 AM Jean-Yves Landry <[email protected] 
<mailto:[email protected]>> wrote:

    hi,

    If my product picture exist on an external server, referencing them in catalogue seems to work 
but not in "econseo" or "ecommerce".

    Instead of accessing http://192.168.202.246/bibb.png...

    it does the following URL: 
https://192.168.202.246:8443/ecomseo/product/http%3A%2F%2F192.168.202.246%2Fbibb.png


Reply via email to