<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Indeed there is... my search foo must be lacking because I
didn't find that. The patch still applies, almost (there's one
line that fails, but it's really easy to merge). It's missing a
bunch in that patch to make it work though. It needs interface
information added in
Bugzilla::WebService::Server::REST::Resources.</p>
<p>I have a new patch in the works... I have create and update
working (you would use update to rename it or toggle is_active),
but get and remove aren't working. I uploaded the WIP to the bug.<br>
</p>
<div class="moz-cite-prefix">On 3/5/25 8:24 PM, David Wright wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DS7P223MB05010DC161512C45D1FEE635EECA2@DS7P223MB0501.NAMP223.PROD.OUTLOOK.COM">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style>@font-face
{font-family:PMingLiU;
panose-1:2 1 6 1 0 1 1 1 1 1;}@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Aptos;}@font-face
{font-family:"\@PMingLiU";
panose-1:2 1 6 1 0 1 1 1 1 1;}@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#467886;
text-decoration:underline;}pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
font-size:10.0pt;
font-family:"Courier New";}span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}div.WordSection1
{page:WordSection1;}ol
{margin-bottom:0in;}ul
{margin-bottom:0in;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hi
David,
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Looks
like there are folks who have already expressed the need for
this API. In fact someone already has a patch out for this
feature request but it has not been merged -
<a
href="https://bugzilla.mozilla.org/show_bug.cgi?id=777047"
moz-do-not-send="true">
https://bugzilla.mozilla.org/show_bug.cgi?id=777047 </a>,
it’s been there since version 4.2 for over 10 years.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Any
idea if this could get implemented or a patch provided for
this fix?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks,
<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Dave<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<div>
<div
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
David Miller <a class="moz-txt-link-rfc2396E" href="mailto:justdave@bugzilla.org"><justdave@bugzilla.org></a>
<br>
<b>Sent:</b> Wednesday, March 5, 2025 2:50 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:support-list@bugzilla.org">support-list@bugzilla.org</a>; David Wright
<a class="moz-txt-link-rfc2396E" href="mailto:David_Wright@phoenix.com"><David_Wright@phoenix.com></a><br>
<b>Subject:</b> Re: Use Bugzilla REST API to Insert
Existing Product "Version"<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="color:black;background:#F1C40F">[Caution, this
message was sent from an external sender.]</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p>OK, I finally got a chance to play around with this,
and... you're correct, it's not implemented. The API is
indeed there under the hood, but it's not exposed in the
REST interface. This is probably an oversight and we should
fix it. But I started looking into what would be needed to
fix it, and discovered that perhaps maybe it wasn't
implemented because "version" already exists as an object
type in the REST API, and it's the version of Bugzilla, not
a product version. Maybe we can make it be "versions" with
an "s"? Or maybe we just overload it and you get the
Bugzilla version if you don't specify anything after it and
there's no payload, and if there's a payload then we treat
it like a product version object?
<o:p></o:p></p>
<p>Anyhow, I filed this at <a
href="https://bugzilla.mozilla.org/show_bug.cgi?id=1951899"
moz-do-not-send="true" class="moz-txt-link-freetext">
https://bugzilla.mozilla.org/show_bug.cgi?id=1951899</a><o:p></o:p></p>
<div>
<p class="MsoNormal">On 3/3/25 7:08 PM, Dave Miller wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">I'm planning to experiment with this
later tonight and see what I can figure out. Sorry for
the delay, I was buried with end-of-the-month paperwork
and haven't had a chance to play yet.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On March 3, 2025 5:33:56 PM EST,
David Wright <a
href="mailto:David_Wright@phoenix.com"
moz-do-not-send="true">
<David_Wright@phoenix.com></a> wrote:<o:p></o:p></p>
</div>
<blockquote
style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hello,
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Any
update for our follow up questions?
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks
in advance for the support!
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks,
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">David
Wright</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Phoenix
Technologies</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<div>
<div
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
David Wright
<br>
<b>Sent:</b> Tuesday, February 25, 2025 10:47 AM<br>
<b>To:</b> 'Dave Miller' <a
href="mailto:justdave@bugzilla.org"
moz-do-not-send="true"><justdave@bugzilla.org></a>;
<a href="mailto:support-list@bugzilla.org"
moz-do-not-send="true"
class="moz-txt-link-freetext">support-list@bugzilla.org</a><br>
<b>Subject:</b> RE: Use Bugzilla REST API to
Insert Existing Product "Version"</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks
Dave, that is helpful. Glad to hear it should be
possible.
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Some
follow up questions from our dev working on this
issue:</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">I
need more information to proceed. The link
referenced in your comment redirects to what appears
to be a code snippet of a Perl script working on the
backend, but I need info on how to work with the
product out of band through REST API calls.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">I’ve
listed some of the questions below that I wasn't
able to find an answer to in the docs:</span><o:p></o:p></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoNormal" style="mso-list:l1 level1 lfo3"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">What
is the REST URI to call to work with versioning
information for a particular product?</span><o:p></o:p></li>
<li class="MsoNormal" style="mso-list:l1 level1 lfo3"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">What
is the payload to be passed when making the call
for the below items?</span><o:p></o:p></li>
</ol>
<ol style="margin-top:0in" start="2" type="1">
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoNormal"
style="mso-list:l1 level2 lfo3"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Adding
a new version to a product</span><o:p></o:p></li>
<li class="MsoNormal"
style="mso-list:l1 level2 lfo3"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Updating
an existing version in a product</span><o:p></o:p></li>
<li class="MsoNormal"
style="mso-list:l1 level2 lfo3"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Deleting
an existing version from the product</span><o:p></o:p></li>
</ol>
</ol>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thanks,
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Dave</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<div>
<div
style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">
support-list <<a
href="mailto:support-list-bounces@bugzilla.org" moz-do-not-send="true"
class="moz-txt-link-freetext">support-list-bounces@bugzilla.org</a>>
<b>On Behalf Of </b>Dave Miller<br>
<b>Sent:</b> Monday, February 24, 2025 4:55 PM<br>
<b>To:</b> <a
href="mailto:support-list@bugzilla.org"
moz-do-not-send="true"
class="moz-txt-link-freetext">support-list@bugzilla.org</a><br>
<b>Subject:</b> Re: Use Bugzilla REST API to
Insert Existing Product "Version"</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p><span style="color:black;background:#F1C40F">[Caution,
this message was sent from an external sender.]</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">A version is its own object
type. <br>
<br>
<a
href="https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/Version.html"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/Version.html</a><br>
<br>
You can create a new version there by passing the
version name and the ID of the product to attach
it to.<br>
<br>
The function docs look like they're missing, but
it's in the example at the top.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">On February 24, 2025 7:11:03
PM EST, David Wright <<a
href="mailto:David_Wright@phoenix.com"
moz-do-not-send="true"
class="moz-txt-link-freetext">David_Wright@phoenix.com</a>>
wrote:<o:p></o:p></p>
</div>
<blockquote
style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">Hello,
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif">We
are trying to Automate insertion of a Product
“Version” instead of having to do it manually.
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><br>
According to the Bugzilla API manual, this
does not seem to be an option for UPDATING,
only CREATING a new product.
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a
href="https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/WebService/Product.html"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://bugzilla.readthedocs.io/en/latest/integrating/api/Bugzilla/WebService/Product.html</a></span><o:p></o:p></p>
<table class="MsoNormalTable" border="0"
cellspacing="0" cellpadding="0" width="700"
style="width:525.0pt">
<tbody>
<tr>
<td valign="top"
style="padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">But
maybe we are looking at the wrong
documenation or misunderstanding.
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">Is
there any way we can use the Bugzilla
REST API to insert a new version for
an
<b>existing</b> product?</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">This
is the current manual process:</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"> </span><o:p></o:p></p>
<p class="MsoNormal"><img border="0"
width="921" height="66"
style="width:9.5937in;height:.6875in"
id="_x0000_i1027"
src="cid:image001.png@01DB86D6.B2CD1670" moz-do-not-send="true"><o:p></o:p></p>
</td>
</tr>
<tr>
<td valign="top"
style="padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"> </span><o:p></o:p></p>
</td>
</tr>
<tr style="height:7.5pt">
<td valign="top"
style="padding:1.5pt 1.5pt 1.5pt 1.5pt;height:7.5pt">
<p class="MsoNormal"><img border="0"
width="342" height="117"
style="width:3.5625in;height:1.2187in"
id="_x0000_i1026"
src="cid:image002.png@01DB86D6.B2CD1670" moz-do-not-send="true"><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">Thanks,
</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">David
Wright</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual">Phoenix
Technologies</span><o:p></o:p></p>
</td>
</tr>
<tr>
<td valign="top"
style="padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"> </span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-ligatures:standardcontextual"> </span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</blockquote>
</div>
</div>
</blockquote>
</div>
<div>
<div>
<p class="MsoNormal">-- <br>
Sent from my Android phone with K-9 Mail. Please
excuse my brevity.<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>support-list mailing list<o:p></o:p></pre>
<pre><a href="mailto:support-list@bugzilla.org"
moz-do-not-send="true" class="moz-txt-link-freetext">support-list@bugzilla.org</a><o:p></o:p></pre>
<pre><a
href="https://lists.bugzilla.org/listinfo/support-list"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.bugzilla.org/listinfo/support-list</a><o:p></o:p></pre>
</blockquote>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
</div>
<div>
<div>
<table class="MsoNormalTable" border="0" cellpadding="0"
width="300" style="width:225.0pt">
<tbody>
<tr>
<td width="106"
style="width:79.5pt;padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><img border="0" width="100"
height="100"
style="width:1.0416in;height:1.0416in"
id="Picture_x0020_1"
src="cid:part1.DfLBCvRB.QN3nNEX0@bugzilla.org"
alt="[Bugzilla Logo]" class=""><o:p></o:p></p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<div>
<p class="MsoNormal"><strong><span
style="font-size:13.0pt;font-family:"Aptos",sans-serif">Dave
Miller</span></strong><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Project Leader<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><strong><span
style="font-family:"Aptos",sans-serif">Bugzilla Project</span></strong><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a
href="https://bugzilla.org" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://bugzilla.org/</a><o:p></o:p></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
support-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:support-list@bugzilla.org">support-list@bugzilla.org</a>
<a class="moz-txt-link-freetext" href="https://lists.bugzilla.org/listinfo/support-list">https://lists.bugzilla.org/listinfo/support-list</a>
</pre>
</blockquote>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
</div>
<div class="moz-signature"
signature-switch-id="b0b24bd1-735c-4a02-9f5d-e2b2e9b4f40d">
<div>
<table style="width: 300px; border-style: none;"
cellpadding="3px" border="0px">
<tbody>
<tr>
<td style="width: 106px;"><img alt="[Bugzilla Logo]"
src="cid:part2.FlbD66YQ.sMoiiHQv@bugzilla.org"
width="100" height="100"></td>
<td>
<div><strong><span style="font-size: 13pt;">Dave Miller</span></strong></div>
<div>Project Leader</div>
<div><strong>Bugzilla Project</strong></div>
<div><a href="https://bugzilla.org/"
rel="nofollow
noopener noreferrer" target="_blank"
class="moz-txt-link-freetext">https://bugzilla.org/</a></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</body>
</html>