Revert "Resolves: fdo#72277 https CMIS Alfresco "The specified device is invalid.""
This reverts commit 0d1f724f9645e7ec0da6a4c3a1c22d0dcf785cb6. (as requested by https://bugs.freedesktop.org/show_bug.cgi?id=72277#c20)
This commit is contained in:
parent
3cf58da99e
commit
4bdaa70ffb
@ -297,11 +297,9 @@ namespace cmis
|
|||||||
ALFRESCO_CLOUD_SCOPE, ALFRESCO_CLOUD_REDIRECT_URI,
|
ALFRESCO_CLOUD_SCOPE, ALFRESCO_CLOUD_REDIRECT_URI,
|
||||||
ALFRESCO_CLOUD_CLIENT_ID, ALFRESCO_CLOUD_CLIENT_SECRET ) );
|
ALFRESCO_CLOUD_CLIENT_ID, ALFRESCO_CLOUD_CLIENT_SECRET ) );
|
||||||
|
|
||||||
OUString pURL = m_aURL.getBindingUrl( );
|
|
||||||
|
|
||||||
m_pSession = libcmis::SessionFactory::createSession(
|
m_pSession = libcmis::SessionFactory::createSession(
|
||||||
OUSTR_TO_STDSTR( m_aURL.getBindingUrl( ) ),
|
OUSTR_TO_STDSTR( m_aURL.getBindingUrl( ) ),
|
||||||
rUsername, rPassword, OUSTR_TO_STDSTR( m_aURL.getRepositoryId( ) ), pURL.startsWith("https")?true:false, oauth2Data );
|
rUsername, rPassword, OUSTR_TO_STDSTR( m_aURL.getRepositoryId( ) ), sal_False, oauth2Data );
|
||||||
if ( m_pSession == NULL )
|
if ( m_pSession == NULL )
|
||||||
ucbhelper::cancelCommandExecution(
|
ucbhelper::cancelCommandExecution(
|
||||||
ucb::IOErrorCode_INVALID_DEVICE,
|
ucb::IOErrorCode_INVALID_DEVICE,
|
||||||
|
@ -159,11 +159,9 @@ namespace cmis
|
|||||||
ALFRESCO_CLOUD_SCOPE, ALFRESCO_CLOUD_REDIRECT_URI,
|
ALFRESCO_CLOUD_SCOPE, ALFRESCO_CLOUD_REDIRECT_URI,
|
||||||
ALFRESCO_CLOUD_CLIENT_ID, ALFRESCO_CLOUD_CLIENT_SECRET ) );
|
ALFRESCO_CLOUD_CLIENT_ID, ALFRESCO_CLOUD_CLIENT_SECRET ) );
|
||||||
|
|
||||||
OUString pURL = m_aURL.getBindingUrl( );
|
|
||||||
|
|
||||||
libcmis::Session* session = libcmis::SessionFactory::createSession(
|
libcmis::Session* session = libcmis::SessionFactory::createSession(
|
||||||
OUSTR_TO_STDSTR(pURL),
|
OUSTR_TO_STDSTR( m_aURL.getBindingUrl( ) ),
|
||||||
rUsername, rPassword, "", pURL.startsWith("https")?true:false, oauth2Data );
|
rUsername, rPassword, "", sal_False, oauth2Data );
|
||||||
if (session == NULL )
|
if (session == NULL )
|
||||||
ucbhelper::cancelCommandExecution(
|
ucbhelper::cancelCommandExecution(
|
||||||
ucb::IOErrorCode_INVALID_DEVICE,
|
ucb::IOErrorCode_INVALID_DEVICE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user