community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Created] (COMDEV-156) Calculation of projectJsonFilename is flawed
Date Tue, 15 Sep 2015 01:25:46 GMT
Sebb created COMDEV-156:

             Summary: Calculation of projectJsonFilename is flawed
                 Key: COMDEV-156
             Project: Community Development
          Issue Type: Bug
          Components: Projects New
            Reporter: Sebb

The script calculates the projectJsonFilename variable from the DOAP homepage
entry.  If the homepage has path components after then the last one is used
and appended to the tlp.
This process is not guaranteed to result in a unique file name. For example the entry
<homepage rdf:resource=""/>
is converted to
It so happens that the other Commons DOAPs don't include the index.html so they are unique,
but this is just chance. There are other ways that this approach can fail as there is no standard
convention for project homepage URLs within a TLP website (nor should one be enforced).

It would be a lot simpler (and more reliable) to use the DOAP name field.
Trim the leading Apache, convert to lower case, remove spaces and sanitiize illegal filename

There may still be duplicate names, but that is an issue for the project to resolve as that
is not allowed (and the code can report duplicates).

This message was sent by Atlassian JIRA

View raw message