Skip to Content
3
Former Member
May 14, 2018 at 09:53 AM

Datahub hybris-test-adapter 6.7 and https issue

397 Views

Hallo Experts,

we are setting up a new datahub project under 6.7 and with https. The local.properties configuration of hybris core and datahub is the same as shown in hybris wiki for 6.7. When we publish to hybris core we have no problems and the publication runs proper with success and without any logged error.

If we attach the hybris-test-adapter for testing purpose we run into an publication error and got a strange test-adapter behavior. The output of "exportCode" section in target extension was written to impex file but the impex lines itself were not written. The log shows:

org.springframework.security.access.AccessDeniedException: User is not authorized for this operation

Publication error from datahub db table shows:

Failed to save data being exported in SubTargetSystemPublicationEntity{id=11, status=IN_PROGRESS, publicationType=INSERT, publicationAction=PublicationActionEntity{id=2, pool=DataHubPoolEntity{id=1100, name=CUSTOM_POOL}}, targetSystem=TargetSystemEntity{id=1, targetSystemName='HybrisCoreCustom', targetSystemType='HybrisCore'}}; Caused by AccessDeniedException: User is not authorized for this operation

If we disable https the hybris.test-adapter works proper and we got the whole impex output.

Any suggestions are welcome :-)

Thorsten