Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-11548

Failing to find the Office Server install location on a 64bit Linux (Fedora) system

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 6.4-milestone-1
    • Office
    • None
    • Unknown
    • N/A
    • N/A

    Description

      On a Fedora 20 64bit OS, the /usr/lib folder does not contain the libreoffice folder, as the

      org.artofsolving.jodconverter.office.OfficeUtils.getDefaultOfficeHome()

      method is wrongfully assuming. That method is what we use in DefaultOfficeServerConfiguration and, as a result, we are unable to determine the default location of the office server on a 64 bit machine.

      I have reported the issue upstream: https://code.google.com/p/jodconverter/issues/detail?id=119 but it does not look like that project is not moving anywhere anytime soon.

      Here is a similar thread on a remotely-related issue about /usr/lib vs /usr/lib64.

      The problem is upstream, in the jodconverter dependency, but we can still fix it our selves by looking into more locations than jodconverter does, this time considering 64bit linux systems. Funnily enough, they did consider Windows 64 bit systems, but left out Linux.

      We need to improve the default locations detection algorithm, until it is fixed upstream.

      I see we already use a custom build of jodconverter that fixes some problems, we might as well add yet another fix.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              enygma Eduard Moraru
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: