Hi, I see that there is code in the 8.x-2.x branch which allows for compatibility with the latest php-cmis-client (and guzzle 6). I am unable to install this via composer as it keeps picking up 1.x. Would it be possible to release 2.x for use?

Comments

bkildow created an issue. See original summary.

socialnicheguru’s picture

I get the following:
- Installation request for drupal/cmis 1.x-dev -> satisfiable by drupal/cmis[1.x-dev].
- Conclusion: remove guzzlehttp/guzzle 6.3.3
- drupal/cmis 1.x-dev requires dkd/php-cmis ^1.0 -> satisfiable by dkd/php-cmis[1.0.1, 1.0.x-dev, v1.0.0].
- dkd/php-cmis 1.0.1 requires guzzlehttp/guzzle ~5.0 -> satisfiable by guzzlehttp/guzzle[5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 5.2.0, 5.3.0, 5.3.1, 5.3.2, 5.3.3, 5.3.x-dev].
- dkd/php-cmis 1.0.x-dev requires guzzlehttp/guzzle ~5.0 -> satisfiable by guzzlehttp/guzzle[5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 5.2.0, 5.3.0, 5.3.1, 5.3.2, 5.3.3, 5.3.x-dev].
- dkd/php-cmis v1.0.0 requires guzzlehttp/guzzle ~5.0 -> satisfiable by guzzlehttp/guzzle[5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 5.2.0, 5.3.0, 5.3.1, 5.3.2, 5.3.3, 5.3.x-dev].
- Can only install one of: guzzlehttp/guzzle[6.3.3, 5.0.0].
- Can only install one of: guzzlehttp/guzzle[6.3.3, 5.0.1].
- Can only install one of: guzzlehttp/guzzle[6.3.3, 5.0.2].
- Can only install one of: guzzlehttp/guzzle[6.3.3, 5.0.3].
- Can only install one of: guzzlehttp/guzzle[6.3.3, 5.1.0].
- Can only install one of: guzzlehttp/guzzle[6.3.3, 5.2.0].
- Can only install one of: guzzlehttp/guzzle[6.3.3, 5.3.0].
- Can only install one of: guzzlehttp/guzzle[6.3.3, 5.3.1].
- Can only install one of: guzzlehttp/guzzle[6.3.3, 5.3.2].
- Can only install one of: guzzlehttp/guzzle[6.3.3, 5.3.3].
- Can only install one of: guzzlehttp/guzzle[6.3.3, 5.3.x-dev].
- Installation request for guzzlehttp/guzzle (installed at 6.3.3) -> satisfiable by guzzlehttp/guzzle[6.3.3].

socialnicheguru’s picture

Any update on making the 2.x version available?

jncruces’s picture

They must create a new release to get the 2.x-dev version.

Instead you can add a repository to read from git directly:

    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
            "type": "package",
            "package": {
                "name": "drupal/cmis",
                "version": "dev-master",
                "type": "drupal-module",
                "extra": {
                    "installer-name": "cmis"
                },
                "source": {
                    "url": "https://git.drupalcode.org/project/cmis.git",
                    "type": "git",
                    "reference": "6afa16fe54bbd3042f9f56ab1dea6cf55ac47889"
                },
                "require": {
                    "composer/installers": "~1.0"
                }
            }
        }
    ],

And then you can use composer normally:

$ composer require drupal/cmis

Greetings

digitalcatalyst’s picture

I found I had to make a slight change to my composer, with drupal 8.8.2 version, note the "cmis" : { with in the repositories segment

    "repositories": {
        "drupal": {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        "cmis": {
            "type": "package",
            "package": {
                "name": "drupal/cmis",
                "version": "dev-master",
                "type": "drupal-module",
                "extra": {
                    "installer-name": "cmis"
                },
                "source": {
                    "url": "https://git.drupalcode.org/project/cmis.git",
                    "type": "git",
                    "reference": "6afa16fe54bbd3042f9f56ab1dea6cf55ac47889"
                },
                "require": {
                    "composer/installers": "~1.0"
                }
            }
        }
    },

after this change i could run composer require drupal/cmis and i get the correct version. after that cd into the modules/contrib/cmis folder and run composer require dkid/phpcmis to install the php cmis client. after that apply patch from https://www.drupal.org/project/cmis/issues/3059528

and use the the browser binding url https://********/alfresco/api/-default-/public/cmis/versions/1.1/browser in the cmis connection.
this was tested against 6.1.2-ga

prudloff’s picture

Here is a cleaner way to require the 2.x branch (without having to require an exact commit):

  "repositories": [
    {
      "type": "composer",
      "url": "https://packages.drupal.org/8"
    },
    {
      "type": "vcs",
      "url": "https://git.drupalcode.org/project/cmis.git"
    }
  ],

And then:

composer require drupal/cmis dev-8.x-2.x
grimreaper’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
Status: Active » Fixed

Hello,

Now that the 8.x-2.x-dev development release exists and is published. Onlycomposer require drupal/cmis:2.x-dev is required.

Regards,

grimreaper’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.