Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-3732

Implementation of setupResellerPropertyOverrides.groovy script for invalid password

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: Mercury
    • Fix Version/s: All Time Backlog
    • Component/s: Other / Misc.
    • Labels:
      None
    • Environment:

      Build ops-scripts-2.8.0-20150923.131610-63-bin.zip

      Description

      If the password for distribution service is invalid then the script doesn't throw unauthorized access exception right away instead it asks inputs for content-editor properties.

      Steps:

      1. [amlops@aml-qa4-monman1 groovy]$ groovy setupResellerPropertyOverrides.groovy -dh aml-qa4-front1 -dl 8080 -u readwrite -rs b8a7d340-30e0-4369-97d0-8f901d238f86
      DEBUG - Base path: http://aml-qa4-front1:8080/distribution/rest/
      Enter the password for readwrite: <Invalid password>

      2. Would you like to override any Content Editor properties for this reseller?

      Would you like to override ce.parentClientCustomerID ?y
      Enter a value for CE Property field "ce.parentClientCustomerID" : y
      .
      .
      .

      Sep 28, 2015 2:14:10 PM groovyx.net.http.HTTPBuilder doRequest

      WARNING: Error parsing 'text/html;charset=utf-8' response
      groovy.json.JsonException: Lexing failed on line: 1, column: 1, while reading '<', no possible valid JSON value or punctuation could be recognized.
      at groovy.json.JsonLexer.nextToken(JsonLexer.java:82)
      at groovy.json.JsonSlurper.parse(JsonSlurper.java:73)
      at groovyx.net.http.ParserRegistry.parseJSON(ParserRegistry.java:280)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      Expected:

      We can throw exception immediately like "setupDistributions.groovy"

      [amlops@aml-qa4-monman1 groovy]$ groovy setupDistributions.groovy -dh aml-qa4-front1 -dl 8080 -u readwrite -rs b8a7d340-30e0-4369-97d0-8f901d238f86
      DEBUG - Provided Options:
      -dh: aml-qa4-front1
      -dl: 8080
      -u: readwrite
      -rs: b8a7d340-30e0-4369-97d0-8f901d238f86
      DEBUG - Base path: http://aml-qa4-front1:8080/distribution/rest/
      Enter the password for readwrite:
      Sep 28, 2015 2:26:07 PM groovyx.net.http.HTTPBuilder doRequest
      WARNING: Error parsing 'text/html;charset=utf-8' response
      groovy.json.JsonException: Lexing failed on line: 1, column: 1, while reading '<', no possible valid JSON value or punctuation could be recognized.
      at groovy.json.JsonLexer.nextToken(JsonLexer.java:82)
      at groovy.json.JsonSlurper.parse(JsonSlurper.java:73)
      at groovyx.net.http.ParserRegistry.parseJSON(ParserRegistry.java:280)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              atul.sanagar Atul Sanagar (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: