-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
TeamCityProvider.BuildProblem method should conform to TeamCity API #2474
Labels
Milestone
Comments
I can have a PR for this issue in the next day or so. Easy adjustment to make. |
kcamp
added a commit
to kcamp/cake
that referenced
this issue
Feb 15, 2019
… API consistency This change will suppress the "identity" token if the value provided is null or empty. This directory resolves the issue of the provider attempting to sanitize a null reference on a value that, per Jetbrains documentation, is not required for the buildProblem service message
kcamp
added a commit
to kcamp/cake
that referenced
this issue
Feb 15, 2019
… API consistency This change will suppress the "identity" token if the value provided is null or empty. This directory resolves the issue of the provider attempting to sanitize a null reference on a value that, per Jetbrains documentation, is not required for the buildProblem service message
kcamp
added a commit
to kcamp/cake
that referenced
this issue
Feb 15, 2019
… API consistency This change will suppress the "identity" token if the value provided is null or empty. This directory resolves the issue of the provider attempting to sanitize a null reference on a value that, per Jetbrains documentation, is not required for the buildProblem service message
Fixed by #2475 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What You Are Seeing?
Cake is failing to successfully write TeamCity
buildProblem
service messagesWhat is Expected?
Cake should validate arguments to methods to conform with documented TeamCity API and either omit them or provide sane defaults as necessary. In my opinion, for this case, it should be an omission rather than an
string.Empty
.Per the docs
If the caller has omitted the
identity
parameter, it should't be passed as aKeyValuePair<string, string>
with anull
value to theWriteServiceMessage
method.What version of Cake are you using?
0.29.0 (but have validated that the problematic code
main
/0.32.1
)Are you running on a 32 or 64 bit system?
x64
What environment are you running on? Windows? Linux? Mac?
Windows
Are you running on a CI Server? If so, which one?
TeamCity
How Did You Get This To Happen? (Steps to Reproduce)
I have this in my error deferral mechanism, being invoked in a custom teardown method.
(I have since amended the script for
problem.Identity ?? ""
to successfully work around this issue.Output Log
The text was updated successfully, but these errors were encountered: