Bug 119108

Summary: Access Rules and Path separators
Product: [Eclipse Project] JDT Reporter: Andrew Niefer <aniefer>
Component: CoreAssignee: Maxime Daniel <maxime_daniel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 119110    
Attachments:
Description Flags
patch none

Description Andrew Niefer CLA 2005-12-02 15:41:28 EST
AccessRuleSet.getViolatedRestriction compares rules against paths using '/' as a path seperator.  The access rule patterns being passed in use '/'.  However, the target file path being matched against may use '\' as the seperator if it is coming out of a directory as opposed to a jar (see FileSystem.findClass).

With recent support from pde.build to support passing access rules, releng builds will be getting many invalid warnings because of this.
Comment 1 Andrew Niefer CLA 2005-12-05 15:32:50 EST
Created attachment 31145 [details]
patch

This is the patch I've been using to fix this problem in my local workspace.

Is this something we can get fixed for tomorrow's integration build?  Jeff is going to ApacheCon next week and we would like to be able to demo our support for access rules.
Comment 2 Maxime Daniel CLA 2005-12-06 06:56:29 EST
Fixed and released in HEAD.
Modified AccessRuleSet.getViolatedRestriction to accept '\' in targetTypeFilePath
when running on Windows.
Comment 3 Jerome Lanneluc CLA 2005-12-12 10:56:52 EST
Verified for 3.2 M4 using build I20051212-0010