Users with Domain on userid cannot access to Insights "JasperIllegal character in path" error.

book

Article ID: 144532

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

When user have a domain in userid like domaninname\userid we get an error when access to Insights:

Error Creating User In JasperIllegal character in path at index 85: HTTP://GES-SDM-DBI:8080/jasperserver-pro/rest_v2/organizations/casm_insights/users/domainnameuserid

Cause

The problem happens only with some users with domainname\bxxxxx , domainname\jxxxxx as \b and \v are metacharacters on Javascript.

Additionally, the backslash is removed in the user format on Jasper and users originallly as  domainname\userid,  in Jasper are seen as  domainnameuserid.

Environment

Release : 17.2

Component : JASPERSOFT REPORTS FOR SERVICE MANAGEMENT

Jasper 7.1.1


Resolution

Defect DE52715.

While defect get fixed, workaround the issue customizing launch_jasper.htmpl form:

Replace :

var userid = $cst.userid;

by

var userid = '$cst.userid';

With this we retain special characters in userid.

and we need remove any backslash on userid due it is a illegal character on Jasper.

userid = userid.replace(/\\/g, '');

With this modification the issue is fixed.