https://pulp.plan.io/https://pulp.plan.io/favicon.ico2015-02-28T22:03:45ZPulpPulp - Issue #407: Needs better error handling when the specified relative-url is already used for another repohttps://pulp.plan.io/issues/407?journal_id=7612015-02-28T22:03:45Zamacdona@redhat.comaustin@redhat.com
<ul></ul><p>Some strange behavior here. It looks like the repo does not claim the namespace of its relative-url, but it does claims the namespace of its repo-id.</p>
<p>± pulp-admin rpm repo create --repo-id=zoo2 --relative-url=zoo \<br>
--feed=<a href="http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/" class="external">http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/</a><br>
Successfully created repository [zoo2]</p>
<p>No problem creating a second repo with the same url</p>
<p>± pulp-admin rpm repo create --repo-id=zoo3 --relative-url=zoo \<br>
--feed=<a href="http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/" class="external">http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/</a><br>
Successfully created repository [zoo3]</p>
<p>The issue shows up here because the the relative-url has already been claimed by the repo-id of the first.</p>
<p>± pulp-admin rpm repo create --repo-id=anything --relative-url=zoo2 \<br>
--feed=<a href="http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/" class="external">http://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/</a><br>
The server indicated one or more values were incorrect. The server provided the<br>
following error message:</p>
<pre><code>Pulp exception occurred: PulpDataException
</code></pre>
<p>More information can be found in the client log file ~/.pulp/admin.log.</p>
<p>+ This comment was cloned from <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1079511#c1" class="external">Bugzilla #1079511 comment 1</a> +</p> Pulp - Issue #407: Needs better error handling when the specified relative-url is already used for another repohttps://pulp.plan.io/issues/407?journal_id=7622015-02-28T22:03:46Zamacdona@redhat.comaustin@redhat.com
<ul></ul><p><a href="https://github.com/pulp/pulp/pull/1297" class="external">https://github.com/pulp/pulp/pull/1297</a></p>
<p>+ This comment was cloned from <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1079511#c2" class="external">Bugzilla #1079511 comment 2</a> +</p> Pulp - Issue #407: Needs better error handling when the specified relative-url is already used for another repohttps://pulp.plan.io/issues/407?journal_id=7632015-02-28T22:03:47Zcduryeecduryee@redhat.com
<ul></ul><p>fixed in pulp 2.6.0-0.2.beta</p>
<p>+ This comment was cloned from <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1079511#c3" class="external">Bugzilla #1079511 comment 3</a> +</p> Pulp - Issue #407: Needs better error handling when the specified relative-url is already used for another repohttps://pulp.plan.io/issues/407?journal_id=7642015-02-28T22:03:48Zigulina@redhat.comigulina@redhat.com
<ul></ul><blockquote>
<blockquote>
<p>rpm -qa pulp-server</p>
</blockquote>
</blockquote>
<p>pulp-server-2.6.0-0.2.beta.el6.noarch</p>
<blockquote>
<blockquote>
<p>pulp-admin rpm repo create --repo-id repo1 --relative-url repo --feed <a href="https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/horse-0.22-2.noarch.rpm" class="external">https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/horse-0.22-2.noarch.rpm</a></p>
</blockquote>
</blockquote>
<p>Successfully created repository [repo1]</p>
<blockquote>
<blockquote>
<p>pulp-admin rpm repo create --repo-id repo2 --relative-url repo --feed <a href="https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/zebra-0.1-2.noarch.rpm" class="external">https://repos.fedorapeople.org/repos/pulp/pulp/demo_repos/zoo/zebra-0.1-2.noarch.rpm</a></p>
</blockquote>
</blockquote>
<p>The server indicated one or more values were incorrect. The server provided the<br>
following error message:</p>
<pre><code>Relative URL [repo] for repository [repo2] conflicts with existing relative
URL [repo] for repository [repo1]
</code></pre>
<p>More information can be found in the client log file ~/.pulp/admin.log.</p>
<p>+ This comment was cloned from <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1079511#c4" class="external">Bugzilla #1079511 comment 4</a> +</p> Pulp - Issue #407: Needs better error handling when the specified relative-url is already used for another repohttps://pulp.plan.io/issues/407?journal_id=26172015-03-20T19:14:59Zbmbouterbmbouter@redhat.com
<ul><li><strong>Severity</strong> changed from <i>Medium</i> to <i>2. Medium</i></li></ul> Pulp - Issue #407: Needs better error handling when the specified relative-url is already used for another repohttps://pulp.plan.io/issues/407?journal_id=35902015-04-23T16:25:05Zrbarlow
<ul><li><strong>Status</strong> changed from <i>6</i> to <i>CLOSED - CURRENTRELEASE</i></li></ul> Pulp - Issue #407: Needs better error handling when the specified relative-url is already used for another repohttps://pulp.plan.io/issues/407?journal_id=404362019-04-15T21:13:29Zbmbouterbmbouter@redhat.com
<ul><li><strong>Tags</strong> <i>Pulp 2</i> added</li></ul>