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

Potential error log caused by not existing user during R140401000XWIKI15460 migration

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      The myxwiki.org upgrade produce tons of the following

      2022-06-29 09:48:00,732 [XWiki initialization] WARN  o.m.j.m.s.ErrorPacket          - Error: 1049-42000: Unknown database 'pom' 
      2022-06-29 09:48:00,732 [XWiki initialization] WARN  o.h.e.j.s.SqlExceptionHelper   - SQL Error: 1049, SQLState: 42000 
      2022-06-29 09:48:00,732 [XWiki initialization] ERROR o.h.e.j.s.SqlExceptionHelper   - (conn=1392092) Unknown database 'pom' 
      2022-06-29 09:48:00,732 [XWiki initialization] WARN  o.x.u.i.d.DocumentUserManager  - Failed to check if document [pom:XWiki.HengleyUpsewly] holds an XWiki user or not. Considering it's not the case. Root error: [SQLSyntaxErrorException: (conn=1392092) Unknown database 'pom'] 
      

      The reason is that a lot of user filter preferences were containing references to (spam) users from the wiki "pom" which does not exist anymore.

      It seems to be missing a check on wiki existence somewhere (probably in DocumentUserManager#exists, it does not make any sense to produce a warning for such a case, it should simply return false).

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: