How can I download an stored custom theme?
I had a trouble with the theme stored in our solution.
The original code was lost but it actually exists in the server.
The Rtc interface lets upload a custom theme but it doesn't allow you to download it.
Can I download any stored theme in JTS or CCM?
By the way, we're are using rtc v4.0.1
Thanks in advance.
Greetings,
Sergio
One answer
I believe the package is stored in the table REPOSITORY.CONTENT_STORAGE (field CONTENT_BYTES). You may also need to query table REPOSITORY.ITEM_TYPES and RESOURCE.RESOURCE (or RESOURCE0.RESOURCE) to find out more details.
Edit: the package does not appear in the REPOSITORY.CONTENT_STORAGE table, so it may be extracted as individual files in the RESOURCE.RESOURCE table and no longer stored as a whole .zip file.
Comments
Let me understand that.
You are about to say that i can not download a version object from a control version tool?
Anyway, i'm trying to download it from the URI filed "storage/net.jazz.ajax.theme/_azWSQGHGEeW33IsqZKKlwA" and i from the following uri: http://hostname:port/ccm/storage/net.jazz.ajax.theme/_azWSQGHGEeW33IsqZKKlwA i was logged as user admin and result is: Error 403: CRJZS5068E Storage area is restricted. The authorization key is required to access the resource: storage/net.jazz.ajax.theme/_azWSQGHGEeW33IsqZKKlwA
Any suggestions?
You can really compare the extension with the usual source code in terms of "version control".
I did not have any problems with downloading individual XML, JavaScript or HTML file using the method that you described, logged as a member of JazzAdmins.
If you figure out the permission issue in your environment and can download the files, the one with format "application/rdf+xml" should be a good starting point as it is likely the "catalog" of the theme and contains references to other files. Here is a sample of such file.
< ?xml version="1.0" encoding="UTF-8"? >
< jfs:Theme xmlns:jfs="http://jazz.net/xmlns/foundation/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:about="" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" >
< rdfs:label >Sample< /rdfs:label >
< jfs:ThemeFile jfs:contentType="text/javascript" jfs:filename="FooterLeftWidget.js" xmlns:jfs="http://www.w3.org/1999/02/22-rdf-syntax-ns#" jfs:storageURI="https://clm502:9443/ccm/storage/net.jazz.ajax.theme/_aYKMAaH5EeW0JPv0LvlAlg"/ >
< jfs:ThemeFile jfs:contentType="text/html" jfs:filename="templates/ThemeWidget.html" xmlns:jfs="http://www.w3.org/1999/02/22-rdf-syntax-ns#" jfs:storageURI="https://clm502:9443/ccm/storage/net.jazz.ajax.theme/_aY1hcaH5EeW0JPv0LvlAlg"/ >
< jfs:ThemeFile jfs:contentType="text/javascript" jfs:filename="FooterRightWidget.js" xmlns:jfs="http://www.w3.org/1999/02/22-rdf-syntax-ns#" jfs:storageURI="https://clm502:9443/ccm/storage/net.jazz.ajax.theme/_aYY1gaH5EeW0JPv0LvlAlg"/ >
< jfs:ThemeFile jfs:contentType="text/javascript" jfs:filename="FooterCenterWidget.js" xmlns:jfs="http://www.w3.org/1999/02/22-rdf-syntax-ns#" jfs:storageURI="https://clm502:9443/ccm/storage/net.jazz.ajax.theme/_aX-l0aH5EeW0JPv0LvlAlg"/ >
< jfs:ThemeFile jfs:contentType="text/plain" jfs:filename="AboveBannerWidget.js~" xmlns:jfs="http://www.w3.org/1999/02/22-rdf-syntax-ns#" jfs:storageURI="https://clm502:9443/ccm/storage/net.jazz.ajax.theme/_aZJDcaH5EeW0JPv0LvlAlg"/ >
< jfs:ThemeFile jfs:contentType="text/javascript" jfs:filename="AboveBannerWidget.js" xmlns:jfs="http://www.w3.org/1999/02/22-rdf-syntax-ns#" jfs:storageURI="https://clm502:9443/ccm/storage/net.jazz.ajax.theme/_aWpJEaH5EeW0JPv0LvlAlg"/ >
< jfs:ThemeFile jfs:contentType="text/css" jfs:filename="templates/ThemeWidget.css" xmlns:jfs="http://www.w3.org/1999/02/22-rdf-syntax-ns#" jfs:storageURI="https://clm502:9443/ccm/storage/net.jazz.ajax.theme/_aYmQ4aH5EeW0JPv0LvlAlg"/ >
< /jfs:Theme >
Comments
Sergio Lorente
Dec 11 '15, 3:22 a.m.Toc, Toc
Is anybody in?