Skip to content

Commit

Permalink
Fixed typo with attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwallen authored and juanluisrp committed Aug 7, 2020
1 parent 691414e commit 3068983
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public MetadataResource patchResourceStatus(final ServiceContext context, final

protected String getFilename(final String metadataUuid, final String resourceId) {
// It's not always clear when we get a resourceId or a filename
String prefix = metadataUuid + "/attachements/";
String prefix = metadataUuid + "/attachments/";
if (resourceId.startsWith(prefix)) {
// It was a resourceId
return resourceId.substring(prefix.length());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class MapServersApi {

@ApiOperation(
value = "Get mapservers",
notes = "Mapservers are used by the catalog to publish record attachements " +
notes = "Mapservers are used by the catalog to publish record attachments " +
"(eg. ZIP file with shape) or record associated resources (eg. " +
"database table, file on the local network) in a remote mapserver like " +
"GeoServer or MapServer. The catalog communicate with the mapserver using " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO
@ApiOperation(value = "Create a new record", notes = "Create a record from a template or by copying an existing record."
+ "Return the UUID of the newly created record. Existing links in the "
+ "source record are preserved, this means that the new record may "
+ "contains link to the source attachements. They need to be manually "
+ "contains link to the source attachments. They need to be manually "
+ "updated after creation.", nickname = "create")
@RequestMapping(value = "/duplicate", method = { RequestMethod.PUT }, produces = {
MediaType.APPLICATION_JSON_VALUE }, consumes = { MediaType.APPLICATION_JSON_VALUE })
Expand Down Expand Up @@ -620,7 +620,7 @@ public SimpleMetadataProcessingReport insertOgcMapContextFile(
throw new IllegalArgumentException(String.format("A context as XML or a remote URL MUST be provided."));
}
if (StringUtils.isEmpty(xml) && StringUtils.isEmpty(filename)) {
throw new IllegalArgumentException(String.format("A context as XML will be saved as a record attachement. "
throw new IllegalArgumentException(String.format("A context as XML will be saved as a record attachment. "
+ "You MUST provide a filename in this case."));
}

Expand Down

0 comments on commit 3068983

Please sign in to comment.