Jump to content
We've recently updated our Privacy Statement, available here ×
  • REST API Import failed with the legacy key/ keyAlias=deprecatedImportExportEncSecret with error " Import failed: com.jaspersoft.jasperserver.export.service.ImportFailedException: import.decode.failed"


    Swapnil Pawar
    • Features: Web Services Product: JasperReports® Server

    Error:

    REST API Import failed with the legacy key/ keyAlias=deprecatedImportExportEncSecret with error " Import failed: com.jaspersoft.jasperserver.export.service.ImportFailedException: import.decode.failed"

     

    Resolution:

    The root cause of the issue due to keyAlias option is case-sensitive. Actually, it is a documentation defect as it marked the export and import option 
    as keyalias so, that's why it is by default exporting the resource with the server key instead of the keyAlias we chose. So, kindly use capital A as keyAlias. 
    We filed the documentation defect for this issue. Please find the post request and payload for the export and import.

    Post request of export: http://localhost:8080/jasperserver-pro/rest_v2/export 

    {
    "keyAlias": "deprecatedImportExportEncSecret",
    "parameters": ["everything"]
    }

    Post request of import:
    http://localhost:8383/jasperserver-pro/rest_v2/import?keyAlias=deprecatedImportExportEncSecret 

    Please follow the rest api documentation for more information: <https://docs.tibco.com/pub/js-jrs/8.2.0/doc/pdf/js-jrs_8.2.0_REST-API-Reference.pdf?id=11> 


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...