Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BadRequest: The id "jwt_auth" is invalid - it is already in use. #119

Closed
mstaniszczak opened this issue Jun 6, 2016 · 3 comments
Closed
Assignees

Comments

@mstaniszczak
Copy link

After add to configure.zcml:

<include package="plone.restapi" />

I can't create fresh instance. Here you are fresh trackback:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module plone4.csrffixes.patches, line 8, in disable_csrf
  Module Products.CMFPlone.browser.admin, line 208, in __call__
  Module Products.CMFPlone.factory, line 105, in addPloneSite
  Module Products.GenericSetup.tool, line 365, in runAllImportStepsFromProfile
   - __traceback_info__: profile-plone.restapi:performance
  Module Products.GenericSetup.tool, line 1119, in _runImportStepsFromContext
  Module Products.GenericSetup.tool, line 1030, in _doRunImportStep
   - __traceback_info__: plone.restapi
  Module plone.restapi.setuphandlers, line 24, in import_various
  Module plone.restapi.setuphandlers, line 9, in install_pas_plugin
  Module Products.PluggableAuthService.PluggableAuthService, line 452, in _setObject
  Module OFS.ObjectManager, line 326, in _setObject
  Module OFS.ObjectManager, line 116, in checkValidId
BadRequest: The id "jwt_auth" is invalid - it is already in use.

There is no more plone.restapi references, that this one line in configure.zcml in one of our addons.

@pabo3000
Copy link

If you get stuck in this error f. e. while upgrading plone.restapi then you can delete the object with the id "jwt_auth" in the ZMI.

@lukasgraf
Copy link
Member

@tisto @buchi:
The setuphandler code for the jwt_auth plugin should probably deal gracefully with the case where it's already present.

However, in the traceback above I see that the plone.restapi:performance profile also is being installed - that might be part of the issue here.

@tisto
Copy link
Sponsor Member

tisto commented Nov 26, 2016

Closing the issue. This seems to be a result of a broken configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants