Bug 745751 - Package download_url doesn't match the actual location after setting relative_path for a repo
Summary: Package download_url doesn't match the actual location after setting relative...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: user-experience
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 30
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-13 09:58 UTC by Ivan Necas
Modified: 2013-09-09 16:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
pulp-0.0.237-4.el6.noarch grinder-0.0.120-1.el6.noarch python-gofer-0.50-1.el6.noarch
Last Closed: 2012-02-24 20:13:48 UTC
Embargoed:


Attachments (Terms of Use)

Description Ivan Necas 2011-10-13 09:58:47 UTC
Description of problem:
When creating a repo with setting relative_path, download_url in api/repositories/repo/packages/ doesn't return correct location of the package

Version-Release number of selected component (if applicable):
pulp 0.0.237-1

How reproducible:
Always

Steps to Reproduce:
1. create a repo with relative path
2. synchronize the repo
3. get the download_url for a package in a repo through the API
4. curl that url
  
Actual results:
404 - file not found

Expected results:
Get the requested package corresponding to the relative_path

Comment 1 Pradeep Kilambi 2011-11-03 20:07:14 UTC
fixed! commit d8824f33c8a374227472715dca0b547f8ab68e10

Comment 2 Jay Dobies 2011-11-09 20:32:10 UTC
Fixed in build 0.247.

Comment 3 Preethi Thomas 2011-11-10 21:13:18 UTC
verified
[root@preethi ~]#  pulp-admin repo create --id=f16 --preserve_metadata --feed=http://download.devel.redhat.com/released/F-16/GOLD/Fedora/x86_64/os/ --relativepath=/f16/

[root@preethi ~]# pulp-admin repo sync --id=f16 -FSync for repository f16 started
Sync: Finished
0/3113 new items downloaded
3113/3113 existing items processed

Item Details: 
Tree Files: 6/6
RPMs: 3107/3107

[root@preethi ~]# curl -k -u admin:admin -X GET https://localhost/pulp/api/repositories/f16/packages/ |more
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0[{"size": 19328, "license": "GPLv2+", "vendor": "Fedora Project", "name": "bodhi
-client", "repo_defined": true, "buildhost": "x86-18.phx2.fedoraproject.org", "c
hecksum": {"sha256": "bb649a92d1fdf213cefccec6cc9f06d8713472e7790b2d2ba4d18d8989
47a79d"}, "requires": ["python-fedora", "python-kitchen", "yum", "python-simplej
son", "koji"], "download_url": "https://preethi.usersys.redhat.com//pulp/repos/f
16/bodhi-client-0.8.0-1.fc16.noarch.rpm", "filename": "bodhi-client-0.8.0-1.fc16
.noarch.rpm", "epoch": "0", "version": "0.8.0", "provides": ["bodhi-client"], "_
ns": "packages", "release": "1.fc16", "group": "Applications/Internet", "_id": "
60ec0aaf-6ba7-456c-b24c-0af04391af19", "arch": "noarch", "id": "60ec0aaf-6ba7-45
6c-b24c-0af04391af19", "description": "Client tools for interacting with bodhi"}
, {"size": 162404, "license": "GPL+",

Comment 4 Preethi Thomas 2012-02-24 20:13:48 UTC
Pulp v1.0 is released
Closed Current Release.


Note You need to log in before you can comment on or make changes to this bug.