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

Checkout not working as expected #736

Closed
nyrhilak opened this issue Apr 4, 2018 · 2 comments
Closed

Checkout not working as expected #736

nyrhilak opened this issue Apr 4, 2018 · 2 comments

Comments

@nyrhilak
Copy link

nyrhilak commented Apr 4, 2018

I have been making nodejs program which needs to checkin and checkout files. When I try to checkout, I get an error message

{ response:
{ exception:
{ __type: 'UserException',
message: 'Only IFC or IFCXML allowed when checking out' } } }

Even when I use the following function

var query = JSON.stringify({includeAllFields : true}).toString("base64");
return new Promise((resolve, reject) => {
    var Opts = {
    uri : 'http://localhost:8082/json',
    method : 'POST',
    json : 
          {
           "token": logToken,
           "request": {
           "interface": "ServiceInterface", 
           "method": "download", 
           "parameters": {
               "roids": [roid], //Gained by calling getallrevisionsofProject
               "query": query,
//Taken from getAllSerializerForRoids->response[i].oid, I have tried all IFC2x3tc1 serializers 
//and IFC4 serializers
                "serializerOid": serializerOid, 
                 "sync": "true"
             }
             }
           }
        }
        request.post(Opts, function(error, response, body){
            if(error) reject(error);
            resolve(body.response);
        })
    })
@rubendel
Copy link
Member

rubendel commented Apr 6, 2018

I don't think the checkout functionality is used much anymore. Just to be sure, do you want to "lock" the specified revision (which is what checkout does), or do you just want to download the revision? Because in that case, you can simply use "download" for that purpose.

Of course any calls available should be working, I'll have a look and see why "checkout" is not working as expected.

@nyrhilak
Copy link
Author

I got this working with download, but just thought that available calls should work. Thanks for your time

hlg added a commit to hlg/BIMserver that referenced this issue Mar 4, 2020
* only for non-streaming, since LongDownloadOrCheckoutAction is
  currently not working for streaming serializers
* removed IFCXML, since they are not anymore in plugin.xml
hlg added a commit to hlg/BIMserver that referenced this issue Mar 12, 2020
* only for non-streaming, since LongDownloadOrCheckoutAction is
  currently not working for streaming serializers
* removed IFCXML, since they are not anymore in plugin.xml
hlg added a commit to hlg/BIMserver that referenced this issue Mar 22, 2020
* only for non-streaming, since LongDownloadOrCheckoutAction is
  currently not working for streaming serializers
* removed IFCXML, since they are not anymore in plugin.xml
hlg added a commit to hlg/BIMserver that referenced this issue Jul 22, 2020
* only for non-streaming, since LongDownloadOrCheckoutAction is
  currently not working for streaming serializers
* removed IFCXML, since they are not anymore in plugin.xml
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

2 participants