jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] branch master updated: Error when loading Templates on Windows
Date Sun, 15 Mar 2020 10:36:18 GMT
This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 346f87d  Error when loading Templates on Windows
346f87d is described below

commit 346f87d593126fea1e61665258343e3c01b94f43
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Sun Mar 15 11:33:49 2020 +0100

    Error when loading Templates on Windows
    
    The document builder accepts a file directly, so use it.
    
    Bugzilla Id: 64227
---
 .../java/org/apache/jmeter/gui/action/template/TemplateManager.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/src/main/java/org/apache/jmeter/gui/action/template/TemplateManager.java
b/src/core/src/main/java/org/apache/jmeter/gui/action/template/TemplateManager.java
index 74fa96c..2e51656 100644
--- a/src/core/src/main/java/org/apache/jmeter/gui/action/template/TemplateManager.java
+++ b/src/core/src/main/java/org/apache/jmeter/gui/action/template/TemplateManager.java
@@ -172,7 +172,7 @@ public class TemplateManager {
         bd.setEntityResolver(new DefaultEntityResolver());
         LoggingErrorHandler errorHandler = new LoggingErrorHandler(log, file);
         bd.setErrorHandler(errorHandler);
-        Document document = bd.parse(file.toURI().toString());
+        Document document = bd.parse(file);
         document.getDocumentElement().normalize();
         Map<String, Template> templates = new TreeMap<>();
         NodeList templateNodes = document.getElementsByTagName("template");


Mime
View raw message