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

Image style picker is not loading on subwikis

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Reproduction steps:

      • create a sub wiki
      • create a new image style in the subwiki
      • create a new page
      • insert an image

      Expected:

      • the new image style is listed at the image configuration step
        Actual:
      • a spinner is displayed and an error is displayed in the console

      Note:
      There is no issue when the sub-wiki does not have any image style.

      Displayed errors:
      Query http://localhost:8080/xwiki/rest/wikis/s1/imageStyles?documentReference=s1:Main.WebHome fail and the following error is displayed

      Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      Uncaught (in promise) 
      Object { readyState: 4, getResponseHeader: getResponseHeader(e), getAllResponseHeaders: getAllResponseHeaders(), setRequestHeader: setRequestHeader(e, t), overrideMimeType: overrideMimeType(e), statusCode: statusCode(e), abort: abort(e), state: state(), always: always(), catch: catch(e), … }
      

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: