[BUG] TestNG by default disables loading DTD from unsecured Urls.
See original GitHub issueTestNG Version
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.3.0</version>
</dependency>
Expected behavior
Throw exception after read the testng-1.0.dtd file from resource
Actual behavior
The testng-1.0.dtd file is not readable from resources
Is the issue reproductible on runner?
IntelliJ v2020.2.3 (TestNG IDE plugin ver. 202.7660.26)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
TestNG by default disables loading DTD from unsecure Urls
Go to windows -> Preferences->TestNG->Run/Debug · In JVM_args add the following -Dtestng.dtd.http=true · Click on Apply and close button. · Right- ...
Read more >How to fix TestNG by default disables loading DTD from ...
TestNG by default disables loading DTD from unsecured Urls. If you need to explicitly load the DTD from a http url, please do...
Read more >FAIL "disables loading DTD from unsecured Urls" is reported ...
when I run this suite file with TestNG7.0, it is always report " TestNG by default disables loading DTD from unsecured Urls. If...
Read more >How to solve the Error TestNG by default disables loading ...
How to solve the Error TestNG by default disables loading DTD from unsecured Urls ; Sql · 1 min read.
Read more >TestNG by default disables loading DTD from unsecure Urls
While executing TestNG sometime we hit below error: org.testng.TestNGException: TestNG by default disables loading DTD from unsecure Urls.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Right, it looks like an unexpected “replace all” from https://github.com/cbeust/testng/commit/cf22ccfcb2a34f9b0bb4fa8cbedae5297ddd2049
I believe the issue is either that IntelliJ is not using HTTPS:
Or that the non-HTTPS URL is not in the
URLS
list (note thatTESTNG_DTD_URL
andHTTPS_TESTNG_DTD_URL
are exactly the same).