[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-09 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16991449#comment-16991449
 ] 

ASF subversion and git services commented on SOLR-14028:


Commit 7c8635d600b671dc91db3ed72690c927b3889372 in lucene-solr's branch 
refs/heads/gradle-master from Kevin Risden
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=7c8635d6 ]

SOLR-14028: Fix test permissions for TestSolrCLIRunExample

Signed-off-by: Kevin Risden 


> 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
> Fix For: 8.4
>
> Attachments: SOLR-14028.patch, 
> 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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-07 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16990623#comment-16990623
 ] 

ASF subversion and git services commented on SOLR-14028:


Commit 970264c6d2cd5fa3bfdcf022714bd72220be4cee in lucene-solr's branch 
refs/heads/branch_8x from Kevin Risden
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=970264c ]

SOLR-14028: Fix test permissions for TestSolrCLIRunExample

Signed-off-by: Kevin Risden 


> 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: SOLR-14028.patch, 
> 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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-07 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16990621#comment-16990621
 ] 

ASF subversion and git services commented on SOLR-14028:


Commit 7c8635d600b671dc91db3ed72690c927b3889372 in lucene-solr's branch 
refs/heads/master from Kevin Risden
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=7c8635d6 ]

SOLR-14028: Fix test permissions for TestSolrCLIRunExample

Signed-off-by: Kevin Risden 


> 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: SOLR-14028.patch, 
> 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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-07 Thread Robert Muir (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16990465#comment-16990465
 ] 

Robert Muir commented on SOLR-14028:


+1

> 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: SOLR-14028.patch, 
> 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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-06 Thread Kevin Risden (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16990342#comment-16990342
 ] 

Kevin Risden commented on SOLR-14028:
-

Attached patch for this  [^SOLR-14028.patch] . I want to look at it again and 
make sure it didn't break anything else. 

> 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: SOLR-14028.patch, 
> 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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-06 Thread Kevin Risden (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16990331#comment-16990331
 ] 

Kevin Risden commented on SOLR-14028:
-

Yea I was just looking into determining if a path is a glob. Looks like 
File#toPath() or Paths#get will throw an illegal path exception on Windows but 
not on Unix. We can use that to fix the logic in SimplePostTool.

Basically try/catch {Paths.get(args[j])} if valid then do regular 
directory/file stuff. Otherwise fallback to glob. 

I can work on a patch for that.

> 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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-06 Thread Robert Muir (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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 "<>"} 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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-06 Thread Robert Muir (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16990305#comment-16990305
 ] 

Robert Muir commented on SOLR-14028:


Kevin i took a look at all your logs. This test is very complicated. 

I do think its whack that the simple post tool it calls 
File.isDirectory/isFile/canRead on a glob, assuming that these methods always 
simply returns false (this is not true: they can throw SecurityException and 
that is never handled), before falling back and trying to de-glob. I think we 
should fix this logic?

The JDK is gonna create a java.io.FilePermission(path) and in this case it 
contains * which has special meaning. So maybe it is some crazy behavior due to 
that?

> 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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-06 Thread Robert Muir (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16989893#comment-16989893
 ] 

Robert Muir commented on SOLR-14028:


Here's the specific sketchy line that i did (sorry): 
https://github.com/apache/lucene-solr/blob/c4126ef858b9bac167f51b3c08d51dc28404ced9/lucene/common-build.xml#L1097

It would be my prime suspect at least.

> 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
>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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-06 Thread Kevin Risden (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16989879#comment-16989879
 ] 

Kevin Risden commented on SOLR-14028:
-

Ok cool thanks I'll check it out. 

> 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
>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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-06 Thread Robert Muir (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16989876#comment-16989876
 ] 

Robert Muir commented on SOLR-14028:


also sometimes it helps to run the test with 
{{-Dargs="-Djava.security.debug=policy"}} in cases like this, where you think 
there may be some issue with the final resulting policy (after expansion and 
stuff). It will print what it looks like after the variable substitution and 
stuff.

> 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
>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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-06 Thread Robert Muir (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16989872#comment-16989872
 ] 

Robert Muir commented on SOLR-14028:


Kevin, maybe the problem is the bogus way that I construct the common-solr.dir 
in the junit4 task of lucene/common-build.xml? Maybe, Probably, it does not 
work on windows at all. Note: its not related to the common-solr.dir you quoted 
from the solr build files.

> 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
>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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-06 Thread Kevin Risden (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16989867#comment-16989867
 ] 

Kevin Risden commented on SOLR-14028:
-

Here is the security debug run:

{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 
-D'args="-Djava.security.debug=access,failure"'
{code}

 [^security_debug-TEST-org.apache.solr.util.TestSolrCLIRunExample.xml.zip] 
 [^security_debug-tests-failures.txt.zip] 

> 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
>Priority: Major
> Attachments: TEST-org.apache.solr.util.TestSolrCLIRunExample.xml, 
> security_debug-TEST-org.apache.solr.util.TestSolrCLIRunExample.xml.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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample

2019-12-06 Thread Kevin Risden (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16989862#comment-16989862
 ] 

Kevin Risden commented on SOLR-14028:
-

[~rmuir] any ideas here? 

{code:java}

{code}

and from 
https://github.com/apache/lucene-solr/blob/master/lucene/tools/junit4/solr-tests.policy#L24

{code:java}
permission java.io.FilePermission "${common-solr.dir}${/}-", "read";
{code}

So idk why the following error would be reported:

{code:java}
access denied ("java.io.FilePermission" 
"C:\Users\vagrant\repos\apache\lucene-solr\solr\example\exampledocs\*.xml" 
"read")
{code}



> 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
>Priority: Major
> Attachments: TEST-org.apache.solr.util.TestSolrCLIRunExample.xml, 
> 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: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org



[jira] [Commented] (SOLR-14028) Fix test permissions for TestSolrCLIRunExample and ActionThrottleTest

2019-12-06 Thread Kevin Risden (Jira)


[ 
https://issues.apache.org/jira/browse/SOLR-14028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16989858#comment-16989858
 ] 

Kevin Risden commented on SOLR-14028:
-

The weird part about this test is that 
C:\Users\vagrant\repos\apache\lucene-solr\solr and subdirs should already have 
read permissions:

{code:java}
access denied ("java.io.FilePermission" 
"C:\Users\vagrant\repos\apache\lucene-solr\solr\example\exampledocs\*.xml" 
"read")
access denied ("java.io.FilePermission" 
"C:\Users\vagrant\repos\apache\lucene-solr\solr\build\solr-core\test\J0\temp\solr.util.TestSolrCLIRunExample_C3E6CF976F89E34-001\tempDir-005\failExecuteScript"
 "execute")

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}


> Fix test permissions for TestSolrCLIRunExample and ActionThrottleTest
> -
>
> 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
>Priority: Major
> Attachments: TEST-org.apache.solr.util.TestSolrCLIRunExample.xml
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org