on 2018 May 14 10:53 AM - last edited on 2024 Feb 04 5:47 AM by postmig_api_4
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.