[magnolia-user] Zipping from [jcr:data] having PDF binary file

2016-02-04 Thread Sridhar Malladi (via Magnolia Forums)
Have PDF's in [jcr:data]. Am trying to zip the pdf files on a node and the response using spring blossom controllers. Following is the code for doing this @RequestMapping(path = "/zip", params = {"do=zip" }, method = RequestMethod.POST, produces = "application/zip") public void download(HttpSe

[magnolia-user] Re: Zipping from [jcr:data] having PDF binary file

2016-02-04 Thread Sridhar Malladi (via Magnolia Forums)
When i am doing the above, i am getting an error when trying to open the file using winzip. The zip file opens up correctly using WINRAR but when i try to open the file using winzip or windows default archive explorer. I get an error saying "Central Directory not found". The archive may be corru

[magnolia-user] Re: Zipping from [jcr:data] having PDF binary file

2016-02-04 Thread Sridhar Malladi (via Magnolia Forums)
This is the updated piece of code: - public static byte[] zipFiles(String... uuids) throws IOException, LinkException, RepositoryException, ZipException { ByteArrayOutputStream baos = new ByteArrayOutputStream(); BufferedOutputStream bos = new BufferedOutputStream

[magnolia-user] Re: JCR-SQL2 query result does not respect document order

2016-02-04 Thread Jean Charles (via Magnolia Forums)
Hi, I have the same problem and confirm the Jackrabbit issue with SQL2 I also have the "respectDocumentOrder" value set to true, and after re-indexing my workspace, it worked well, but just once! By moving the nodes again the query still returns another order (seems to be creationDate by defaul

[magnolia-user] Publishing to non-public instance

2016-02-04 Thread Souvik Dasgupta (via Magnolia Forums)
Always contents are published from AUTHOR to PUBLIC instance by default.If a have my own myinstance.blahblah.com, then how can I publish content from AUTHOR to this instance? Please help -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=f6ebe088-ddac-47b2-9d9d