<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:12:18 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[UIIN-321] Instances with non-existing language codes crashes the instance view</title>
                <link>https://folio-org.atlassian.net/browse/UIIN-321</link>
                <project id="10132" key="UIIN">ui-inventory</project>
                    <description>&lt;p&gt;&lt;b&gt;Overview:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Steps to Reproduce:&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Post an Instance to /instance-storage/instances that has a language code that is non-existant, like &quot;mylang&quot;&lt;/li&gt;
	&lt;li&gt;lookup that record in the ui by going to /inventory/view/
{InstanceId}&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;&lt;b&gt;Expected Results:&lt;/b&gt;  &lt;br/&gt;
I am not sure. If the correct language code is needed, then the record should not be added in the first place.  But given the state of the backend,* perhaps a more graceful error message would be a good start*.&lt;/p&gt;


&lt;p&gt;&lt;b&gt;Actual Results:&lt;/b&gt;   &lt;br/&gt;
A UI crash. See attachment.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Additional Information:&lt;/b&gt;  &lt;br/&gt;
This record had been checked towards the JSON schema, before they were posted, but language codes are not part of that. Is there a way to add that so you could do the checks before posting?&lt;/p&gt;

&lt;p&gt;Test data:&lt;br/&gt;
??{&lt;br/&gt;
	&quot;instanceTypeId&quot;: &quot;d02e6f4b-be20-44eb-b500-daa49eef0c3a&quot;,&lt;br/&gt;
	&quot;physicalDescriptions&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;pd1&amp;quot;, &amp;quot;pd2&amp;quot;&amp;#93;&lt;/span&gt;,&lt;br/&gt;
	&quot;source&quot;: &quot;chalmers_dump&quot;,&lt;br/&gt;
	&quot;id&quot;: &quot;8c175ada-0a78-4799-a7e7-fff8d803b90f&quot;,&lt;br/&gt;
	&quot;notes&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;note1&amp;quot;, &amp;quot;note2&amp;quot;&amp;#93;&lt;/span&gt;,&lt;br/&gt;
	&quot;contributors&quot;: [&lt;/p&gt;
{
		&quot;primary&quot;: true,
		&quot;contributorNameTypeId&quot;: &quot;2b94c631-fca9-a892-c730-03ee529ffe2a&quot;,
		&quot;contributorTypeText&quot;: &quot;Personal name&quot;,
		&quot;name&quot;: &quot;Hordeski, Michael F.&quot;
	}
&lt;p&gt;],&lt;br/&gt;
	&quot;title&quot;: &quot;Troubleshooting and repairing PCs : beyond the basics&quot;,&lt;br/&gt;
	&quot;urls&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;http://dn.se&amp;quot;, &amp;quot;https://svd.se&amp;quot;&amp;#93;&lt;/span&gt;,&lt;br/&gt;
	&quot;instanceFormatId&quot;: &quot;4eba6d19-5fef-4d2f-a6da-9f2176ccf851&quot;,&lt;br/&gt;
	&quot;languages&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;mylang&amp;quot;&amp;#93;&lt;/span&gt;,&lt;br/&gt;
	&quot;identifiers&quot;: [&lt;/p&gt;
{
		&quot;value&quot;: &quot;0070305560&quot;,
		&quot;identifierTypeId&quot;: &quot;913300b2-03ed-469a-8179-c1092c991227&quot;
	}
&lt;p&gt;, &lt;/p&gt;
{
		&quot;value&quot;: &quot;0-07-030555-2&quot;,
		&quot;identifierTypeId&quot;: &quot;8261054f-be78-422d-bd51-4ed9f33c3422&quot;
	}
&lt;p&gt;],&lt;br/&gt;
	&quot;publication&quot;: [&lt;/p&gt;
{
		&quot;dateOfPublication&quot;: &quot;c&quot;,
		&quot;place&quot;: &quot;b&quot;,
		&quot;publisher&quot;: &quot;a&quot;
	}
&lt;p&gt;],&lt;br/&gt;
	&quot;series&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;Series 1&amp;quot;, &amp;quot;Series 2&amp;quot;&amp;#93;&lt;/span&gt;,&lt;br/&gt;
	&quot;subjects&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;Subject 1&amp;quot;, &amp;quot;Subject 2&amp;quot;&amp;#93;&lt;/span&gt;,&lt;br/&gt;
	&quot;alternativeTitles&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;Alternative title1&amp;quot;, &amp;quot;Alternative title 2&amp;quot;&amp;#93;&lt;/span&gt;,&lt;br/&gt;
	&quot;edition&quot;: &quot;Edition&quot;&lt;br/&gt;
}??&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Interested parties:&lt;/b&gt;  &lt;/p&gt;</description>
                <environment></environment>
        <key id="47101">UIIN-321</key>
            <summary>Instances with non-existing language codes crashes the instance view</summary>
                <type id="10001" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium">Bug</type>
                                            <priority id="10003" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p4.svg">P4</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Won&apos;t Do</resolution>
                                                        <assignee accountid="-1">Unassigned</assignee>
                                                                <reporter accountid="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2">Theodor Tolstoy (One-Group.se)</reporter>
                                    <labels>
                            <label>back-end</label>
                            <label>bug-instance</label>
                            <label>triaged</label>
                            <label>ui-only</label>
                    </labels>
                <created>Thu, 21 Jun 2018 06:32:23 +0000</created>
                <updated>Wed, 16 Jun 2021 11:21:09 +0000</updated>
                            <resolved>Tue, 19 May 2020 13:08:01 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                                                            <comment id="107372" author="5af5ed55244bc90a106063c7" created="Thu, 21 Jun 2018 07:02:14 +0000"  >&lt;p&gt;Looks like this is a proposed solution to this bug: 
    &lt;span class=&quot;jira-issue-macro&quot; data-jira-key=&quot;FOLIO-1299&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/FOLIO-1299&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Add valid language codes as an enum to Instance record JSON Schema&quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10322?size=medium&quot; /&gt;
            FOLIO-1299
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-complete jira-macro-single-issue-export-pdf&quot;&gt;Open&lt;/span&gt;
            &lt;/span&gt;
&lt;/p&gt;</comment>
                                                            <comment id="107376" author="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2" created="Thu, 21 Mar 2019 08:28:08 +0000"  >&lt;p&gt;Yes it is &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5af5ed55244bc90a106063c7&quot; class=&quot;user-hover&quot; rel=&quot;5af5ed55244bc90a106063c7&quot; data-account-id=&quot;5af5ed55244bc90a106063c7&quot; accountid=&quot;5af5ed55244bc90a106063c7&quot; rel=&quot;noreferrer&quot;&gt;Cate Boerema&lt;/a&gt;&lt;/p&gt;</comment>
                                                            <comment id="107379" author="557058:f80403de-e149-421e-8750-af45c853402f" created="Tue, 19 May 2020 09:10:20 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=712020%3A0a02d059-b8b9-48b3-8a58-727ec44d05d2&quot; class=&quot;user-hover&quot; rel=&quot;712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2&quot; data-account-id=&quot;712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2&quot; accountid=&quot;712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2&quot; rel=&quot;noreferrer&quot;&gt;Theodor Tolstoy (One-Group.se)&lt;/a&gt; - this is a bug which is &quot;over 12 month old&quot; - and will be closed by EOB Wednesday 5/20. If we encounter the problem again, I&apos;ll revive the bug. Sounds okay?&lt;/p&gt;

&lt;p&gt;CC: &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5cffed1a5d548b0c51d6b19b&quot; class=&quot;user-hover&quot; rel=&quot;5cffed1a5d548b0c51d6b19b&quot; data-account-id=&quot;5cffed1a5d548b0c51d6b19b&quot; accountid=&quot;5cffed1a5d548b0c51d6b19b&quot; rel=&quot;noreferrer&quot;&gt;Anton Emelianov&lt;/a&gt;&lt;/p&gt;</comment>
                                                            <comment id="107382" author="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2" created="Tue, 19 May 2020 11:06:24 +0000"  >&lt;p&gt;Sure, I now know what to do to prevent it from happening, so I am good.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="79490">FOLIO-1299</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="32598" name="image-2018-06-21-08-27-31-520.png" size="26451" author="712020:0a02d059-b8b9-48b3-8a58-727ec44d05d2" created="Thu, 21 Jun 2018 06:27:32 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10171"><![CDATA[Prokopovych]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzzqbb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 21 Jun 2018 07:02:14 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>