Cedrus-1 / asmack

Automatically exported from code.google.com/p/asmack
Other
0 stars 0 forks source link

Registration #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What are you doing to produce the error?
1. Connect to the XMPP server
2. Register a new user (AccountManager.createAccount(String username, String 
password) - a username and password (test / test) was provided

What is the expected output?
Successful registration according to XEP-0077

What do you see instead? (Please attach a debug enabled logcat)
Exception (bad-request), see logcat file

What version of aSmack / Android / Device do you use?
asmack-2010.05.07 / Android 1.5 / Emulator (AVD 1.5)

What server do you use? Is there a public server to reproduce the problem?
jabber.hot-chilli.net (ejabberd)

What else might help us to reproduce and hunt down the problem?
In the AccountManager.createAccount(String username, String password) method 
all required attributes including password and username are put with a value of 
"" into the attributes map. Then the AccountManager.createAccount(String 
username, String password, Map<String, String> attributes) method is called. In 
this method the username and password is put into the attribute map. After that 
all values of the attributes map of the AccountManager.createAccount(String 
username, String password) method are put into the map. Because of that the 
correct values for the username and password are overridden. There are several 
possibilities to fix this bug. I have attached a small patch including a very 
simple fix. Is it possible to include the fix in the next release?

Original issue reported on code.google.com by mha...@gmail.com on 28 Jul 2010 at 9:57

Attachments:

GoogleCodeExporter commented 8 years ago
commited as 
http://github.com/rtreffer/smack/commit/bf8516ae76464b9615332f34989e706b7660b83d

A new release is in the making.

Thanks!

Original comment by rtreffer@gmail.com on 26 Aug 2010 at 7:17

GoogleCodeExporter commented 8 years ago
  I now use the latest asmack-jse-buddycloud-2010.12.11.jar,it resolve the bug?

Original comment by zengqin...@gmail.com on 31 Mar 2011 at 3:01

GoogleCodeExporter commented 8 years ago
I test in asmack-jse-buddycloud-2010.12.11.jar ,it also can't register the 
user,code is below:
  AccountManager accountManager = new AccountManager(connection);
  accountManager.createAccount("lpp","lpp");

the error log is:
  03-31 03:04:29.429: WARN/System.err(2746): conflict(409)
  03-31 03:04:29.429: WARN/System.err(2746):     at      org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:246)
03-31 03:04:29.429: WARN/System.err(2746):     at 
org.jivesoftware.smack.AccountManager.createAccount(AccountManager.java:207)

  is anybody meet this issues?if you can help me,thannk you  very much 

Original comment by zengqin...@gmail.com on 31 Mar 2011 at 3:07

GoogleCodeExporter commented 8 years ago
 I'm sorry, it create user success ,because I see new lpp(new use i create) is in the xmpp server(openfire) admin..But why it  have error?

Original comment by zengqin...@gmail.com on 31 Mar 2011 at 3:11