9
9
import java .util .stream .Collectors ;
10
10
import java .util .stream .Stream ;
11
11
12
+ import com .devonfw .tools .ide .url .model .file .json .UrlSecurityWarning ;
12
13
import com .devonfw .tools .ide .cli .CliException ;
13
14
import com .devonfw .tools .ide .commandlet .Commandlet ;
14
15
import com .devonfw .tools .ide .common .Tags ;
22
23
import com .devonfw .tools .ide .process .ProcessErrorHandling ;
23
24
import com .devonfw .tools .ide .property .StringListProperty ;
24
25
import com .devonfw .tools .ide .url .model .file .UrlSecurityJsonFile ;
25
- import com .devonfw .tools .ide .url .model .file .UrlSecurityJsonFile .UrlSecurityWarning ;
26
26
import com .devonfw .tools .ide .util .FilenameUtil ;
27
27
import com .devonfw .tools .ide .version .VersionIdentifier ;
28
28
@@ -188,7 +188,7 @@ protected VersionIdentifier securityRiskInteraction(VersionIdentifier configured
188
188
189
189
VersionIdentifier current = this .context .getUrls ().getVersion (this .tool , this .getEdition (), configuredVersion );
190
190
191
- if (!securityFile .contains (current , true , this .context )) {
191
+ if (!securityFile .contains (current , true , this .context , securityFile . getParent () )) {
192
192
return configuredVersion ;
193
193
}
194
194
@@ -198,14 +198,14 @@ protected VersionIdentifier securityRiskInteraction(VersionIdentifier configured
198
198
int currentVersionIndex = allVersions .indexOf (current );
199
199
VersionIdentifier nextSafe = null ;
200
200
for (int i = currentVersionIndex - 1 ; i >= 0 ; i --) {
201
- if (!securityFile .contains (allVersions .get (i ), true , this .context )) {
201
+ if (!securityFile .contains (allVersions .get (i ), true , this .context , securityFile . getParent () )) {
202
202
nextSafe = allVersions .get (i );
203
203
break ;
204
204
}
205
205
}
206
206
VersionIdentifier latestSafe = null ;
207
207
for (int i = 0 ; i < allVersions .size (); i ++) {
208
- if (!securityFile .contains (allVersions .get (i ), true , this .context )) {
208
+ if (!securityFile .contains (allVersions .get (i ), true , this .context , securityFile . getParent () )) {
209
209
latestSafe = allVersions .get (i );
210
210
break ;
211
211
}
0 commit comments