-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incomplete implementation, leads to many downstream bugs #11
Comments
From your explanation, I don't understand what the problem is? What is "the URI file path"? |
Ok, I think I understand now. spimdata/src/main/java/mpicbg/spim/data/XmlHelpers.java Lines 287 to 310 in ec9eaa1
in particular
This should add the "file:/" prefix for absolute paths (if no prefix is given). Otherwise, it will construct a URI (but a relative URI, without a scheme). And that's wrong. In the location that you pointed out, everything is ok like it is. We can expect that the basePathURI is absolute, with scheme and all.
|
we also need to consider older XML's that do not start with a scheme ... |
we'll figure the best way out tomorrow ... |
Hi @tpietzsch,
this line fails:
spimdata/src/main/java/mpicbg/spim/data/generic/sequence/XmlIoBasicImgLoader.java
Line 74 in 9dbb4b3
if the URI file path does not start with "file:/", which is the normal case in the legacy code, the path will be e.g. "/home/data.xml" and not "file:/home/data.xml" ... My solution is this:
https://github.com/PreibischLab/multiview-reconstruction/blob/b102f2e3092f620a6e23f80061b547d362200548/src/main/java/util/URITools.java#L497-L506
Let's chat how to move forward, for now I implement it like that in my XMLIO's ... PreibischLab/multiview-reconstruction@38f1645
Alternatively, we could also always add "file:/" if it is missing ...
The text was updated successfully, but these errors were encountered: