kwin opened a new issue, #638:
URL: https://github.com/apache/maven-doxia-sitetools/issues/638
### Affected version
2.1.0
### Bug description
When using the deprecated constructor `DocumentRenderingContext(File
basedir, String basedirRelativePath, String document, String parserId, String
extension, boolean editable)` or `DocumentRenderingContext(File basedir, String
basedirRelativePath, String document, String parserId, String extension,
boolean editable, String generator)` with the 2nd argument being null one gets
an ISE with the following following stacktrace:
```
java.lang.IllegalArgumentException: Site root directory .../a must start
with root directory .../a/b
at
org.apache.maven.doxia.siterenderer.DocumentRenderingContext.<init>(DocumentRenderingContext.java:238)
at org.apache.maven.doxia.siterenderer.DocumentRenderingContext.<init>
(DocumentRenderingContext.java:181)
```
or
```
java.lang.IllegalArgumentException: Site root directory .../a must start
with root directory .../a/b
at
org.apache.maven.doxia.siterenderer.DocumentRenderingContext.<init>(DocumentRenderingContext.java:238)
```
The reason is that the case when basedirRelativePath is `null` does not lead
to both `rootDirectory` and `siteRootDirectory` being set to `null`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]