<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 22:26:46 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>[MODCXMOCK-11] Cannot intialize query validation</title>
                <link>https://folio-org.atlassian.net/browse/MODCXMOCK-11</link>
                <project id="10253" key="MODCXMOCK">mod-codex-mock</project>
                    <description>&lt;p&gt;&quot;unable to load schema&quot; - no apidocs directory created in /target/classes&lt;/p&gt;</description>
                <environment></environment>
        <key id="79083">MODCXMOCK-11</key>
            <summary>Cannot intialize query validation</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:38d1a08f-86a8-4df2-9191-239b16b0a81a">Heikki Levanto</reporter>
                                    <labels>
                            <label>back-end</label>
                            <label>triaged</label>
                    </labels>
                <created>Wed, 20 Dec 2017 11:46:57 +0000</created>
                <updated>Fri, 12 Jun 2020 10:51:16 +0000</updated>
                            <resolved>Fri, 12 Jun 2020 10:51:16 +0000</resolved>
                                    <version>1.0.1</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                    <timespent seconds="3600">1 hour</timespent>
                                <comments>
                                                            <comment id="187903" author="712020:38d1a08f-86a8-4df2-9191-239b16b0a81a" created="Wed, 20 Dec 2017 11:51:31 +0000"  >&lt;p&gt;Probably something to do with the fact that I don&apos;t have my own raml or schemas at all, they all come from raml-utils.&lt;/p&gt;

&lt;p&gt;I have this property in my pom.xml: &lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&amp;lt;ramlfiles_path&amp;gt;${basedir}/ramls/raml-util/ramls/codex&amp;lt;/ramlfiles_path&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;since that&apos;s where the codex.raml is located.&lt;/p&gt;

&lt;p&gt;Trying to load the schema fails with&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;SEVERE: unable to load schema - apidocs/raml/codex.json, validation of query fields will not be active
java.lang.NullPointerException
        at java.io.Reader.&amp;lt;init&amp;gt;(Reader.java:78)
        at java.io.InputStreamReader.&amp;lt;init&amp;gt;(InputStreamReader.java:97)
        at org.apache.commons.io.IOUtils.copy(IOUtils.java:1077)
        at org.apache.commons.io.IOUtils.toString(IOUtils.java:382)
        at org.folio.rest.impl.CodexMockImpl.initCQLValidation(CodexMockImpl.java:60)
        at org.folio.rest.impl.CodexMockImpl.&amp;lt;init&amp;gt;(CodexMockImpl.java:70)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at org.folio.rest.RestVerticle.route(RestVerticle.java:398)
        at org.folio.rest.RestVerticle.lambda$12(RestVerticle.java:253)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Which is kind of fair enough, since there is no file at &lt;tt&gt;apidocs/raml/codex.json&lt;/tt&gt;. Actually, the whole apidocs directory is missing.&lt;/p&gt;</comment>
                                                            <comment id="187904" author="712020:38d1a08f-86a8-4df2-9191-239b16b0a81a" created="Wed, 20 Dec 2017 11:55:05 +0000"  >&lt;p&gt;Throwing a null pointer exception is probably not the best way to handle this situation, a more meaningful error message could at least say that it could not load the resource.&lt;/p&gt;</comment>
                                                            <comment id="187905" author="712020:38d1a08f-86a8-4df2-9191-239b16b0a81a" created="Wed, 20 Dec 2017 12:05:01 +0000"  >&lt;p&gt;There is a test case in MockTest that demonstrates this, a query like &lt;tt&gt;?query=BADFIELD=foo&lt;/tt&gt; succeeds with 200 and gets no hits, instead of failing with 422. The test result is commented out, so all tests pass.&lt;/p&gt;</comment>
                                                            <comment id="187906" author="557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d" created="Fri, 12 Jun 2020 10:51:16 +0000"  >&lt;p&gt;Closing as outdated. Re-open if needed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="56800">RMB-103</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </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_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzzmcv:</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>Fri, 12 Jun 2020 10:51:16 +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>