You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
please drop the use the "|upper" in creation of the href in a table's card element.
When customizing STIX objects for use by the attack-website generation on our internal site, we discovered that the pelican templates for groups (specifically, but elsewhere as well) are inconsistent when creating the cards for groups and other tables.
For the display name, upper case by default may be appropriate for table uniformity of appearance. Unfortunately, forcing the href to use a specific case or perhaps use a different URL can result in an invalid URL.
The resulting directory entry will be generated as /group/MyCustomNotUpperCaseCode, matching the ID in the stix object.
The resulting card for the groups table however, will result in an ref such as:
BLUF:
please drop the use the "|upper" in creation of the href in a table's card element.
When customizing STIX objects for use by the attack-website generation on our internal site, we discovered that the pelican templates for groups (specifically, but elsewhere as well) are inconsistent when creating the cards for groups and other tables.
For the display name, upper case by default may be appropriate for table uniformity of appearance. Unfortunately, forcing the href to use a specific case or perhaps use a different URL can result in an invalid URL.
For example from the enterprise ATTACK:
...
The site generation code will create a directory /groups/G0001.
And the ID field for the card in the group table will look like:
That comes from the group-index.html template in modules/groups/templates, specifically starting at line 47:
Note the "|upper" directive
The problem comes, when the ID case may not natively be upper
for example an intrusion set named "SomeFineGroupName" has an external reference appears as:
The resulting directory entry will be generated as /group/MyCustomNotUpperCaseCode, matching the ID in the stix object.
The resulting card for the groups table however, will result in an ref such as:
The solution is to drop the "|upper" directive in the href, while keeping the label as is if desired.
The text was updated successfully, but these errors were encountered: