Problem with locale accessing bonita forms by url

1
0
-1

Hi,

I am trying to access to bonita using this url: http://localhost:8080/bonita/loginservice?username=xxx&password=xxx&redi...$entry&process=ID_MY_PROCESS&mode=form&locale=fr

But the language of the form is english. Bonita generates this url on the redirect: http://localhost:8080/bonita/portal/homepage?ui=form&ui=form#form=MY_FORM$entry&process=ID_MY_PROCESS&mode=form&locale=fr

With the same code above, I put the locale (&locale=fr) before # and it works, but I need to use the first url...

It seems that the attribute locale is never used if you put it after #

I am using the community edition.

Any ideas?

regards,

2 answers

1
+1
-1

But in the documentation of 6.3.0 says that you should put the parameter there: http://documentation.bonitasoft.com/accessing-bonita-bpm-portal-and-form...

This is the example in the documentation: http://localhost:8080/bonita/?ui=form&autologin=Pool6--1.0#form=Pool6--1.0$entry&process=6972973247608922361&mode=form&locale=fr

I use this: http://localhost:8080/bonita?ui=form&autologin=XXX#form=YYY$entry&process=ZZZ&mode=form&locale=fr

And it doesn't work.

I use this: http://localhost:8080/bonita?ui=form&autologin=XXX&locale=fr#form=YYY$entry&process=ZZZ&mode=form

Everything goes fine.

I think the documentation has a mistake or something like that.

1
0
-1

Ola eduardo,

The "#" in the URL is seen as an anchor. Anchor are specific tags in the URL such as "&" , "=" , "?", .... http://www.w3.org/TR/html4/struct/links.html#h-12.2.3

So you cannot add the locale=fr after the #.

Hopefully it helps. Best regards, LL

Comments

Submitted by eduardo.gonzalez_1 on Wed, 09/10/2014 - 10:07

I solved it.

You have to put after ?ui=form the ?locale=fr, whith the ? before the parameter.

This is not explained in the bonita documentation, I think this is not serious. You have three kinds of URLS in the documentation in v6.X and any of them works for 6.3.0.

  1. You can connect to Bonita BPM Portal from other tools using a URL of the form http://host:port/bonita#?..... Other forms of URL are liable to change in future versions. For example, use http://localhost:8081/bonita#?process=myProcessId&locale=fr, and do not use http://localhost:8081/bonita/console/homepage#?process=myProcessId&locale=fr
  2.  
  3.  
  4. http://localhost:8080/bonita?ui=form&locale=en#form=Task%20link%20via%20email--1.0--Task$entry&mode=app&task=82
  5.  
  6.  
  7. http://localhost:8080/bonita?ui=form&autologin=Pool6--1.0#form=Pool6--1.0$entry&process=6972973247608922361&mode=app&locale=fr

Regards

Submitted by bos2013 on Mon, 09/15/2014 - 13:36

Thanks for your feedback and resolution.

I have contacted the Doc Department to update the online documentation.

Best regards, LL

Notifications