Uploaded image for project: 'Mobile App'
  1. Mobile App
  2. MOBILEAPP-3

get-token with login and password : error 500

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 1.0.0
    • None
    • None
    • None
    • 4.4 M5

      how to reproduce
      http://mstlucemobileapp-site.ironman.anyware.corp/_plugins/mobileapp/1/intranet/get-token
      In headers or body

      {"login":"fravetier","password":"admin"}
      

      I have the 500 error

      Caused by: java.lang.NullPointerException
      	at org.ametys.core.util.URIUtils._encodeUriComponent(URIUtils.java:90)
      	at org.ametys.core.util.URIUtils.encodeParameter(URIUtils.java:51)
      	at org.ametys.plugins.mobileapp.action.GetTokenAction.authenticate(GetTokenAction.java:128)
      	at org.ametys.plugins.mobileapp.action.GetTokenAction.act(GetTokenAction.java:83)
      

          [MOBILEAPP-3] get-token with login and password : error 500

          seems ok

          The json is like

          {"login":"fravetier","password":"admin"}
          

          Frederic Ravetier (Inactive) added a comment - The json is like { "login" : "fravetier" , "password" : "admin" }

          It works with a regular get like this :

          http://mstlucemobileapp-site.ironman.anyware.corp/_plugins/mobileapp/1/intranet/get-token?login=fravetier&password=admin
          

          But it does not work with a post like in the specification where the body contains the json

          {"Username":"fravetier","Password":"admin"}
          

          Frederic Ravetier (Inactive) added a comment - It works with a regular get like this : http: //mstlucemobileapp-site.ironman.anyware.corp/_plugins/mobileapp/1/intranet/get-token?login=fravetier&password=admin But it does not work with a post like in the specification where the body contains the json { "Username" : "fravetier" , "Password" : "admin" }

          For information, if I do a GET with ?login=<login>&password=<password> then it works

          But it was not specified like this!

          Frederic Ravetier (Inactive) added a comment - - edited For information, if I do a GET with ?login=<login>&password=<password> then it works But it was not specified like this!

            cedric Cédric Damioli
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: