Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Report" used for name when Name attribute missing in XML configuration #62

Open
mheptinstall opened this issue Sep 15, 2020 · 0 comments

Comments

@mheptinstall
Copy link

When using an XML file for the configuration, if the Name attribute is not specified on the Report element "Report" is used as the name when deploying.

$r = [Report]::new($report.name, $report.fileName, [System.Convert]::ToBoolean($report.inheritParentSecurity), [System.Convert]::ToBoolean($report.hidden))

I am not sure where the "Report" value is coming from as I've the options below and Name is still being set to "Report":

  • Replacing $report.name with $report.Attributes["Name"].Value
  • Replacing $report.name with $null

The ValidateNotNullOrEmpty validation attribute on the class doesn't generate an error as the value is neither null or empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant