Bug 748439 - TDL exports expose original repo URL to client
Summary: TDL exports expose original repo URL to client
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-10-24 13:05 UTC by Jeff Weiss
Modified: 2019-09-26 13:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:02:38 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Jeff Weiss 2011-10-24 13:05:57 UTC
Description of problem:


Version-Release number of selected component (if applicable):
katello-0.1.95-1.git.56.344ea38.el6.x86_64

How reproducible:


Steps to Reproduce:
1.  Create a provider/product/repo
2.  Create a System Template and add the product from step1
3.  Download the template
  
Actual results:
<template>
  <name>test1</name>
  <os>
    <name>Fedora</name>
    <version>14</version>
    <arch>x86_64</arch>
    <install type="url">
      <url>http://repo.fedora.org/f14/os</url>
    </install>
  </os>
  <description/>
  <packages/>
  <repositories>
    <repository name="testrepo-1319208514151">
      <url>
        http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/job/subscription-manager_master/lastSuccessfulBuild/artifact/rpms/x86_64
      </url>
    </repository>
    <repository name="testrepo-1319208651378">
      <url>
        http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/job/subscription-manager_master/lastSuccessfulBuild/artifact/rpms/x86_64
      </url>
    </repository>
  </repositories>
</template>


Expected results:
The <url> in the repository tag should point to the *pulp* repo not the original  upstream repo.

Additional info:

Comment 1 Mike McCune 2011-10-26 15:26:37 UTC
<inecas> it should be commit 2767c33 tag katello-0.1.96-1~8

Comment 2 Kedar Bidarkar 2011-12-15 11:14:01 UTC
original repos no longer exposed.

xmllint --recover --format Dev\ Template-Locker-export-dec13.xml 
<?xml version="1.0" encoding="UTF-8"?>
<template>
  <name>Dev Template</name>
  <os>
    <name>Fedora</name>
    <version>15</version>
    <arch>x86_64</arch>
    <install type="url">
      <url>http://xxxx.redhat.com/pulp/ks/ACME_Corporation/Dev/custom/fedora15/f15/</url>
    </install>
    <rootpw>redhat</rootpw>
  </os>
  <description>Development Template</description>
  <packages>
    <package name="BackupPC"/>
    <package name="createrepo"/>
    <package name="rpm-build"/>
    <package name="@Virtualization"/>
    <package name="@Development Tools"/>
    <package name="@Books and Guides"/>
  </packages>
  <repositories>
    <repository name="f15">
      <url>https://xxxxx.redhat.com/pulp/repos/ACME_Corporation/Dev/custom/fedora15/f15</url>
      <persisted>No</persisted>
      <clientcert>-----BEGIN CERTIFICATE-----

DBfhq6/5Kcq9ic2PkxT+XGJ6PrYVyKev6Xn1TcBqKt24XIJQ6fI6o67I4AKkBrYu
QY05jKAhpH4GD+nX4gnsvfjaJXgxe08dlAdFsVKBG97bGgrc
-----END CERTIFICATE-----
</clientcert>
      <clientkey>-----BEGIN RSA PRIVATE KEY-----

HrKevs4txHMe60qJMdl69eeV5lGwG//K/L8Z6UQ4qWQRZsqammQ3PxgRQ2JE5v3a
dCOFUisV6te1+NweW4d8w54O8CG+Ppwaa0KXK0c1xkAPxFvmLpOHOw==
-----END RSA PRIVATE KEY-----
</clientkey>
    </repository>
  </repositories>
</template>


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