Skip to content
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

nuspec parse exception #6664

Open
VeereshSSanthebennur opened this issue May 13, 2024 · 3 comments
Open

nuspec parse exception #6664

VeereshSSanthebennur opened this issue May 13, 2024 · 3 comments

Comments

@VeereshSSanthebennur
Copy link

Hi!!!

I am trying to run the Dependency scan on our CPP projects via azure pipeline, dependency check analyzer throwing an NuspecParseException. please find the log attached.

Please do the needful.

image

@aikebah
Copy link
Collaborator

aikebah commented May 14, 2024

Without a reproducer project/file for that issue there is not much we can analyze. There is something in your nuspec that is not foreseen in the nuspec parser.

@VeereshSSanthebennur
Copy link
Author

VeereshSSanthebennur commented May 22, 2024

I have attached the nuspec file sample as requested below. When I commented out the File element which was pointing for the other local source then it seemed to work fine. It was failing to access the local files. I hope this is the expected one.

The attachment is not accepting the nuspec file, I have attached it in the form of a text file.

Also, I wanted to be double sure the dependency check can scan the C++ desktop projects right?

LegacyNativeRouter.txt

@aikebah
Copy link
Collaborator

aikebah commented May 22, 2024

The underlying cause of your issue is an XML validation in your nuspec:

[Fatal Error] :10:19: Open quote is expected for attribute "src" associated with an  element type  "file".
Exception in thread "main" org.xml.sax.SAXParseException; lineNumber: 10; columnNumber: 19; Open quote is expected for attribute "src" associated with an  element type  "file".
	at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:262)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:342)
	at java.xml/javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:122)
	at Scratch.main(scratch.java:36)

The $location$ needs to be quoted for forming syntax-valid XML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants