Details

      Description

      Issue
      JSONWS services with Locale is incorrectly being prepended

      Steps to reproduce

      1. Login to Liferay

      2. Go to /api/jsonws

      3. Search for "add-user" (It has Locale field).

      4. Fill in the data to properly invoke. Example you can use:

       

       companyId: 20099
       autoPassword: false
       password1: test
       password2: test
       autoScreeName: false
       screenName: user0
       emailAddress: user0@liferay.com
       facebookId: 0
       Locale: ja_JP
       firstName: user
       lastName: 0
       prefixId: 0
       suffixId: 0
       birthdayMonth: 0
       birthdayDay: 1
       birthdayYear: 1970
       sendEmail: false

      5. Switch to curl example. Confirm that locale field looks like:

       

       -d +locale= ja_JP

      6. Execute the curl command in a terminal.

      7. Exception is thrown

      8. Remove the + and execute it again

      9. User is created successfully

       

      Actual results
      API with Locale field cannot be executed from /api/jsonws

      Expected results
      API with Locale field can be executed successfully from /api/jsonws

      **Reproduced in
      7.0.x ( db012336f4f2c8294825101f3a10bfdcce1998f2)
      7.1.x (e9ea30851a070c6d9cf9978dbd7ab1dcc28ee658)**
      master (8c57e447a561f42324a7fca2bcc0eba76e1290ca)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                32 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP68
                7.0.X
                7.1.10 DXP FP5
                7.1.10.1 SP1
                7.1.2 CE GA3
                7.1.X
                Master