We have some entities that have periods in the name (i.e. “code”) and it’s causing some unexpected behaviors when we use the Publish App on them.
It’s occurring in a hook I added to the Publish App that copies the file being published into the project’s filesystem (Publish App hook to save file using tk-multi-publish2 templates?). This is what I’m doing:
create_filesystem_structureto create the directories and FilesystemLocation entities
as_template_fieldsto find where to copy the file to
Here’s what I’m seeing:
create_filesystem_structureescapes the period out of the name (e.g.
testCharacter) when creating the dirs and FilesystemLocation entities
as_template_fieldslooks for a FilesystemLocation without escaping the period (e.g.
test.character). It can’t find one and throws an exception: “TankError: Cannot resolve template data for context”