Fixed problem in Helsinki Patch 9a

Problem

Short description

Description

Steps to reproduce

Service Portal

PRB878189

In Service Portal, catalog item variables are read-only for non-roled
users

When the variables in a catalog item have write_roles configured, and a non-roled
user tries to create a request using the catalog item, all of the variables are
read-only in Service Portal. However, the variables in the catalog item in the
normal catalog UI are not read-only.

The Catalog desktop UI checks create_roles when ordering, and it later checks
write_roles in the variable editor. However, Service Portal checks write_roles in
both places.

The fix for this PRB resulted in an API change to the getCatalogItem method. For
details, refer to KB0621849.

As an admin user, navigate to Maintain Items.

Open the Sales Laptop catalog item.

From the related list, open the Additional software
requirements variable.

Add the Write roles field to the form if is not already
there.

Add the admin role to the variable (so that the admin is required to write to
the variable).

Click Update.

Impersonate an ESS user.

Navigate to the Service Portal.

Search for and view the Sales Laptop catalog item.

Expected behavior: Variables are writable in the normal UI and Service
Portal.

Actual behavior: Variables are read-only in Service Portal. They are
writable only in the normal UI.

Other Helsinki Patch 9a information

Changes were made to the getCatalogItem method in order to support
the same functionality in Service Catalog and Service Catalog in Service Portal.

The getCatalogItem class was changed from
getCatalogItem(String itemID) to getCatalogItem(String
itemID, boolean isOrdering). For details, refer to KB0621849.

Fixes included with Helsinki Patch 9a

* Unless any exceptions are noted, you can safely upgrade to this release version from any
of the versions listed below. These prior versions contain PRB fixes that are also included
with this release. Be sure to upgrade to the latest listed patch that includes all of the
PRB fixes you are interested in.