| If you add another PPIO to the WPS that has a name that starts with a letter before W it will be picked for WFS sources that only declare thier mime-type as 'text-xml' as none of them match that. Note this is what the request builder uses as the mime type for local layers. Issue occurs in org.geoserver.wps.ppio.ProcessParameterIO.find(Parameter<?>, ApplicationContext, String) {{// TODO: come up with some way to flag one as "default" List<ProcessParameterIO> all = findAll(p, context); if (all.isEmpty()) { return null; } if (mime != null) { for (ProcessParameterIO ppio : all) { if (ppio instanceof ComplexPPIO && ((ComplexPPIO) ppio).getMimeType().equals(mime)) { return ppio; } } } // if more than one sort by class hierarchy, pushing the most specific classes to the // beginning if (all.size() > 0) { Collections.sort(all, new Comparator<ProcessParameterIO>() { public int compare(ProcessParameterIO o1, ProcessParameterIO o2) { Class c1 = o1.getType(); Class c2 = o2.getType(); if (c1.equals(c2)) { return 0; } if (c1.isAssignableFrom(c2)) { return 1; } return -1; } }); } // fall back on the first found return all.get(0);}} Just picks the first alphabetically. |