question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] TestNG by default disables loading DTD from unsecured Urls.

See original GitHub issue

TestNG 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 image

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
juherrcommented, Oct 23, 2020

Right, it looks like an unexpected “replace all” from https://github.com/cbeust/testng/commit/cf22ccfcb2a34f9b0bb4fa8cbedae5297ddd2049

2reactions
algotasticcommented, Oct 20, 2020

I believe the issue is either that IntelliJ is not using HTTPS: image

Or that the non-HTTPS URL is not in the URLS list (note that TESTNG_DTD_URL and HTTPS_TESTNG_DTD_URL are exactly the same). image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found