Within the sdc, when visiting the three view/modify files pages i get this traceback even though the page displays fine: java.lang.IllegalArgumentException: Invalid type [] specified. Make sure you specify one of the following types in your expression [dir, directory, file, folder] at com.redhat.rhn.domain.config.ConfigFileType.lookup(ConfigFileType.java:90) at com.redhat.rhn.frontend.configuration.tags.ConfigFileTag.checkType(ConfigFileTag.java:162) at com.redhat.rhn.frontend.configuration.tags.ConfigFileTag.writeIcon(ConfigFileTag.java:138) at com.redhat.rhn.frontend.configuration.tags.ConfigFileTag.doEndTag(ConfigFileTag.java:80) at org.apache.jsp.WEB_002dINF.pages.configuration.sdc.viewmodifyfilescentral_jsp._jspx_meth_cfg_file_3(viewmodifyfilescentral_jsp.java:1702) at org.apache.jsp.WEB_002dINF.pages.configuration.sdc.viewmodifyfilescentral_jsp._jspx_meth_c_set_7(viewmodifyfilescentral_jsp.java:1673) at org.apache.jsp.WEB_002dINF.pages.configuration.sdc.viewmodifyfilescentral_jsp._jspx_meth_rl_column_4(viewmodifyfilescentral_jsp.java:1584) at org.apache.jsp.WEB_002dINF.pages.configuration.sdc.viewmodifyfilescentral_jsp._jspx_meth_rl_list_0(viewmodifyfilescentral_jsp.java:1014) at org.apache.jsp.WEB_002dINF.pages.configuration.sdc.viewmodifyfilescentral_jsp._jspx_meth_rl_listset_0(viewmodifyfilescentral_jsp.java:927) at org.apache.jsp.WEB_002dINF.pages.configuration.sdc.viewmodifyfilescentral_jsp._jspService(viewmodifyfilescentral_jsp.java:282) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Reassigned to bbuckingham.
Updated the ConfigFileTag.java to avoid checking the file type (ie. file/dir) when the type is passed in empty. This scenario can occur when the ConfigFileTag is being used as part of a List that is empty. For example, attempting to view the "Local Sandbox" when there are no files or directories currently in the sandbox.
Note on scenario: - select "Systems" -> pick a system -> Configuration -> View/Modify Files -> Centrally-Managed Files --or-- -> Locally-Managed Files --or-- -> Local Sandbox If any of these 3 had an empty list (i.e. not files/dirs) defined, it would generate the java.lang.IllegalArgumentException exception in the /var/log/tomcat5/catalina.out.
QA Verified, traceback no longer occurs on empty lists.
Release Pending.
5.1 Sat GA so Closed for Current Release.