Skip to content

Commit

Permalink
MONDRIAN: code format and bug reference
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//open/mondrian/": change = 12770]
  • Loading branch information
Sherman Wood committed May 21, 2009
1 parent e1cd72e commit 9591bdd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main/mondrian/olap/Util.java
Expand Up @@ -2172,15 +2172,19 @@ public static FileContent readVirtualFile(String 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
// MONDRIAN-508, but cannot be tested, so we will leave the work
// around for now
file.refresh();

// Workaround to defect 2613265. For HttpFileObjects, verifies the URL
// Workaround to defect MONDRIAN-508. 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
// file (e.g. http://blah.com?param=A, http://blah.com?param=B)
if (file instanceof HttpFileObject && !file.getName().getURI().equals(url)) {
fsManager.getFilesCache().removeFile(file.getFileSystem(), file.getName());
if (file instanceof HttpFileObject &&
!file.getName().getURI().equals(url)) {
fsManager.getFilesCache()
.removeFile(file.getFileSystem(), file.getName());

file = fsManager.resolveFile(userDir, url);
}

Expand Down

0 comments on commit 9591bdd

Please sign in to comment.