[RTFACT-20920] Artifactory CRAN indexing bug Created: 20/Dec/19  Updated: 20/Feb/20

Status: Open
Project: Artifactory Binary Repository
Component/s: CRAN
Affects Version/s: 6.13.1
Fix Version/s: None

Type: Bug Priority: High
Reporter: Vince Allen Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Software version

  • Artifactory 6.13.1 rev 61301900

Steps to reproduce

  1. Create new local CRAN repo
  2. Deploy https://cran.r-project.org/src/contrib/Archive/desc/desc_1.0.0.tar.gz
    Selecting package and selecting CRAN Info tab gives
    • Incorrect name "description" (DESCRIPTION file inside tarball says "desc")
    • Correct version (1.0.0)
  1. Deploy https://cran.r-project.org/src/contrib/desc_1.2.0.tar.gz
    Selecting package and selecting CRAN Info tab gives
    • Correct name "desc"
    • Incorrect version 1.0.0 (DESCRIPTION file inside tarball says "1.2.0")

Contents of PACKAGES index file

 

Package: desc
Version: 1.0.0
Imports: R6
Suggests: testthat, whoami, newpackage
License: MIT + file LICENSE
 
Package: description
Version: 1.0.0
Imports: R6
Suggests: testthat, whoami, newpackage
License: MIT + file LICENSE


 Comments   
Comment by Vince Allen [ 20/Feb/20 ]

It appears that the problem is CRAN indexer looks for DESCRIPTION file
anywhere in package tree rather than in the root.

For example, looking at Rcpp_0.12.19.tar.gz, our Artifactory installation
reports CRAN info as

 

Name: testRcppClass
Version: 0.1
Title: Some Examples using Rcpp Classes and loadModule()

 

Looking through package contents, looks like this info is collected from
inst/unitTests/testRcppClass/DESCRIPTION whereas the root DESCRIPTION
contains correct info

 

Package: Rcpp
Title: Seamless R and C++ Integration
Version: 0.12.19

 

Going back to the desc package that was causing the original issues,
there's also a false DESCRIPTION file under inst/ subdirectory. Removing
it and repackaging desc causes Artifactory to index the right info (even with +
symbol in the License field)

Generated at Wed Apr 08 09:31:08 UTC 2020 using Jira 8.5.3#805003-sha1:b4933e02eaff29a49114274fe59e1f99d9d963d7.