Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-3681

Role with Content/Create policy with Limitation on Language can result in 401 when creating content on the fly

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • Customer request, 4.1.6, 3.3.25, 4.2.1
    • 4.2.0, 4.1.5, 3.3.24
    • None
    • None

    Description

      Limitations on Language that is not the default one for Content/Create policy will end up in

      The User does not have the 'create' 'content' permission with: parentLocationId 'X', sectionId 'Y' 

      when creating content on the fly from UDW.

      Steps to reproduce
      1. Clean installation of Ibexa DXP v3.3+
      2. Create a new User Group called Editors FR and a new user in this group Editor FR.
      3. Add a new Language French fre-FR
      4. Create a new Role Editors FR with policies:

      Module Function Limitations
      User All functions None
      Content Read None
      Content Create
      • Language: French
      Content Versionread None

      5. Assing this role to Editors FR
      6. Log in as Editor FR and start a draft of a Landing Page.
      7. Add embed block to the Landing Page, and when choosing Content to embed inside UDW click on "Create +"
      8. Select any Content Type and click "Create"

      Result:

      The User does not have the 'create' 'content' permission with: parentLocationId 'X', sectionId 'Y' 

      Expected Result:
      Content is created as expected

       

      Additional notes:
      The issue occurs because UDW is using eng-GB language code as a default language for the Content created on the fly. Where there is more than one language available and set in the content/create limitation, the user can select it manually from the dropdown and continue without exception being thrown.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              mateusz.bieniek@ibexa.co Mateusz Bieniek
              Votes:
              7 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: