jbake icon indicating copy to clipboard operation
jbake copied to clipboard

Bug: SOURCE_URI and URI are the same

Open OndraZizka opened this issue 6 years ago • 1 comments

Unless I am mistaken, SOURCE_URI and URI are the same:

fileContents.put(String.valueOf(DocumentAttributes.SOURCE_URI), uri);
fileContents.put(Attributes.URI, uri);

So either a. SOURCE_URI should contain the real source URI (i.e. the original markup file path), or b. one of the two should be removed and usages replaced with the other.

From the code the intention seems to be rather a). SOURCE_URI is the "primary key" for the document groups-per-type.

OndraZizka avatar Jul 25 '18 21:07 OndraZizka

Hmm I have a feeling that URI may be altered later on... but I'll have to double check back through the history.

jonbullock avatar Aug 02 '18 12:08 jonbullock