[DuraSpace JIRA] (DS-4585) Incorrect escaping of citation_ meta tags when metadata contains quote characters

0 views
Skip to first unread message

Alan Orth (LYRASIS JIRA)

unread,
Jul 20, 2021, 9:25:01 AM7/20/21
to dspace-...@googlegroups.com
Alan Orth created an issue
 
DSpace / Bug DS-4585
Incorrect escaping of citation_ meta tags when metadata contains quote characters
Issue Type: Bug Bug
Affects Versions: 5.10, 6.3
Assignee: Unassigned
Components: XMLUI
Created: 20/Jul/21 8:24 AM
Labels: mirage mirage2
Priority: Minor Minor
Reporter: Alan Orth

While troubleshooting the incorrect escaping of non-ASCII text in DS-4135 a contributor noticed that DSpace incorrectly escapes text containing quotes in the citation_ meta tags. For example, an item with the following title metadata:

Test "quoted text" example

Results in this formatting in the citation_ meta tags:

{{<meta name="citation_title" content="Test "quoted text" example" />}}

Other special characters might be affected as well, and this may also affect DSpace 7 (I have not tried).

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Alan Orth (LYRASIS JIRA)

unread,
Jul 21, 2021, 11:53:01 AM7/21/21
to dspace-...@googlegroups.com
Alan Orth updated an issue
Change By: Alan Orth
While troubleshooting the incorrect escaping of non-ASCII text in DS-4135 [a contributor noticed|https://github.com/DSpace/DSpace/pull/2317#issuecomment-592481343] that DSpace incorrectly escapes text containing quotes in the citation_ meta tags. For example, an item with the following title metadata:
{quote}Test "quoted text" example
{quote}

Results in this formatting in the citation_ meta tags:

{{
{{ <meta name="citation_title" content="Test "quoted text" example" />}} }}

Other special characters might be affected as well, and this may also affect DSpace 7 (I have not tried).

Toni Prieto (LYRASIS JIRA)

unread,
Jul 21, 2021, 12:41:00 PM7/21/21
to dspace-...@googlegroups.com
Issue was automatically transitioned when Toni Prieto created pull request #3332 in GitHub
Change By: Toni Prieto
Status: Received Code Review Needed
Reply all
Reply to author
Forward
0 new messages