cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Datahub hybris-test-adapter 6.7 and https issue

Former Member
649

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member333910
Active Participant

Hi Thorsten,

The error seems more related to Authorization than HTTPS. We have seen a similar issue before and the recommendation when using the hybris.test-adapter was to start Data Hub using the no_auth profile. See the 'Disabling Basic Authentication' section of this doc: https://help.hybris.com/6.7.0/hcd/0cb1c54a3f1a4779a5f2b0096e7cc5d5.html

This should be a suitable workaround since the test-adapter is intended for viewing the ImpEx produced by Data Hub for debugging/troubleshooting/informational purposes and not for production use.

Former Member
0 Kudos

Hallo Justin, thanks very much for your posted solution. I activate the no_auth profile in catalina.sh and now i got the whole impex without any error from hybris test adapter.

Best Regards Thorsten

Answers (0)