Hello,
I encounter a strange error when trying to call GET DOMAIN. It goes through for types "nameservers", "auto_renew_flag", "rsp_whois_info", "status" but it fails for "all_info", "owner", "admin", "billing" and "tech".
I created my own Java classes for encryption, XML encoding/decoding, OpenSRS authentication and communication.
Here is my request sent to Horizon:
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
    <!DOCTYPE OPS_envelope SYSTEM ops.dtd">
    <OPS_envelope>
        <header>
            <version>0.9</version>
        </header>
        <body>
            <data_block>
                <dt_assoc>
                    <item key="attributes">
                        <dt_assoc>
                            <item key="type">all_info</item>
                            <item key="domain_name">radu.net</item>
                        </dt_assoc>
                    </item>
                    <item key="object">DOMAIN</item>
                    <item key="cookie">bla:bla</item>
                    <item key="action">GET</item>
                    <item key="protocol">XCP</item>
            </dt_assoc>
        </data_block>
    </body>
</OPS_envelope>
And this is the error I get when I attempt to decrypt the OpenSRS response
 
17:38:06,018 ERROR [STDERR] javax.crypto.BadPaddingException: Trying to decode improperly padded block - padding larger than block
17:38:06,023 ERROR [STDERR]     at com.isnetworks.provider.PKCS5Padding.decode(PKCS5Padding.java:31)
17:38:06,024 ERROR [STDERR]     at com.isnetworks.provider.symmetric.AbstractBasicMode.doFinal(AbstractBasicMode.java:79)
17:38:06,024 ERROR [STDERR]     at com.isnetworks.provider.symmetric.SymmetricBlockCipher.engineDoFinal(SymmetricBlockCipher.java:261)
17:38:06,025 ERROR [STDERR]     at javax.crypto.Cipher.doFinal(Cipher.java:449)
--------------- etc------------------------------------
 
I got the same error with 3 different JCE security providers.
 
 
Any clue on what may be wrong?
 
Thanks
Radu
 
 

Reply via email to