OneIdentity / IdentityManager.Imx

HTML5 source code for Identity Manager web apps
Other
31 stars 121 forks source link

Identity Manager 9.1 - qer-app-portal attestation TypeError #68

Closed Alixchau closed 1 year ago

Alixchau commented 1 year ago

Hi Team, We have a Type Error when implementing app portal in the attestation function. Please find below for more information.

Versions Version: IdentityManager.Imx-91 Application: qer-app-portal Library and Plugin used: qbm, qer, att

Describe the Bug: From Attestation menu click the pending attestation submenu, and toggle the 'Show attestation cases to be approved by chief approval team', then the TypeError will show up: 'TypeError. Cannot read properties of undefined(reading 'ColumnName')

Screenshot 2023-03-17 143045 Screenshot 2023-03-17 143050

Other inforamtion:

  1. There are data comes back from backend, you may see the data object in Preview tab.
  2. We tried to locate the root of bug and looks like there's undefined property in getData function in attestation-decision.component.ts (see image below) MicrosoftTeams-image (1)

Thanks for you help!

ppslde commented 1 year ago

Hi Alix,

are there any code changes you made? If yes, can you please share them?

Thanks Regards

Alixchau commented 1 year ago

Hi Team, There were no code changes made. We only compiled the project and deploy it to our server. Thank you.

ppslde commented 1 year ago

Hi Alix,

ok. In which kind of setup are you trying to run your built att module, an IIS hosted api server or a local server via the imxclient tool? Can you please describe what you have done to create and deploy the built modules/apps to your api server?

Thank you

Alixchau commented 1 year ago

HI ppslde,

We ran into this same error both in Development mode and production mode.

Versions used Version: IdentityManager.Imx-91 (downloaded from git) Application: qer-app-portal Library and Plugin used: qbm, qer, att

Steps for development mode We set up a local API Server using imxclient tool. Then ran qbm, qer and att using below command from package.json: npm run build:watch qbm npm run build:watch qer npm run build:watch:dynamic att npm run start qer-app-portal After logged in, we navigate to the attestation page and toggle the pending attestation button, the TypeError shows up.

Steps for Prodcution mode We generated build file for the libraries, plugins and app-portal by below command from package.json: npm run build:lib qbm npm run build:lib qer npm run build:lib att npm run build:app qer-app-portal Then we copy the the build files to IIS API server and rename the files with prefix "Html_" After logged in, we navigate to the attestation page and toggle the pending attestation button, the TypeError shows up.

Thank you

ppslde commented 1 year ago

Hi Alix,

sorry for the delay. I tried the steps you provided here on my end and I do not get this issue on the clean repo.

ppslde commented 1 year ago

Closing the issue. Behaviour could not be recreated with the information.