Solr
  1. Solr
  2. SOLR-7832

bin/post: do not require -c when -url is specified

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.3, 6.0
    • Component/s: scripts and tools
    • Labels:
      None

      Description

      $ bin/post -url http://localhost:8983/solr/test/update example/films/films.csv 
      
      Collection must be specified.  Use -c <collection name> or set DEFAULT_SOLR_COLLECTION in your environment.
      

      Of course the collection/core is specified within the -url so -c should be unnecessary.

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1693958 from Erik Hatcher in branch 'dev/trunk'
        [ https://svn.apache.org/r1693958 ]

        SOLR-7832: bin/post now allows either -url or -c, rather than requiring both

        Show
        ASF subversion and git services added a comment - Commit 1693958 from Erik Hatcher in branch 'dev/trunk' [ https://svn.apache.org/r1693958 ] SOLR-7832 : bin/post now allows either -url or -c, rather than requiring both
        Hide
        ASF subversion and git services added a comment -

        Commit 1693959 from Erik Hatcher in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1693959 ]

        SOLR-7832: bin/post now allows either -url or -c, rather than requiring both (merged from trunk r1693958)

        Show
        ASF subversion and git services added a comment - Commit 1693959 from Erik Hatcher in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1693959 ] SOLR-7832 : bin/post now allows either -url or -c, rather than requiring both (merged from trunk r1693958)
        Hide
        Erik Hatcher added a comment -

        with this change, this now works:

        bin/post -url http://localhost:8888/solr/tmp/update/json -type application/json -d '{}'
        

        rather than requiring -c as well

        Show
        Erik Hatcher added a comment - with this change, this now works: bin/post -url http: //localhost:8888/solr/tmp/update/json -type application/json -d '{}' rather than requiring -c as well
        Hide
        Erik Hatcher added a comment -

        -c isn't required when -url is specified, though it isn't prohibited. -c is irrelevant if -url is specified though.

        Show
        Erik Hatcher added a comment - -c isn't required when -url is specified, though it isn't prohibited. -c is irrelevant if -url is specified though.
        Hide
        Shalin Shekhar Mangar added a comment -

        Bulk close for 5.3.0 release

        Show
        Shalin Shekhar Mangar added a comment - Bulk close for 5.3.0 release

          People

          • Assignee:
            Erik Hatcher
            Reporter:
            Erik Hatcher
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development