-
Notifications
You must be signed in to change notification settings - Fork 3
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
wcs2:post-xml-req5 fails with InvocationTargetException (post/xml) #55
Comments
The failure occurs cause the GetCoverage Response is tried to be parsed as XML but the respone is a multipart. |
Service is not available to reproduce this behavior. Could you please provide any other service which will reproduce the same behavior? |
I have tested the Zikang's service and test gets failed with the same error. Lyn, you are right the service response is multipart so the XMLValidatingparser is failed to parse the multipart data because it expecting the only XML.
|
I don't see a reason why multipart should be forbidden. Thus, there must either a precondition be defined for test suite or multipart support must be enabled. |
@keshav-nangare: Can you check if multipart support can be enabled in the test suite? |
@keshav-nangare If it's a .tif image then you could use Java's ImageIO class to check whether it is an image. For example, the sample code below returns the width and height of an image if the file is an image. If the file is not an image, then an Exception is thrown. import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.imageio.ImageIO;
public class NewClass {
public static void main(String[] args) {
try {
BufferedImage bi = ImageIO.read(new File("/Users/ogccite/Downloads/myimage.tif"));
System.out.println("Check "+bi.getHeight()+ " "+ bi.getWidth());
} catch (IOException ex) {
Logger.getLogger(NewClass.class.getName()).log(Level.SEVERE, null, ex);
}
}
} |
@keshav-nangare @ghobona discussed on 2020-07-15. This issue is related to opengeospatial/ets-wcs11#41 because of the multipart aspect. They may have the same solution. |
Fixed with #98 PR. |
Setup
SUT: TODO
Selected CCs: all, except WCS WPS 2.0 (Processing)
Tested locally with docker environment
Testfailure
"Error in call to extension function {public org.w3c.dom.NodeList com.occamlab.te.TECore.request(org.w3c.dom.Document,java.lang.String) throws java.lang.Throwable}: Exception in extension function java.lang.reflect.InvocationTargetException"
Proposal
The text was updated successfully, but these errors were encountered: