You are browsing the documentation for iTop 3.2 which is not the current version.

Consider browsing to iTop 3.3 documentation

iTop Professional 3.1 to 3.2 Migration Notes

This version of iTop is backward compatible with previous versions,
However read carefully the topics described in this page to ensure a smooth migration of your iTop.

3.2.4 specifics

Security fix : Restrict URP_UserProfile queries to authorized users

Following a security fix, it's no longer possible for users without access to URP_UserProfile class to query its profile with the following code:

$oUser->Get('profile_list'); // returns an empty set if the current user is not explicitly allowed to read URP_UserProfile (Administrator are, User Manager as well)

Instead use one of the following pattern:

UserRight::HasProfile('User Portal'); // To test explicitly if a particular Profile
$aProfiles = UserRight::ListProfile(); // To get the list of Profiles of the current user

Security fix: Disallow protocols by default for POST requests

Following a security fix, default protocols allowed for posts requests performed by iTop (e.g. by webhooks) are : http, https, ftp, ftps and sftp. If you want other protocols to be allowed, please change the value of config parameter 'security.post_requests.allowed_protocols'

Impact on Users

Apart from new stuff described in the What's new, there is no disrupting changes on existing iTop behaviors compare to iTop versions 3.1.x

Before migration

Better not upgrade without Combodo or its partner.
  • We have an audit tool to prevent bad surprises
  • Most Datamodel changes can be smoothly and quickly checked on your particular ITSM Designer license by Combodo
  • A few compatible extension versions must be activated and moved to production before upgrading your iTop

System

There is a new folder “resources” and a new file “app.php” under the iTop root folder. Mind to update your migration / backup scripts if necessary.

PHP version

  • New PHP min version: 8.1.0
  • New PHP max version: 8.3.x

PHP extensions

PHP extension APCu is now strongly recommended, otherwise performances could be slightly degraded.

MySQL / Maria DB version

  • MariaDB min version raised to: 10.6+
  • MySQL min version remains the same: 5.7, but MySQL is no more the recommended choice

Database

Database update operations

N°6619 - Attachment : Make contact_id an AttributeExternalKey instead of AttributeExternalField

Since MySQL 5.6 and MariaDB 10.3.7 this operation should be quick. Here is a non exhaustive list of conditions that could cause the operation to be very slow:
  • alter_algorithm parameter set to “COPY” or “INPLACE”.
  • Table àttachment`built on an older version of MariaDB, and never rebuilt since

For more information, see MariaDB-InnoDB online DDL

The following actions are performed by the Setup, but can be quite slow and not at the right moment for you.
You can run the operation manually before upgrading with the following commands:

SET SESSION alter_algorithm='INSTANT';
ALTER TABLE `attachment` ADD `contact_id` INT(11) DEFAULT 0;
ALTER TABLE `attachment` ADD INDEX `contact_id` (`contact_id`);
If the alter algorithm 'INSTANT' is not supported on the attachment table, the ALTER TABLE statement will fail. You may start again with SET SESSION alter_algorithm='COPY' but the operation will be much slower.

Then fill the contact information with this query:

UPDATE attachment att 
JOIN priv_user us ON att.user_id = us.id 
SET att.contact_id = us.contactid 
WHERE att.contact_id = 0;

Extension / Custom code

As usual some extensions must be upgraded at the same time as your iTop, or after for 4 of them.

If you have developed custom extensions with XML and custom code, check: Developer check-list

Extensions to upgrade

Check for each of your Combodo extensions the 3.2 compatible version that you need to install, before upgrading.

Portal themes

If you created a custom theme for the end-user portal that replaces bootstrap-theme-combodo.scss, you'll need to re-generate it. Otherwise some elements might not display correctly (HTML editor)

Included in iTop

Ensure that all your TriggerOnMention do have a filter defined.
Otherwise upgrading to iTop 3.2.0-2 will fail

XML Datamodel

Profile 117

A new profile “Super User” with id 117 has been added to iTop Community 3.2.1.

  • This profile allows to delegate most iTop Administrator tasks, except the system aspects.
  • Extensions should consider this profile when defining the access rights to the objects/features that they brings.

User Request

The field “Solution” of classes User Request and Incident, now supports HTML.
To revert this datamodel change, add this XML into an extension or ask Combodo to inject it in the Designer for you

    <class id="UserRequest" _delta="if_exists">
      <fields>
        <field id="solution" xsi:type="AttributeText" _delta="if_exists">
          <format  _delta="delete_if_exists"/>
        </field>
      </fields>  
    </class>
        <class id="Incident" _delta="if_exists">
      <fields>
        <field id="solution" xsi:type="AttributeText" _delta="if_exists">
          <format  _delta="delete_if_exists"/>
        </field>
      </fields>  
    </class>

Setup

Configuration file

After Migration

Rename your Triggers

Because of the new unsubscribe mecanism, Trigger “Description” field will be visible to console users as the identifier of a notification that they have received, so that description should explain them, when this trigger is generated (also the might guess based on the trigger type, an explicit text might be easier to catch) and who receives them.

It might be useful to duplicate some of your Triggers and Actions, to separate notification to the ticket agent (1) and notification to people of their team or people linked to the ticket (2)
Thus a user can keep the first trigger and unsubscribe to the second. Otherwise, it's all or nothing…

Connect News

iTop 3.2.0 comes with 3 new actions “Notification by Newsroom”

  • One Notification to persons mentioned in logs automatically linked to all your existing “Trigger (on object mention)” searching for “Person” in the filed “Mentioned filter”

  • One Notification to agent when ticket assigned to be linked with a “Trigger (on entering a state)” on class “User Request” on “state:” assigned

  • One Notification on public log update through the portal to be linked with a “Trigger (when updated from the portal)” and a “Trigger (when updated by mail)” both on class “User Request”

All your “Trigger (on object mention)” triggers have their “Subscription policy” field (field added in 3.2.0), set to the value Force at least one channel (News or Email), because by default we don't want iTop Users to unsubscribe from all channels when their name is mentioned somewhere in an object log.

Remove search Brick

If you don't want the new search brick in the standard portal, remove it by adding those lines in the Designer (for Combodo's customers), or create an iTop extension which does this.

    <module_design id="itop-portal" xsi:type="portal">
      <bricks>
        <brick id="manage-all-tickets-for-portal-user" xsi:type="Combodo\iTop\Portal\Brick\ManageBrick" _delta="delete"/>
        <brick id="search-within-tickets-for-portal-user" xsi:type="Combodo\iTop\Portal\Brick\FilterBrick" _delta="delete"/>
      </bricks>
    </module_design>

X-Content-Type-Options HTTP header and CORB protection

Since iTop 2.7.10 / 3.0.4 / 3.1.2 / 3.2.0, the X-Content-Type-Options HTTP header is sent with the nosniff value. This could trigger CORB protection for certain resources, preventing them from loading (see https://chromium.googlesource.com/chromium/src/+/master/services/network/cross_origin_read_blocking_explainer.md#determining-whether-a-response-is-corb_protected).

To mitigate the issue, sending this HTTP header is disabled on corresponding resources in iTop core.
As some extensions can be impacted, the security.enable_header_xcontent_type_options config parameter can be set to false to prevent the header to be sent.

3_2_0/products/professional/release/migration.txt · Last modified: 2025/03/10 09:48 by 127.0.0.1
Back to top
Contact us