Project

General

Profile

Actions

Task #2735

open

Parsing output from script will fail, result in operation error in IdM

Added by Roman Kučera over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
03/26/2021
Due date:
% Done:

0%

Estimated time:
Owner:

Description

SEVERE: Malformed \uxxxx encoding.
java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at java.base/java.util.Properties.loadConvert(Properties.java:675)
        at java.base/java.util.Properties.load0(Properties.java:452)
        at java.base/java.util.Properties.load(Properties.java:404)
        at org.identityconnectors.common.StringUtil.toProperties(StringUtil.java:356)
        at net.tirasa.connid.bundles.cmd.methods.CmdExec.waitFor(CmdExec.java:135)
        at net.tirasa.connid.bundles.cmd.methods.CmdCreate.execCreateCmd(CmdCreate.java:50)
        at net.tirasa.connid.bundles.cmd.CmdConnector.createWinrm(CmdConnector.java:232)
        at net.tirasa.connid.bundles.cmd.CmdConnector.create(CmdConnector.java:132)
        at org.identityconnectors.framework.impl.api.local.operations.CreateImpl.create(CreateImpl.java:107)
        at jdk.internal.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:98)
        at com.sun.proxy.$Proxy11.create(Unknown Source)
        at jdk.internal.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.identityconnectors.framework.impl.api.local.operations.ThreadClassLoaderManagerProxy.invoke(ThreadClassLoaderManagerProxy.java:96)
        at com.sun.proxy.$Proxy11.create(Unknown Source)
        at jdk.internal.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.identityconnectors.framework.impl.api.DelegatingTimeoutProxy.invoke(DelegatingTimeoutProxy.java:99)
        at com.sun.proxy.$Proxy11.create(Unknown Source)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at org.identityconnectors.framework.server.impl.ConnectionProcessor.processOperationRequest(ConnectionProcessor.java:272)
        at org.identityconnectors.framework.server.impl.ConnectionProcessor.processRequest(ConnectionProcessor.java:175)
        at org.identityconnectors.framework.server.impl.ConnectionProcessor.run(ConnectionProcessor.java:119)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)

This happened in use-case, when we are creating home directories. When the path contains \u the create operation will fail. In our case we have some path \\path\to\homedir\users\
The issues is that during create operation when connector is trying to parse the output there is only one \ instead of \\.
Search script is returning escaped value so search operation is working correctly.

It would be nice to make fix in connector when the script ended with result code 0 to log this as warning.

It's not that big issue, because retry provisioning search the account correctly so the operation is removed from queue after few minutes.

No data to display

Actions

Also available in: Atom PDF