Skip to content

Converted dotProject sites: History, Links, Resources, Project Designer, Reports and SmartSearch aren't registered as installed #535

Open

Description

@caseysoftware

After converting a dotProject database (convertDotProject()), the modules table has no rows for history, links, resources, projectdesigner, reports and smartsearch. A fresh install registers all six as core modules (001), but dp_to_w2p1/dp_to_w2p2 never add them, so on a converted site they only appear once an admin installs each one from System Admin > View Modules.

Their tables are mostly missing too, which is expected (each module's setup.php creates them on install), and migrations 006, 012, 060 and 072 now skip links and the other optional tables when they don't exist (dev-5.0.0-migration).

The exception is History: migration 056 creates the history table if it's missing, so a converted site has the table but no module row. Installing History then runs modules/history/setup.php's install() against a table that already exists, which may fail. That hasn't been checked.

To decide / fix

  • Either register these modules during the conversion (as 001 does for a fresh install), creating their tables there, or leave them uninstalled and make sure each setup.php install() works when its table already exists (History at least).
  • Check what the menus and project/task views do on a converted site where these modules aren't registered.

How it was found
Converting dotProject 2.0.1, 2.0.4 and 2.1.8 databases on MySQL 8.0.46 and comparing the result with a fresh install: the modules rows above are missing on all of them, along with the links, resources, resource_tasks and phpGACL *_seq tables.

Severity: medium. Effort: low.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions