[opencms-dev] CVS HEAD - static export ignores locale

Martin Kuba makub at ics.muni.cz
Fri Jun 11 14:56:01 CEST 2004


Hi,

I am trying to figure out why static export ignores locale.
I have put trace listings into CmsDefaultLocaleHandler.getI18nInfo()
method and I have found, to my surprise, that it si not
called during export, so it has no chance of finding the proper
locale.

To be exact, it is called after I click "export" several times,
but *always* with resourceName="//" and stack traces indicate
that it is from various init methods like:

CmsDefaultLocaleHandler.getI18nInfo(req=null,user=Export,project=Online,resourceName=//)
stack:
  org.opencms.i18n.CmsDefaultLocaleHandler.getI18nInfo:82
  org.opencms.main.OpenCmsCore.initCmsObject:869
  org.opencms.main.OpenCmsCore.initCmsObject:804
  org.opencms.main.OpenCmsCore.initCmsObject:941
  org.opencms.main.OpenCms.initCmsObject:362
  org.opencms.staticexport.CmsLinkManager.exportRequired:311
  org.opencms.staticexport.CmsStaticExportManager.export:474
  org.opencms.main.OpenCmsServlet.handle:154
  org.opencms.main.OpenCmsServlet.invokeHandler:237
  org.opencms.main.OpenCmsServlet.doGet:100
  javax.servlet.http.HttpServlet.service:697

I got lost in the source code so I did not find the place
where the export is actually done, so I cannot provide a fix
right now. But if anybody knows in which point of export
the locale should be resolved, please tell me it.

Thanks

Martin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Supercomputing Center Brno             Martin Kuba
Institute of Computer Science    email: makub at ics.muni.cz
Masaryk University             http://www.ics.muni.cz/~makub/
Botanicka 68a, 60200 Brno, CZ     mobil: +420-603-533775
--------------------------------------------------------------



More information about the opencms-dev mailing list