You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Test::Reporter sends a report from a file that a different perl had previously written, then the object that gets posted to metabase contains the field 'osvers' of the running perl instead of the one of the perl that wrote the report.
As a verification that it works, witness these two queries to the API:
A report before the patch: curl -X GET --header 'Accept: text/html' 'http://api.cpantesters.org/v3/report/6aaa81be-a40e-11ec-8b43-57cb0b534052'
In the output you find osvers=5.4.0-100-generic in the report and "osversion":"5.3.0-2-amd64" as object attribute. These two things should be the same, but here the second one comes from the perl that delivered the report to the API.
A report after my patch: curl -X GET --header 'Accept: text/html' 'http://api.cpantesters.org/v3/report/b08fa7c6-a40f-11ec-bf89-e2e80b534052'
In this output you find osvers=4.15.0-169-generic in the report and "osversion":"4.15.0-169-generic" as object attribute. Here the two strings are identical, osvers does not "leak" from the delivering perl to the delivered report.
I hope you like it,
The text was updated successfully, but these errors were encountered:
When Test::Reporter sends a report from a file that a different perl had previously written, then the object that gets posted to metabase contains the field 'osvers' of the running perl instead of the one of the perl that wrote the report.
I have patched Test::Reporter with this change:
As a verification that it works, witness these two queries to the API:
A report before the patch:
curl -X GET --header 'Accept: text/html' 'http://api.cpantesters.org/v3/report/6aaa81be-a40e-11ec-8b43-57cb0b534052'
In the output you find
osvers=5.4.0-100-generic
in the report and"osversion":"5.3.0-2-amd64"
as object attribute. These two things should be the same, but here the second one comes from the perl that delivered the report to the API.A report after my patch:
curl -X GET --header 'Accept: text/html' 'http://api.cpantesters.org/v3/report/b08fa7c6-a40f-11ec-bf89-e2e80b534052'
In this output you find
osvers=4.15.0-169-generic
in the report and"osversion":"4.15.0-169-generic"
as object attribute. Here the two strings are identical, osvers does not "leak" from the delivering perl to the delivered report.I hope you like it,
The text was updated successfully, but these errors were encountered: