DeployHubProject / DeployHub-Pro

DeployHub Pro Pipeline Status Project
https://www.openmakesoftware.com/application-release-automation-for-continuous-delivery/
Other
11 stars 4 forks source link

not able to add/update/modify objects in GLOBAL domain #346

Closed piyush94 closed 2 years ago

piyush94 commented 2 years ago

Tried with multiple admin users. Getting this error for each object: image

Error in logs:

Mon Sep 13 07:36:33 2021: ApiException caught e=Permission Denied
Mon Sep 13 07:36:33 2021: {"success":false,"error":"Permission Denied"}

Tag: ui-skin-v9.0.0.3201-g6fabef3

Tried in browsers, Chrome, Edge and Firefox

sbtaylor15 commented 2 years ago

Do you have any data in Available Groups in the Access Control box? Looks like the access control is empty.

piyush94 commented 2 years ago

At Domains level, Access Control didn't had Administrators group for some reason. Added that from the DB (highlighted row). image

After that i was able to add/update objects at global level with users that are in the Administrators group.

Before (Firefox): image

After (Chrome): image

Also in Firefox Domains animation/view is not appearing. Error in console: image

sbtaylor15 commented 2 years ago

We were not able to recreate the issue under Firefox, but we did make an update that may resolve the errors. Fix is in quay.io/deployhub/deployhub-pro:ui-skin-v9.0.0.3204-g071632c

piyush94 commented 2 years ago

Thanks but, the view is still not populating in Firefox. In Firefox, I think the issue is that there is not Content-Type header in the response, so Firefox is treating json as xml. It can be resolved by adding Content-Type: application/json header in the response.

image

e.g. Responses missing this header,

  1. /dmadminweb/DomainDetails
  2. /dmadminweb/TableFilter
sbtaylor15 commented 2 years ago

Change the parent class to set the content-type to json/application. Fixed the above transactions plus the /dmadminweb/Login. Update in quay.io/deployhub/deployhub-pro:ui-skin-v9.0.0.3209-g012e876