[
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16990312#comment-16990312
]
Robert Muir commented on SOLR-14028:
------------------------------------
Yeah, that's the ticket. See code:
https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/io/FilePermission.java#L340-L361
The "*" is a reserved character for windows filesystem:
https://gist.github.com/doctaphred/d01d05291546186941e1b7ddc02034d3#file-ntfs-filenames-txt-L17
So it is treated as invalid and that is why it fails no matter what you try:
{noformat}
* An invalid {@code FilePermission} does not imply any object except for
* itself. An invalid {@code FilePermission} is not implied by any object
* except for itself or a {@code FilePermission} on
* {@literal "<<ALL FILES>>"} whose actions is a superset of this
* invalid {@code FilePermission}. Even if two {@code FilePermission}
* are created with the same invalid path, one does not imply the other.
{noformat}
The SimplePostTool should be fixed :)
> Fix test permissions for TestSolrCLIRunExample
> ----------------------------------------------
>
> Key: SOLR-14028
> URL: https://issues.apache.org/jira/browse/SOLR-14028
> Project: Solr
> Issue Type: Test
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Tests
> Reporter: Kevin Risden
> Assignee: Kevin Risden
> Priority: Major
> Attachments: TEST-org.apache.solr.util.TestSolrCLIRunExample.xml,
> security_debug-TEST-org.apache.solr.util.TestSolrCLIRunExample.xml.zip,
> security_debug-tests-failures.txt.zip, tests-failures.txt
>
>
> This was found while looking at SOLR-14001. It fails on Windows:
> {code:java}
> ant test -Dtestcase=TestSolrCLIRunExample
> -Dtests.method=testTechproductsExample -Dtests.seed=8E1D2F05CF2F7CAF
> -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=ms-SG
> -Dtests.timezone=Europe/Paris -Dtests.asserts=true -Dtests.file.encoding=UTF-8
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]