Someone help me? ("Roles imported failed" in pwAdmin)

Results 1 to 8 of 8
  1. #1
    Valued Member kombinho is offline
    MemberRank
    Nov 2011 Join Date
    121Posts

    sad Someone help me? ("Roles imported failed" in pwAdmin)

    Look guys I have a server then he always gave "Roles imported failed" in pwAdmin, said that there were special characters pwAdmin not accept that then I changed the filters for ASCII there I wipe delete all accounts after that it took over a normal i spent a few days time and again gave trouble now do not know what that is already blocked filters in the characters ...
    Someone help me please!?


  2. #2
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Someone help me?

    That feature never worked for me, I simply disabled it. -.-

  3. #3
    Valued Member kombinho is offline
    MemberRank
    Nov 2011 Join Date
    121Posts

    Re: Someone help me?

    Actually I saw and it just loads and does not update the SQLSYNC takes a long blank page appears there would be that WHAT?

  4. #4
    Angelemu founder tbnanubis is offline
    MemberRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: Someone help me?

    when its done you see a whole listof all characters on your server. You can then click on them to do stuff with them.
    For the sql transfer to be successfull, you need to add some htmlescape/javaescape/sqlexcape stuff to the role.jsp.

    Code:
    ~line 450:
    rolename = StringEscapeUtils.escapeSql(StringEscapeUtils.escapeJava(StringEscapeUtils.escapeHtml(chr.base.name.getString())));
    ~line 820:
    name = StringEscapeUtils.escapeHtml(character.base.name.getString());
    ~line 870:
    spouse = StringEscapeUtils.escapeHtml(GameDB.get(character.base.reserved1).base.name.getString());
    ~line 1158:
    String rolename = StringEscapeUtils.escapeHtml(ios.m_octets.getString());
    ~line 1374:
    String rolename = StringEscapeUtils.unescapeJava(rs.getString("role_name"));
    these are only approximate line numbers, as i changed some other stuff in our role.xml to get rid of that login check junk

  5. #5
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Someone help me?

    Quote Originally Posted by tbnanubis View Post
    when its done you see a whole listof all characters on your server. You can then click on them to do stuff with them.
    For the sql transfer to be successfull, you need to add some htmlescape/javaescape/sqlexcape stuff to the role.jsp.

    Code:
    ~line 450:
    rolename = StringEscapeUtils.escapeSql(StringEscapeUtils.escapeJava(StringEscapeUtils.escapeHtml(chr.base.name.getString())));
    ~line 820:
    name = StringEscapeUtils.escapeHtml(character.base.name.getString());
    ~line 870:
    spouse = StringEscapeUtils.escapeHtml(GameDB.get(character.base.reserved1).base.name.getString());
    ~line 1158:
    String rolename = StringEscapeUtils.escapeHtml(ios.m_octets.getString());
    ~line 1374:
    String rolename = StringEscapeUtils.unescapeJava(rs.getString("role_name"));
    these are only approximate line numbers, as i changed some other stuff in our role.xml to get rid of that login check junk
    Hmm looks interesting... I might take a look at it later.

  6. #6
    Angelemu founder tbnanubis is offline
    MemberRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: Someone help me?

    basically it does convert all special chars to html, like &, &u20; etc.. after that it escapes all " and ' and & so that the result is a valid string for mysql.

    for a display on the list it just works the other way round, except the html thing, because you want it displayed in proper html

  7. #7

    Re: Someone help me?

    Quote Originally Posted by tbnanubis View Post
    when its done you see a whole listof all characters on your server. You can then click on them to do stuff with them.
    For the sql transfer to be successfull, you need to add some htmlescape/javaescape/sqlexcape stuff to the role.jsp.

    Code:
    ~line 450:
    rolename = StringEscapeUtils.escapeSql(StringEscapeUtils.escapeJava(StringEscapeUtils.escapeHtml(chr.base.name.getString())));
    ~line 820:
    name = StringEscapeUtils.escapeHtml(character.base.name.getString());
    ~line 870:
    spouse = StringEscapeUtils.escapeHtml(GameDB.get(character.base.reserved1).base.name.getString());
    ~line 1158:
    String rolename = StringEscapeUtils.escapeHtml(ios.m_octets.getString());
    ~line 1374:
    String rolename = StringEscapeUtils.unescapeJava(rs.getString("role_name"));
    these are only approximate line numbers, as i changed some other stuff in our role.xml to get rid of that login check junk
    works now, thanks

  8. #8
    Valued Member kombinho is offline
    MemberRank
    Nov 2011 Join Date
    121Posts

    Re: Someone help me? ("Roles imported failed" in pwAdmin)

    thank you I'm increasingly impressed with the international Ragezone ...



Advertisement