Issue with transformer

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2013 12:36 PM
Hello everyone,
We are working on an Alfresco4.2.
We have an amp with some custom transformers, which appear when looking at webservice /service/mimetypes as follows:
message/rfc822 - msg
Extractors: ….CustomMailMetadataExtracter
Transformable To:
application/x-shockwave-flash = Complex via: text/plain application/pdf
text/html = ….CustomMSG2HTMLContentTransformer
text/plain = ….CustomMSG2TXTContentTransformer
Transformable From: Cannot be generated from anything else
However, when calling solr webservice alfresco/service/api/solr/textContent?nodeId=…. the trace in the logs looks like below:
2013-11-26 17:26:56,581 TRACE [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 store://2010/1/25/11/8/0d19ad77-6bcf-4fae-93ad-6be0992756e6.bin
2013-11-26 17:26:56,582 TRACE [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 message/rfc822 text/plain
2013-11-26 17:26:56,609 DEBUG [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 msg txt 25_01_2010 10_07_14 - Report Securitas 24_01_2010 - 8fe38e001a4f2d97ead996934bc6cea8.msg 99.5 KB – index – SolrIndexer
2013-11-26 17:26:56,609 DEBUG [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 **a) [100] RFC822 65 ms
2013-11-26 17:26:56,610 DEBUG [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 b) [100] EmailMSG2TXT 98 ms
2013-11-26 17:26:56,611 TRACE [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7.1 store://2010/1/25/11/8/0d19ad77-6bcf-4fae-93ad-6be0992756e6.bin
2013-11-26 17:26:56,611 TRACE [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7.1 message/rfc822 text/plain
2013-11-26 17:26:56,611 DEBUG [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7.1 msg txt <<TemporaryFile>> 99.5 KB RFC822
2013-11-26 17:26:56,701 TRACE [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7.1 Finished in 90 ms
2013-11-26 17:26:56,742 DEBUG [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 Finished in 161 ms
and instead of getting text, some binary file is downloaded, presumably the whole email.
Can somebody tell me why are there 2 transformers possible and why none of them is the CustomMSG2TXTContentTransformer which appears registered?
Thank you,
roxana
We are working on an Alfresco4.2.
We have an amp with some custom transformers, which appear when looking at webservice /service/mimetypes as follows:
message/rfc822 - msg
Extractors: ….CustomMailMetadataExtracter
Transformable To:
application/x-shockwave-flash = Complex via: text/plain application/pdf
text/html = ….CustomMSG2HTMLContentTransformer
text/plain = ….CustomMSG2TXTContentTransformer
Transformable From: Cannot be generated from anything else
However, when calling solr webservice alfresco/service/api/solr/textContent?nodeId=…. the trace in the logs looks like below:
2013-11-26 17:26:56,581 TRACE [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 store://2010/1/25/11/8/0d19ad77-6bcf-4fae-93ad-6be0992756e6.bin
2013-11-26 17:26:56,582 TRACE [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 message/rfc822 text/plain
2013-11-26 17:26:56,609 DEBUG [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 msg txt 25_01_2010 10_07_14 - Report Securitas 24_01_2010 - 8fe38e001a4f2d97ead996934bc6cea8.msg 99.5 KB – index – SolrIndexer
2013-11-26 17:26:56,609 DEBUG [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 **a) [100] RFC822 65 ms
2013-11-26 17:26:56,610 DEBUG [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 b) [100] EmailMSG2TXT 98 ms
2013-11-26 17:26:56,611 TRACE [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7.1 store://2010/1/25/11/8/0d19ad77-6bcf-4fae-93ad-6be0992756e6.bin
2013-11-26 17:26:56,611 TRACE [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7.1 message/rfc822 text/plain
2013-11-26 17:26:56,611 DEBUG [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7.1 msg txt <<TemporaryFile>> 99.5 KB RFC822
2013-11-26 17:26:56,701 TRACE [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7.1 Finished in 90 ms
2013-11-26 17:26:56,742 DEBUG [content.transform.TransformerDebug] [http-apr-8080-exec-8] 7 Finished in 161 ms
and instead of getting text, some binary file is downloaded, presumably the whole email.
Can somebody tell me why are there 2 transformers possible and why none of them is the CustomMSG2TXTContentTransformer which appears registered?
Thank you,
roxana
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2013 02:00 PM
hi mate.. post ur custom transformer and *-context.xml would be great to see how to implement it!
