@@ -91,8 +91,8 @@ static FileData ofRelativePath(Path relativePath, BaseDir baseDir, Mode mode) {
9191            return  new  RelativePathFileData (relativePath , baseDir , mode , null , false );
9292        }
9393
94-         static  FileData  ofPathSetting (String  setting , BaseDir  baseDir , Mode  mode ,  boolean   ignoreUrl ) {
95-             return  new  PathSettingFileData (setting , baseDir , mode , ignoreUrl ,  null , false );
94+         static  FileData  ofPathSetting (String  setting , BaseDir  baseDir , Mode  mode ) {
95+             return  new  PathSettingFileData (setting , baseDir , mode , null , false );
9696        }
9797
9898        /** 
@@ -220,30 +220,29 @@ public FileData withPlatform(Platform platform) {
220220        }
221221    }
222222
223-     private  record  PathSettingFileData (String  setting , BaseDir  baseDir , Mode  mode , boolean   ignoreUrl ,  Platform  platform , boolean  exclusive )
223+     private  record  PathSettingFileData (String  setting , BaseDir  baseDir , Mode  mode , Platform  platform , boolean  exclusive )
224224        implements 
225225            RelativeFileData  {
226226
227227        @ Override 
228228        public  PathSettingFileData  withExclusive (boolean  exclusive ) {
229-             return  new  PathSettingFileData (setting , baseDir , mode , ignoreUrl ,  platform , exclusive );
229+             return  new  PathSettingFileData (setting , baseDir , mode , platform , exclusive );
230230        }
231231
232232        @ Override 
233233        public  Stream <Path > resolveRelativePaths (PathLookup  pathLookup ) {
234-             Stream <String > result  = pathLookup .settingResolver ().apply (setting );
235-             if  (ignoreUrl ) {
236-                 result  = result .filter (s  -> s .toLowerCase (Locale .ROOT ).startsWith ("https://" ) == false );
237-             }
238-             return  result .map (pathLookup .configDir ()::resolve );
234+             Stream <String > result  = pathLookup .settingResolver ()
235+                 .apply (setting )
236+                 .filter (s  -> s .toLowerCase (Locale .ROOT ).startsWith ("https://" ) == false );
237+             return  result .map (Path ::of );
239238        }
240239
241240        @ Override 
242241        public  FileData  withPlatform (Platform  platform ) {
243242            if  (platform  == platform ()) {
244243                return  this ;
245244            }
246-             return  new  PathSettingFileData (setting , baseDir , mode , ignoreUrl ,  platform , exclusive );
245+             return  new  PathSettingFileData (setting , baseDir , mode , platform , exclusive );
247246        }
248247    }
249248
@@ -331,8 +330,6 @@ public static FilesEntitlement build(List<Object> paths) {
331330            String  settingBaseDirAsString  = checkString .apply (file , "basedir_if_relative" );
332331            String  modeAsString  = checkString .apply (file , "mode" );
333332            String  platformAsString  = checkString .apply (file , "platform" );
334-             Boolean  ignoreUrlAsStringBoolean  = checkBoolean .apply (file , "ignore_url" );
335-             boolean  ignoreUrlAsString  = ignoreUrlAsStringBoolean  != null  && ignoreUrlAsStringBoolean ;
336333            Boolean  exclusiveBoolean  = checkBoolean .apply (file , "exclusive" );
337334            boolean  exclusive  = exclusiveBoolean  != null  && exclusiveBoolean ;
338335
@@ -359,9 +356,6 @@ public static FilesEntitlement build(List<Object> paths) {
359356                throw  new  PolicyValidationException ("'relative_to' may only be used with 'relative_path'" );
360357            }
361358
362-             if  (ignoreUrlAsStringBoolean  != null  && pathSetting  == null ) {
363-                 throw  new  PolicyValidationException ("'ignore_url' may only be used with 'path_setting'" );
364-             }
365359            if  (settingBaseDirAsString  != null  && pathSetting  == null ) {
366360                throw  new  PolicyValidationException ("'basedir_if_relative' may only be used with 'path_setting'" );
367361            }
@@ -388,7 +382,7 @@ public static FilesEntitlement build(List<Object> paths) {
388382                    throw  new  PolicyValidationException ("files entitlement with a 'path_setting' must specify 'basedir_if_relative'" );
389383                }
390384                BaseDir  baseDir  = parseBaseDir (settingBaseDirAsString );
391-                 fileData  = FileData .ofPathSetting (pathSetting , baseDir , mode ,  ignoreUrlAsString );
385+                 fileData  = FileData .ofPathSetting (pathSetting , baseDir , mode );
392386            } else  {
393387                throw  new  AssertionError ("File entry validation error" );
394388            }
0 commit comments