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

[WIP] update according to changes in everrest #1291

Closed
wants to merge 3 commits into from
Closed

[WIP] update according to changes in everrest #1291

wants to merge 3 commits into from

Conversation

andrew00x
Copy link

@andrew00x andrew00x commented May 18, 2016

@codenvy-ci
Copy link

Build # 622 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/622/ to view the results.

@benoitf
Copy link
Contributor

benoitf commented May 23, 2016

is it a work in progress pull request ? or it requires a new external component to be integrated in Che if so it should contains indicator about that or link to the required dependency "update version" issue/pr

@benoitf benoitf changed the title update according to changes in everrest [WIP] update according to changes in everrest May 25, 2016
@codenvy-ci
Copy link

Build # 757 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/757/ to view the results.

@mkuznyetsov
Copy link
Contributor

@mkuznyetsov
Copy link
Contributor

mkuznyetsov commented Jun 2, 2016

If merged with master, on project importing, in the end it will start syncing with wsmaster.
It will start making PUT queries like:
http://localhost:8080/wsmaster/api/workspace/workspace6macbhg8qxr4ee0m/project/%2Fsmals
It will return 400 error.

Syncing code:
https://github.com/eclipse/che/blob/658410556f8d0d5c91316890111ff7dc9d57cba1/wsagent/che-core-api-project/src/main/java/org/eclipse/che/api/project/server/WorkspaceProjectsSyncer.java#L62-L62

In general, everything that uses workspace service's update project will fail similary

@mkuznyetsov
Copy link
Contributor

mkuznyetsov commented Jun 17, 2016

protected void updateProject(ProjectConfig project) throws ServerException {

    final String href = UriBuilder.fromUri(apiEndpoint)
                                  .path(WorkspaceService.class)
                                  .path(WorkspaceService.class, "updateProject")
                                  .build(workspaceId, project.getPath()).toString();
    try {
        httpJsonRequestFactory.fromUrl(href).usePutMethod().setBody(asDto(project)).request();
    } catch (IOException | ApiException e) {
        throw new ServerException(e.getMessage());
    }

}

here:
href = "http://che-host:8080/wsmaster/api/workspace/workspacerakstqx7gu2gixh3/project/%2Fsimple-2"
project.getPath() = "/simple-2"

on master:
href = http://che-host:8080/wsmaster/api/workspace/workspacegt6uiep1lt9088kw/project//simple-2
project.getPath() = "/simple-2"

https://github.com/eclipse/che/blob/master/wsagent/che-core-api-project/src/main/java/org/eclipse/che/api/project/server/WorkspaceHolder.java#L113

video, showing the problem on UI: https://youtu.be/iNzTRuR6WWw
archive with tomcat : https://www.dropbox.com/s/chg2o1talgln6sn/che-4.4.0-andrew00x.tar.gz?dl=0

@mkuznyetsov
Copy link
Contributor

closed as old duplicate of #1625

@bmicklea bmicklea removed this from the 4.6.0 milestone Jul 26, 2016
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

Successfully merging this pull request may close these issues.

6 participants