Skip to content

Searching crashes sinopia #239

@yamalight

Description

@yamalight

Doing a clean npm install sinopia (tested v1.2.1), running sinopia afterwards and trying to execute npm --registry http://localhost:4873/ search lodash crashes the sinopia with following error:

 http  --> 200, req: 'GET https://registry.npmjs.org/-/all/since?stale=update_after&startkey=1428935892000', bytes: 0/2811985
 fatal --- uncaught exception, please report this
RangeError: Maximum call stack size exceeded
    at sigmund (/Users/yamalight/Server/test/node_modules/sinopia/node_modules/minimatch/node_modules/sigmund/sigmund.js:2:18)
    at new Minimatch (/Users/yamalight/Server/test/node_modules/sinopia/node_modules/minimatch/minimatch.js:153:35)
    at Function.minimatch.makeRe (/Users/yamalight/Server/test/node_modules/sinopia/node_modules/minimatch/minimatch.js:782:10)
    at Config.get_package_spec (/Users/yamalight/Server/test/node_modules/sinopia/lib/config.js:154:19)
    at Auth.allow_access (/Users/yamalight/Server/test/node_modules/sinopia/lib/auth.js:132:43)
    at /Users/yamalight/Server/test/node_modules/sinopia/lib/index-api.js:90:14
    at iterate (/Users/yamalight/Server/test/node_modules/sinopia/node_modules/async/lib/async.js:149:13)
    at /Users/yamalight/Server/test/node_modules/sinopia/node_modules/async/lib/async.js:160:25
    at /Users/yamalight/Server/test/node_modules/sinopia/lib/index-api.js:102:11
    at /Users/yamalight/Server/test/node_modules/sinopia/lib/auth.js:143:22

Tried using with iojs v1.7.1 and node v0.12.2 - same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions