[ 
http://jira.magnolia.info/browse/MAGNOLIA-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15826#action_15826
 ] 

Ryan Gardner commented on MAGNOLIA-1983:
----------------------------------------

I've taken an initial look into this issue. It seems that when the image node 
is created, it is in a transient state (I can see the 
imageContentNode/node/state/transient = true when I step over it in my debugger)

(in BaseImageTag.java) >>

  imageContentNode = parentContentNode.createContent(this.imageContentNodeName, 
ItemType.CONTENTNODE);

Someone with more knowledge of the inner-workings of JCR probably knows better 
than me, but it appears that transient nodes do not get saved. In order to save 
the node, you have to explicitly make it a persistent node. I don't see how 
Magnolia handles doing this - as I've looked around other places where nodes 
are being created and I don't see what's different about this case. 

Does the ScaleImageTag still work in 3.5? Both of them extend the BaseImageTag, 
and it seems that the behavior in the BaseImageTag is what is broken. 

> txt2img throws a RepositoryException and does not produce an image result
> -------------------------------------------------------------------------
>
>                 Key: MAGNOLIA-1983
>                 URL: http://jira.magnolia.info/browse/MAGNOLIA-1983
>             Project: Magnolia
>          Issue Type: Bug
>          Components: taglibs
>    Affects Versions: 3.5.2
>         Environment: Mac OS X, Windows XP - Magnolia 3.5.2, JDK 1.6, using 
> Jackrabbit with Derby
>            Reporter: Ryan Gardner
>            Assignee: Fabrizio Giustina
>            Priority: Minor
>         Attachments: MAGNOLIA-1983_stacktrace.txt
>
>
> In a jsp template, including the following tag (assuming that cmsu is the 
> prefix assigned to the cms-util taglib...):
>  
> <cmsu:txt2img imageContentNodeName="generatedImages" text="Snowmobile 
> Vermont!" />
> should create a JCR child node of the page called "generatedImages" and put a 
> node under that node containing the generated image.
> An error is thrown. 
> Instead of doing this, however, a RepositoryException is thrown (full 
> stacktrace in attachment)
> Another user on the magnolia-users list confirmed that this error occurred on 
> his system as well.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to