You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Vikas Saurabh (JIRA)" <ji...@apache.org> on 2018/05/10 20:06:00 UTC

[jira] [Resolved] (OAK-7490) oak-run console lc rmdata command uses second parameter for index path (and defaults to /oak:index/lucene)

     [ https://issues.apache.org/jira/browse/OAK-7490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vikas Saurabh resolved OAK-7490.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.6.12
                   1.4.22
                   1.2.30
                   1.8.3

Fixed on trunk at [r1831374|https://svn.apache.org/r1831374].
Backported to 1.8 at [r1831375|https://svn.apache.org/r1831375].
Backported to 1.6 at [r1831376|https://svn.apache.org/r1831376].
Backported to 1.4 at [r1831377|https://svn.apache.org/r1831377].
Backported to 1.2 at [r1831378|https://svn.apache.org/r1831378].

> oak-run console lc rmdata command uses second parameter for index path (and defaults to /oak:index/lucene)
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-7490
>                 URL: https://issues.apache.org/jira/browse/OAK-7490
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: oak-run
>            Reporter: Vikas Saurabh
>            Assignee: Vikas Saurabh
>            Priority: Major
>             Fix For: 1.10, 1.8.3, 1.2.30, 1.4.22, 1.6.12
>
>
> {{rmdata}} command currently takes 2 arguments where 1st one isn't even used - the second one is represents the index to be deleted.
> Worse yet, the command assumes a default index to be deleted to be {{/oak:index/lucene}} - that can lead to unintentional deletion.
> Destructive functionality, imo, shouldn't have default value for things to be deleted. Also, of course, we should fix that only 1 parameter is expected and parsed.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)