Skip to content

Commit

Permalink
Fix: Clean ilegal characters in package_name
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Ruiz Saiz <[email protected]>
  • Loading branch information
dormstd committed Oct 5, 2018
1 parent c8eaa31 commit 2cb7cc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void onTrigger(final ProcessContext context, final ProcessSession session

//Get the filename from the attributes, split by . and get the first part to remove the file extension
//ToDo: Handle errors...
String filename = flowFile.getAttribute(CoreAttributes.FILENAME.key()).split("\\.")[0];
String filename = flowFile.getAttribute(CoreAttributes.FILENAME.key()).split("\\.")[0].replaceAll("_","-");

String url = context.getProperty(CKAN_url).getValue();
final String apiKey = context.getProperty(api_key).getValue();
Expand Down

0 comments on commit 2cb7cc7

Please sign in to comment.