Problem/Motivation

The metadata appender is enabled and using entity reference to get the title from the node to add as metadata to the pdf document attached. Unfortunately our title includes slashes and after the metadata is added it is stripped from the metadata.

Steps to reproduce

For a node with the metadata appender enabled, have a title that includes slashes like 3/4/5 and save, it will save as 345 instead.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sunny-lee created an issue. See original summary.

j-barnes’s picture

Assigned: Unassigned » j-barnes
j-barnes’s picture

Nice catch, it looks like we are stripping out way too many characters when we don't need to. Instead of trying to remove the "unsafe" characters I think it's best to just escape the few that PostScript actually cares about. I'll add a merge request to fix this.

j-barnes’s picture

Version: 1.0.0-beta5 » 1.0.x-dev

j-barnes’s picture

@sunny-lee - If you could take a look, this should now preserve characters.

j-barnes’s picture

Status: Active » Needs review
sunny-lee’s picture

Status: Needs review » Reviewed & tested by the community

Looks good! Tried with various content types and it works! Previously ids would have the slashes and ampersands stripped out but this fix works and after resave, fixes the issue.

  • j-barnes committed 58a52b06 on 1.0.x
    Issue #3537885 by j-barnes, sunny-lee: Metadata appender is stripping...
j-barnes’s picture

Status: Reviewed & tested by the community » Needs review

Thanks for testing!

j-barnes’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.