https://pulp.plan.io/https://pulp.plan.io/favicon.ico2015-11-05T15:32:00ZPulpPulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=68192015-11-05T15:32:00Zjcline@redhat.comjcline@redhat.com
<ul><li><strong>Version</strong> set to <i>Master</i></li></ul> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=68202015-11-05T15:56:58Zamacdona@redhat.comaustin@redhat.com
<ul><li><strong>Tags</strong> <i>Easy Fix</i> added</li></ul><p><a href="https://github.com/pulp/pulp/blob/master/server/pulp/server/webservices/views/repositories.py#L134" class="external">https://github.com/pulp/pulp/blob/master/server/pulp/server/webservices/views/repositories.py#L134</a></p>
<p>This just needs something like:</p>
<pre><code class="python syntaxhl" data-language="python"><span class="k">try</span><span class="p">:</span>
<span class="n">repo_id</span> <span class="o">=</span> <span class="n">repo_data</span><span class="p">[</span><span class="s">'id'</span><span class="p">]</span>
<span class="k">except</span> <span class="nb">KeyError</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">exceptions</span><span class="p">.</span><span class="n">MissingValue</span><span class="p">(</span><span class="s">'id'</span><span class="p">)</span>
<span class="k">except</span> <span class="nb">TypeError</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">exceptions</span><span class="p">.</span><span class="n">InvalidValue</span><span class="p">(</span><span class="s">'id'</span><span class="p">)</span>
</code></pre> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=68572015-11-06T15:37:56Zmhrivnakmhrivnak@redhat.com
<ul><li><strong>Triaged</strong> changed from <i>No</i> to <i>Yes</i></li></ul><p>This is likely an issue on many API endpoints.</p> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=78482016-01-12T20:50:48Zmhrivnakmhrivnak@redhat.com
<ul><li><strong>Status</strong> changed from <i>NEW</i> to <i>ASSIGNED</i></li><li><strong>Assignee</strong> set to <i>ttereshc</i></li></ul> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=78772016-01-14T14:01:06Zttereshcttereshc@redhat.com
<ul><li><strong>Status</strong> changed from <i>ASSIGNED</i> to <i>POST</i></li><li><strong>Platform Release</strong> set to <i>2.8.0</i></li></ul><p><a href="https://github.com/pulp/pulp/pull/2329" class="external">https://github.com/pulp/pulp/pull/2329</a></p> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=79522016-01-18T16:49:39Zttereshcttereshc@redhat.com
<ul><li><strong>Status</strong> changed from <i>POST</i> to <i>MODIFIED</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="1356 - Pulp returns HTTP 500 when a bad request is made during repo creation. closes #1356 https..." href="https://pulp.plan.io/projects/pulp/repository/pulp/revisions/75af2dd1113d47a282911c6a88b47a7f7d193dde">pulp|75af2dd1113d47a282911c6a88b47a7f7d193dde</a>.</p> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=80672016-01-21T19:15:17ZIchimonji10jerebear@protonmail.com
<ul><li><strong>Status</strong> changed from <i>MODIFIED</i> to <i>ASSIGNED</i></li></ul><p>The relevant Pulp Smash tests are failing in Jenkins. The failing tests are <code>test_status_code</code> and <code>test_body_status_code</code> from <a href="http://pulp-smash.readthedocs.org/en/latest/api/pulp_smash.tests.platform.api_v2.test_repository.html#pulp_smash.tests.platform.api_v2.test_repository.CreateFailureTestCase" class="external">pulp_smash.tests.platform.api_v2.test_repository.CreateFailureTestCase</a>. The most recent test run was 11 hours ago.</p> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=80772016-01-22T12:34:49Zttereshcttereshc@redhat.com
<ul></ul><p>Against which version of Pulp are you running tests? I am not able to reproduce this issue on a master.</p> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=82052016-01-26T22:30:44ZIchimonji10jerebear@protonmail.com
<ul><li><strong>Status</strong> changed from <i>ASSIGNED</i> to <i>MODIFIED</i></li></ul><blockquote>
<p>Against which version of Pulp are you running tests? I am not able to reproduce this issue on a master.</p>
</blockquote>
<p>I'm testing against the current master version of Pulp. I'm using both Jenkins and local VMs to verify test results, and this bug was present in both when I last tested it five days ago.</p>
<p>I've re-run the relevant tests, and they now succeed for the master version of Pulp. This issue still affects Pulp 2.7, though I don't really expect a fix for a low-priority issue like this. I don't know why there was a delay before the fix started working. I'll put this issue back in MODIFIED state.</p> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=92282016-02-23T20:55:47Zdkliban@redhat.com
<ul><li><strong>Status</strong> changed from <i>MODIFIED</i> to <i>5</i></li></ul> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=96112016-03-04T19:38:21ZIchimonji10jerebear@protonmail.com
<ul><li><strong>Copied to</strong> <i><a class="issue tracker-1 status-12 priority-6 priority-default closed" href="/issues/1745">Issue #1745</a>: Pulp returns HTTP 500 when a bad request is made during sync schedule creation</i> added</li></ul> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=99832016-03-23T18:13:03Zdkliban@redhat.com
<ul><li><strong>Status</strong> changed from <i>5</i> to <i>CLOSED - CURRENTRELEASE</i></li></ul> Pulp - Issue #1356: Pulp returns HTTP 500 when a bad request is made during repo creation.https://pulp.plan.io/issues/1356?journal_id=394732019-04-15T20:41:38Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>Pulp 2</i> added</li></ul>