baramundisoftware / PS-bConnect

Powershell module for baramundi Connect (bConnect), the REST-API of the baramundi Management Suite
https://www.baramundi.com/en/management-suite/interfaces/
MIT License
26 stars 14 forks source link

Edit-bConnectApplication fails if depenedency exist #64

Open djpitris opened 2 years ago

djpitris commented 2 years ago

Prior to placing the issue, please check following: (fill out each checkbox with an X once done)

Describe the bug Edit-bConnectApplication fails when the Application has dependencies in Baramundi with: Invoke-bConnectPatch : 'ValidForOS' must contain at least one valid element

To Reproduce Steps to reproduce the behavior:

  1. Get-bConnectApplication someappWITHDEPENDENCY
  2. Edit whatever, eg. I edit someappWITHDEPENDENCY.version
  3. Edit-bConnectApplication someappWITHDEPENDENCY

Expected behavior Apps without dependencies work fine. I assume there is some parsing error, but I'm not that skilled to pin point it...

System information | My operating system | Win10 | | baramundi Server Version | 2021R2 | | PS-bConnect Version | 21.1.0.0 |

BTW Thank you SOOOO much for the bConnect, its such a time saver. This is just a nice-to-have I can workaround it by creating a "dummy" \ per-requsite application which contain the dependencies.

T0biii commented 2 years ago

is already fixed with this commit: 961b3788660e55c26c0a0a4ba9087436159c0ef0

$_body = ConvertTo-Json $Data -Depth 5

but we got still this Problem: #48