mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-26 19:05:13 +00:00
Deployed cca547eb with MkDocs version: 1.6.1
This commit is contained in:
@@ -4566,10 +4566,10 @@ an HTTP caller would be remote code execution. You configure post-scripts only i
|
||||
</div>
|
||||
</div>
|
||||
<h3 id="post-apidownloadjobsjob_idretry"><code>POST /api/download/jobs/{job_id}/retry</code><a class="headerlink" href="#post-apidownloadjobsjob_idretry" title="Permanent link">¶</a></h3>
|
||||
<p>Enqueue a <strong>new</strong> job that reuses a terminal job's service, title, and parameters. The service allowlist and parameter gates are re-checked. Returns <code>202</code> with the new job's ID.</p>
|
||||
<p>Enqueue a <strong>new</strong> job from the request that made a terminal job. The request goes through the same checks as a new submission: the service allowlist, the parameter checks and the download gates. A parameter that the request did not send takes the server default of the time of the retry. Returns <code>202</code> with the new job's ID.</p>
|
||||
<div class="admonition warning">
|
||||
<p class="admonition-title">Retry reuses the original, unredacted parameters</p>
|
||||
<p>A retry replays the finished job's stored parameters exactly as the original client submitted them, including any secrets such as <code>credential</code>/<code>credentials</code>. It does not use the redacted <code>parameters</code> view that <code>GET /api/download/jobs</code> and <code>GET /api/history</code> give. This is deliberate: it lets a retried job reproduce a credentialed download that the redacted job record alone never could. The API masks those credentials everywhere else. But anyone who can retry a job can operate it again with the original credentials.</p>
|
||||
<p>A retry sends again the parameters that the original client submitted, including any secrets such as <code>credential</code>/<code>credentials</code>. It does not use the redacted <code>parameters</code> view that <code>GET /api/download/jobs</code> and <code>GET /api/history</code> give. This is deliberate: it lets a retried job reproduce a credentialed download that the redacted job record alone never could. The API masks those credentials everywhere else. But anyone who can retry a job can operate it again with the original credentials.</p>
|
||||
</div>
|
||||
<div class="tabbed-set tabbed-alternate" data-tabs="11:1"><input checked="checked" id="__tabbed_11_1" name="__tabbed_11" type="radio" /><div class="tabbed-labels"><label for="__tabbed_11_1">Response <code>202</code></label></div>
|
||||
<div class="tabbed-content">
|
||||
@@ -4613,6 +4613,11 @@ an HTTP caller would be remote code execution. You configure post-scripts only i
|
||||
<td>Service is no longer allowed.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>400</code></td>
|
||||
<td><code>INVALID_PARAMETERS</code></td>
|
||||
<td>A parameter no longer passes the checks, for example an <code>output_dir</code> outside a moved downloads directory.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><code>403</code></td>
|
||||
<td><code>FORBIDDEN</code></td>
|
||||
<td>A gated parameter is no longer permitted.</td>
|
||||
|
||||
@@ -2809,9 +2809,13 @@ ID with <code>202</code>.</p>
|
||||
<li>You can retry only terminal jobs. A retry of a <code>queued</code> or <code>downloading</code> job returns
|
||||
<code>409</code> with error code <code>CONFLICT</code>.</li>
|
||||
<li>A missing job returns <code>404</code> (<code>JOB_NOT_FOUND</code>).</li>
|
||||
<li>The server examines the service allowlist and any download gates again for the new
|
||||
job, exactly as for the original submission. Thus the server can reject a retry with
|
||||
<code>INVALID_SERVICE</code> or <code>FORBIDDEN</code> if permissions changed.</li>
|
||||
<li>The server sends the original request through the same checks as a new submission:
|
||||
the service allowlist, the parameter checks and the download gates. A retry that no
|
||||
longer passes gets the same error as a new submission, for example
|
||||
<code>INVALID_SERVICE</code>, <code>INVALID_PARAMETERS</code> or <code>FORBIDDEN</code> after a config change.</li>
|
||||
<li>Each parameter that the original request did not send takes the server default of
|
||||
the time of the retry, from <code>serve:</code> and <code>services.<TAG>.dl</code>. A job for a
|
||||
<code>remote</code> server takes no local service defaults.</li>
|
||||
</ul>
|
||||
<div class="language-json highlight"><span class="filename">202 Accepted, a fresh job</span><pre><span></span><code><span id="__span-6-1"><a id="__codelineno-6-1" name="__codelineno-6-1" href="#__codelineno-6-1"></a><span class="p">{</span>
|
||||
</span><span id="__span-6-2"><a id="__codelineno-6-2" name="__codelineno-6-2" href="#__codelineno-6-2"></a><span class="w"> </span><span class="nt">"job_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"c2f7d8ef-7e1b-5a3a-ae2f-4b3c5d6e7f80"</span><span class="p">,</span>
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user