MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit 8bd7b891 authored by Fabien Triolet's avatar Fabien Triolet
Browse files

Corrected a bug happens when parameters are passed to a generate

parent 664cf727
/*
* $Id: ReadCSV.java,v 1.4 2002-11-14 15:46:45 triolet Exp $
* $Id: ReadCSV.java,v 1.5 2003-02-06 15:53:56 triolet Exp $
*
* Transmorpher
*
......@@ -53,8 +53,8 @@ public class ReadCSV extends TReader {
*/
public ReadCSV(String[] pOut, Parameters pParam, StringParameters pStaticAttributes) throws SAXException, IOException {
super(pOut, pParam, pStaticAttributes);
iReader = new CSVXMLReader(((String)pParam.getParameter("separator")));
}
/**
......@@ -66,6 +66,7 @@ public class ReadCSV extends TReader {
*/
public void read() throws IOException, SAXException {
try {
((CSVXMLReader)iReader).setSeparator(((String)getParameter("separator")));
iReader.parse(getInputSource());
} catch (Exception e) {
}
......
/*
* $Id: TReader.java,v 1.5 2003-02-06 08:36:42 triolet Exp $
* $Id: TReader.java,v 1.6 2003-02-06 15:53:56 triolet Exp $
*
* Transmorpher
*
......@@ -173,8 +173,7 @@ public abstract class TReader extends TProcessBasic {
//System.out.println(getParameter("file"));
super.bindParameters(getParameters());
iFilename = (String)getParameter("file");
getParameters().setParameters(param);
if ((iFilename != null)&&(!(iFilename.equals("_stdin_")))) {
if (iFilename.startsWith("http://")) {
URL url = new URL(iFilename);
......@@ -192,11 +191,14 @@ public abstract class TReader extends TProcessBasic {
}
if (isThread) {
procThread.start();
getParameters().setParameters(param);
if (raisedException != null) {
throw new TMRuntimeException(raisedException, "Thread reading error");
}
} else {
read();
getParameters().setParameters(param);
}
......@@ -208,10 +210,15 @@ public abstract class TReader extends TProcessBasic {
// Send the empty document on error!?
iReader.getContentHandler().startDocument();
iReader.getContentHandler().endDocument();
getParameters().setParameters(param);
}
catch (TMException e) {}
catch (TMException e) {
getParameters().setParameters(param);
}
catch (SAXException e){
e.printStackTrace();
getParameters().setParameters(param);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment