Skip to content

Commit

Permalink
MONDRIAN: Stop VFS content caching. Updated schemas were not being re…
Browse files Browse the repository at this point in the history
…loaded from the source. May address defect 2613265 for HttpFileObject, but original fix left in.

[git-p4: depot-paths = "//open/mondrian/": change = 12762]
  • Loading branch information
Sherman Wood committed May 21, 2009
1 parent 3cab7ba commit e1cd72e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/mondrian/olap/Util.java
Expand Up @@ -2169,6 +2169,12 @@ public static FileContent readVirtualFile(String url)
File userDir = new File("").getAbsoluteFile();
FileObject file = fsManager.resolveFile(userDir, url);

// Because of VFS caching, make sure we refresh to get the latest file
// content.
// This refresh may possibly solve the following workaround for defect
// 2613265, but cannot be tested, so we will leave the work around for now
file.refresh();

// Workaround to defect 2613265. For HttpFileObjects, verifies the URL
// of the file retrieved matches the URL passed in. A VFS cache bug
// can cause it to treat URLs with different parameters as the same
Expand Down

0 comments on commit e1cd72e

Please sign in to comment.