Skip to content
Snippets Groups Projects
Commit 02a4a7f5 authored by Grégory Mantelet's avatar Grégory Mantelet
Browse files

[UWS,TAP] Fix destruction of a job: error files were never deleted.

This bug occurred "just" due to an un-desired inverted test, since UWS-1.1 is
implemented (UWSLib-4.3 and TAPLib-2.2).
parent a0ec16fc
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,7 @@ import uws.service.request.UploadFile; ...@@ -130,7 +130,7 @@ import uws.service.request.UploadFile;
* </ul> * </ul>
* *
* @author Gr&eacute;gory Mantelet (CDS;ARI) * @author Gr&eacute;gory Mantelet (CDS;ARI)
* @version 4.3 (03/2018) * @version 4.4 (09/2018)
*/ */
public class UWSJob extends SerializableUWSObject { public class UWSJob extends SerializableUWSObject {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -383,7 +383,8 @@ public class UWSJob extends SerializableUWSObject { ...@@ -383,7 +383,8 @@ public class UWSJob extends SerializableUWSObject {
while(files.hasNext()){ while(files.hasNext()){
try{ try{
files.next().move(this); files.next().move(this);
}catch(IOException ioe){} }catch(IOException ioe){
}
} }
} }
...@@ -438,7 +439,8 @@ public class UWSJob extends SerializableUWSObject { ...@@ -438,7 +439,8 @@ public class UWSJob extends SerializableUWSObject {
while(files.hasNext()){ while(files.hasNext()){
try{ try{
files.next().move(this); files.next().move(this);
}catch(IOException ioe){} }catch(IOException ioe){
}
} }
} }
...@@ -1964,7 +1966,7 @@ public class UWSJob extends SerializableUWSObject { ...@@ -1964,7 +1966,7 @@ public class UWSJob extends SerializableUWSObject {
} }
} }
if (!fullClean){ if (fullClean){
// Clear the error file: // Clear the error file:
if (errorSummary != null && errorSummary.hasDetail()){ if (errorSummary != null && errorSummary.hasDetail()){
try{ try{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment