Quantcast
Channel: Public Key Infrastructure PowerShell module
Viewing all articles
Browse latest Browse all 729

Closed Unassigned: Get-RevokedRequest Bug [57]

$
0
0
Found another small bug - well, actually not even a bug, more of a... inpractical thing.

If I call Get-RevokedRequest I get back objects ob type PKI.CertificateServices.DB.RequestRow.
These objects have two noteproperties called "Request.RevokedWhen" and "Request.RevokedReason"
which are not really handy to use in Powershell.

If I try to call them with something like this, Powershell returns nothing:

```
$a = Get-RevokedRequest -CertificationAuthority $ca
$a[0].Request.RevokedWhen
```

I am not completly sure why, but my best guess is it tries to find some kind of "sub-property" of Request (thanks to the point), doesn't find one and returns noting.

So to be able to call these properties I have to use a construction like this:

```
$temp = "Request.RevokedWhen"
$a[0].$temp
```

As I said, it's just a bit inconvenient - but as these are noteproperties - maybe you could change the name to something like "Request_RevokedWhen" to avoid causing Powershell to misinterprete this?

Thanks again for the good work!
Raphael



Comments: fixed in v3.0, docs are updated accordingly.

Viewing all articles
Browse latest Browse all 729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>