Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed on Windows #6

Open
rkbrewer opened this issue Nov 11, 2016 · 3 comments
Open

Failed on Windows #6

rkbrewer opened this issue Nov 11, 2016 · 3 comments

Comments

@rkbrewer
Copy link

Any idea what's going on with Windows? Googling the error hasn't been helpful, no matter which way I hunt it down.

On a file change, gulp-slang reports a failed upload:

File Upload Failed: 500 - javax.jcr.RepositoryException: Incorrect workspace. Expecting /C. Received crx.default

I've never changed my workspace, and the same setting works on macOS machines.

@andrewicarlson
Copy link

@rkbrewer I just debugged this for a current project and it ended up being an issue with the way it was searching the path on Windows machines, searching for jcr_root/ and that forward slash would work on Mac, not Windows.

We had it fixed and working with a local package and after prepping a PR into this repo found it was fixed in a later release: 8fcee04 -- Should be safe to use cross environment now.

@esr360
Copy link

esr360 commented Sep 27, 2017

I'm still experiencing this error File Upload Failed: 500 - javax.jcr.RepositoryException: Incorrect workspace. Expecting /C. Received crx.default on Windows machine, but it works on Mac.

@esr360
Copy link

esr360 commented Oct 30, 2017

This issue happens because of how Windows parses paths. We need to remove C: from the destPath variable, before it gets made part of the URL variable:

        if (destPath.indexOf('C:') !== -1) {
            destPath = destPath.replace('C:', '');
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants