Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-10052

Bower does not work with context path

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Bower
    • Labels:
      None
    • Environment:
      MacOSX
    • Story Points:
      0.5
    • Sprint:
      Sprint 66 - Föhn, Sprint 67 - Föhn

      Description

      Noticed that when using a context path in Nexus when you put that path into your .bowerrc the resultant interactions error with errors like below.
      Only workaround seems to be not to use a context path.
      I am not sure how critical context path is for people so leaving major for now.

      On sudo bower --allow-root install jquery

      bower not-cached nexus+http://localhost:8081/nexus/repository/bower-group/jquery#*
      bower resolve nexus+http://localhost:8081/nexus/repository/bower-group/jquery#*
      bower error http://localhost:8081/repository/repository/bower-group/versions.json (HTTP 404)

      Stack trace:
      Error: http://localhost:8081/repository/repository/bower-group/versions.json (HTTP 404)
      at Request._callback (/usr/local/lib/node_modules/bower-nexus3-resolver/src/index.js:212:20)
      at Request.self.callback (/usr/local/lib/node_modules/bower-nexus3-resolver/node_modules/request/request.js:198:22)
      at Request.emit (events.js:110:17)
      at Request.<anonymous> (/usr/local/lib/node_modules/bower-nexus3-resolver/node_modules/request/request.js:1035:10)
      at Request.emit (events.js:129:20)
      at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/bower-nexus3-resolver/node_modules/request/request.js:962:12)
      at IncomingMessage.emit (events.js:129:20)
      at _stream_readable.js:908:16
      at process._tickCallback (node.js:355:11)

      Console trace:
      Error
      at StandardRenderer.error (/usr/local/lib/node_modules/bower/lib/renderers/StandardRenderer.js:83:37)
      at Logger.<anonymous> (/usr/local/lib/node_modules/bower/lib/bin/bower.js:110:26)
      at Logger.emit (events.js:107:17)
      at Logger.emit (/usr/local/lib/node_modules/bower/lib/node_modules/bower-logger/lib/Logger.js:29:39)
      at /usr/local/lib/node_modules/bower/lib/commands/index.js:48:20
      at _rejected (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:844:24)
      at /usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:870:30
      at Promise.when (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:1122:31)
      at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:788:41)
      at /usr/local/lib/node_modules/bower/lib/node_modules/q/q.js:604:44
      System info:
      Bower version: 1.7.7
      Node version: 0.12.9
      OS: Darwin 15.4.0 x64

      Setup was with a single bower group containing a bower proxy and context path /nexus/.

      Bower is new to 3.0.0 so no backcheck (or NX2 check) can be done.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jtom Joe Tom
              Reporter:
              jtom Joe Tom
              Last Updated By:
              Peter Lynch
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title