Project

Profile

Help

Issue #2754

Updated by daviddavis almost 7 years ago

Specifically, the fields Size, Summary, and Group appear to be missing. 

 Steps: 

 <pre> 
 $ wget ftp://195.220.108.108/linux/fedora-secondary/development/rawhide/Everything/aarch64/os/Packages/v/vim-enhanced-8.0.596-1.fc27.aarch64.rpm 
 $ rpm -qip vim-enhanced-8.0.596-1.fc27.aarch64.rpm 
 ... 
 Group         : Applications/Editors 
 Size          : 3028853 
 ... 
 Summary       : A version of the VIM editor which includes recent enhancements 
 ... 
 $ pulp-admin rpm repo uploads rpm --file vim-enhanced-8.0.596-1.fc27.aarch64.rpm --repo-id zoo 
 $ phttp https://localhost/pulp/api/v2/repositories/zoo/search/units/ criteria:='{"fields": {"unit": ["name", "summary", "size", "group"]}, "type_ids": ["rpm"], "filters": {"unit": {"name" pulp-admin rpm repo content rpm --repo-id zoo --str-eq="name=vim-enhanced" --fields="name,summary,size,group" 
 : "vim-enhanced"}}}'                                                                                                                                                                                              
 [ 
     { 
         "_id": { 
             "$oid": "5915aac507425414f84ec276" 
         }, 
         "created": "2017-05-12T12:29:57Z", 
         "metadata": { 
             "_content_type_id": "rpm", 
             "_id": "939240d9-2071-451d-8749-c10cac057f31", 
             "name": "vim-enhanced" 
         }, 
         "repo_id": "zoo", 
         "unit_id": "939240d9-2071-451d-8749-c10cac057f31", 
         "unit_type_id": "rpm", 
         "updated": "2017-05-12T12:29:57Z" 
     } Name:           vim-enhanced 
 ] 
 </pre> 

 I checked the database too and the fields aren't there.  

 Since this is also a Katello issue, we should notify them if they need to be setting particular metadata fields on their import upload request too.

Back