I got the error in the jspui, I figured out that it is related with the
bean NewsServiceImpl receiving the values news-top.html and news-side.html
as parameter in the constructor.

<bean class="org.dspace.core.NewsServiceImpl">
                <property name="acceptableFilenames">
                        <list>
                                <value>news-top.html</value>
                                <value>news-side.html</value>
                        </list>
                </property>
        </bean>

But when I was debugging, the value in the parameter String newsName was
news-top_pt.html.

@Override
        public boolean validate(String newsName) {
                if (acceptableFilenames != null) {
                        return acceptableFilenames.contains(newsName);
                }
                return false;
        }

And as the news-top_pt.html is not in the list acceptableFilenames, the
code below through a exception:

if (!validate(newsFile)) {
     throw new IllegalArgumentException("The file "+ newsFile + " is
not a valid news file");
 }

Now I got lost, I don't if I have to fix it not allowing the
"news-top_pt.html" or adding the "news-top_pt.html" in the bean
configuration file. What should be the approach here?

Best

Luiz

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to