Bug 748439

Summary: TDL exports expose original repo URL to client
Product: Red Hat Satellite Reporter: Jeff Weiss <jweiss>
Component: APIAssignee: Lukas Zapletal <lzap>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: dajohnso, kbidarka, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:02:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 747354    

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>