Problem/Motivation

I have this error sometime

Dkd\PhpCmis\Exception\CmisRuntimeException: { "status" : { "code" : 500, "name" : "Internal Error", "description" : "An error inside the HTTP server which prevented it from fulfilling the request." }, "message" : "Index 1 out of bounds for length 1", "exception" : "", "callstack" : [ ], "server" : "Community v6.2.1 (r531c5430-b1572) schema 13,001", "time" : "Jul 29, 2020, 12:35:36 PM" }

in Alfresco :

String[] authorizationParts = authorization.split(" ");
                if (!authorizationParts[0].equalsIgnoreCase("basic"))
                {
                    throw new WebScriptException(401, "Authorization '" + authorizationParts[0] + "' not supported.");
                }
                
                String decodedAuthorisation = new String(Base64.decode(authorizationParts[1]));

Maybe the ticket is empty at this line : https://git.drupalcode.org/project/cmis/-/blob/8.x-2.x/src/CmisConnectionApi.php#L110

Issue fork cmis-3162618

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

liber_t created an issue. See original summary.

liber_t’s picture

Full Drupal stack strace :

GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object) (Line: 203)
GuzzleHttp\Promise\Promise::callHandler(1, Object, Array) (Line: 156)
GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() (Line: 47)
GuzzleHttp\Promise\TaskQueue->run(1) (Line: 246)
GuzzleHttp\Promise\Promise->invokeWaitFn() (Line: 223)
GuzzleHttp\Promise\Promise->waitIfPending() (Line: 267)
GuzzleHttp\Promise\Promise->invokeWaitList() (Line: 225)
GuzzleHttp\Promise\Promise->waitIfPending() (Line: 62)
GuzzleHttp\Promise\Promise->wait() (Line: 182)
GuzzleHttp\Client->request('get', 'http://192.168.10.22:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser', Array) (Line: 95)
GuzzleHttp\Client->__call('get', Array) (Line: 262)
Dkd\PhpCmis\Bindings\Browser\AbstractBrowserBindingService->read(Object) (Line: 247)
Dkd\PhpCmis\Bindings\Browser\AbstractBrowserBindingService->readJson(Object) (Line: 187)
Dkd\PhpCmis\Bindings\Browser\AbstractBrowserBindingService->getRepositoriesInternal() (Line: 99)
Dkd\PhpCmis\Bindings\Browser\RepositoryService->getRepositoryInfos() (Line: 57)
Dkd\PhpCmis\SessionFactory->getRepositories(Array) (Line: 198)
Drupal\cmis\CmisConnectionApi->setRepository() (Line: 178)
Drupal\cmis\CmisConnectionApi->setSessionFactory() (Line: 160)
Drupal\cmis\CmisConnectionApi->setParameters(Array) (Line: 149)
Drupal\cmis\CmisConnectionApi->setDefaultParameters() (Line: 198)
Drupal\cmis\CmisBrowser->init('test', '') (Line: 90)
Drupal\cmis\CmisBrowser->__construct('test', '') (Line: 254)
Drupal\cmis\Controller\CmisRepositoryController->initBrowser('test', '') (Line: 67)
Drupal\cmis\Controller\CmisRepositoryController->browse('test', '')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Grimreaper’s picture

Status: Active » Postponed (maintainer needs more info)

Hello,

Ok, this needs a clear step to reproduce.

liber_t’s picture

Status: Postponed (maintainer needs more info) » Active

eg, if you are in query page, The logout is executed in ajax call, not in page.
and I have the problem with tempstore which is empty

liber_t’s picture

Assigned: liber_t » Grimreaper
Status: Active » Needs review
Grimreaper’s picture

Assigned: Grimreaper » liber_t
Status: Needs review » Needs work

Review done, thanks for your work.

Also a last point on the commit message. If I am not wrong, I helped you in private with this issue, so, It would be fair to be in the commit message ;). We will see that when merging when it will be ready :)

Grimreaper’s picture

Thanks to not mark comment has resolved by yourself. Let the reviewer do that. Put a comment "Done" (for example) to notify and for you to remember that it is done.

Grimreaper’s picture

Assigned: liber_t » Grimreaper

  • liber_t authored 3c4d5d4 on 8.x-2.x
    Issue #3162618 by liber_t, Grimreaper: [cmis_alfresco_auth_user] error...

  • liber_t authored 9a33666 on 3.0.x
    Issue #3162618 by liber_t, Grimreaper: [cmis_alfresco_auth_user] error...
Grimreaper’s picture

Version: 8.x-2.x-dev » 3.0.x-dev
Assigned: Grimreaper » Unassigned
Status: Needs work » Fixed

Commited on 8.x-2.x and then cherry-picked on 3.0.x

Status: Fixed » Closed (fixed)

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