[jira] [Commented] (OFBIZ-7000) You cannot edit an image in content

2016-10-16 Thread Mohammed Rehan Khan (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-7000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15581221#comment-15581221
 ] 

Mohammed Rehan Khan commented on OFBIZ-7000:


Thank you [~jacques.le.roux]  !

> You cannot edit an image in content
> ---
>
> Key: OFBIZ-7000
> URL: https://issues.apache.org/jira/browse/OFBIZ-7000
> Project: OFBiz
>  Issue Type: Bug
>  Components: content
>Affects Versions: Release Branch 12.04, Release Branch 13.07, Release 
> Branch 14.12, Trunk, Release Branch 15.12
>Reporter: Jacques Le Roux
>Assignee: Jacques Le Roux
>Priority: Minor
> Fix For: Release Branch 13.07, Release Branch 14.12, Upcoming 
> Branch, Release Branch 15.12
>
> Attachments: Image 018.png, OFBIZ-7000.patch, OFBIZ-7000.patch, 
> nocontentfound.png
>
>
> If you get to 
> {code}
> content/control/EditLayout?drDataResourceId=NOCONTENTFOUND=NOCONTENTFOUND
> {code}
> When trying to editing you get an error
> {code}
> 2016-04-11 10:48:42,932 |http-bio-8443-exec-9 |ScreenFactory 
> |I| Got 9 screens in 0.004s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/content/widget/layout/LayoutScreens.xml
> 2016-04-11 10:48:43,051 |http-bio-8443-exec-9 |ScriptUtil
> |W| Error running script at location 
> [component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy]:
>  org.ofbiz.b
> ase.util.GeneralException: The desired mime-type is not a text type, cannot 
> render as text: image/png
> org.ofbiz.base.util.GeneralException: The desired mime-type is not a text 
> type, cannot render as text: image/png
> at 
> org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:624)
>  ~[ofbiz-content.jar:?]
> at 
> org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:603)
>  ~[ofbiz-content.jar:?]
> at 
> org.ofbiz.content.data.DataResourceWorker$renderDataResourceAsText.call(Unknown
>  Source) ~[?:?]
> at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>  ~[groovy-all-2.4.5.jar:2.4.5]
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>  ~[groovy-all-2.4.5.jar:2.4.5]
> at EditSubContent.run(EditSubContent.groovy:50) ~[?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OFBIZ-7000) You cannot edit an image in content

2016-10-15 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-7000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15578398#comment-15578398
 ] 

Jacques Le Roux commented on OFBIZ-7000:


OK it works after cleaning all. I'll try to backport

> You cannot edit an image in content
> ---
>
> Key: OFBIZ-7000
> URL: https://issues.apache.org/jira/browse/OFBIZ-7000
> Project: OFBiz
>  Issue Type: Bug
>  Components: content
>Affects Versions: Release Branch 12.04, Release Branch 13.07, Release 
> Branch 14.12, Trunk, Release Branch 15.12
>Reporter: Jacques Le Roux
>Assignee: Jacques Le Roux
>Priority: Minor
> Attachments: OFBIZ-7000.patch, OFBIZ-7000.patch, nocontentfound.png
>
>
> If you get to 
> {code}
> content/control/EditLayout?drDataResourceId=NOCONTENTFOUND=NOCONTENTFOUND
> {code}
> When trying to editing you get an error
> {code}
> 2016-04-11 10:48:42,932 |http-bio-8443-exec-9 |ScreenFactory 
> |I| Got 9 screens in 0.004s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/content/widget/layout/LayoutScreens.xml
> 2016-04-11 10:48:43,051 |http-bio-8443-exec-9 |ScriptUtil
> |W| Error running script at location 
> [component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy]:
>  org.ofbiz.b
> ase.util.GeneralException: The desired mime-type is not a text type, cannot 
> render as text: image/png
> org.ofbiz.base.util.GeneralException: The desired mime-type is not a text 
> type, cannot render as text: image/png
> at 
> org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:624)
>  ~[ofbiz-content.jar:?]
> at 
> org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:603)
>  ~[ofbiz-content.jar:?]
> at 
> org.ofbiz.content.data.DataResourceWorker$renderDataResourceAsText.call(Unknown
>  Source) ~[?:?]
> at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>  ~[groovy-all-2.4.5.jar:2.4.5]
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>  ~[groovy-all-2.4.5.jar:2.4.5]
> at EditSubContent.run(EditSubContent.groovy:50) ~[?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OFBIZ-7000) You cannot edit an image in content

2016-10-15 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-7000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15578309#comment-15578309
 ] 

Jacques Le Roux commented on OFBIZ-7000:


I confirm, still an issue

> You cannot edit an image in content
> ---
>
> Key: OFBIZ-7000
> URL: https://issues.apache.org/jira/browse/OFBIZ-7000
> Project: OFBiz
>  Issue Type: Bug
>  Components: content
>Affects Versions: Release Branch 12.04, Release Branch 13.07, Release 
> Branch 14.12, Trunk, Release Branch 15.12
>Reporter: Jacques Le Roux
>Assignee: Jacques Le Roux
>Priority: Minor
> Attachments: OFBIZ-7000.patch, OFBIZ-7000.patch, nocontentfound.png
>
>
> If you get to 
> {code}
> content/control/EditLayout?drDataResourceId=NOCONTENTFOUND=NOCONTENTFOUND
> {code}
> When trying to editing you get an error
> {code}
> 2016-04-11 10:48:42,932 |http-bio-8443-exec-9 |ScreenFactory 
> |I| Got 9 screens in 0.004s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/content/widget/layout/LayoutScreens.xml
> 2016-04-11 10:48:43,051 |http-bio-8443-exec-9 |ScriptUtil
> |W| Error running script at location 
> [component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy]:
>  org.ofbiz.b
> ase.util.GeneralException: The desired mime-type is not a text type, cannot 
> render as text: image/png
> org.ofbiz.base.util.GeneralException: The desired mime-type is not a text 
> type, cannot render as text: image/png
> at 
> org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:624)
>  ~[ofbiz-content.jar:?]
> at 
> org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:603)
>  ~[ofbiz-content.jar:?]
> at 
> org.ofbiz.content.data.DataResourceWorker$renderDataResourceAsText.call(Unknown
>  Source) ~[?:?]
> at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>  ~[groovy-all-2.4.5.jar:2.4.5]
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>  ~[groovy-all-2.4.5.jar:2.4.5]
> at EditSubContent.run(EditSubContent.groovy:50) ~[?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OFBIZ-7000) You cannot edit an image in content

2016-10-15 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-7000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15578178#comment-15578178
 ] 

Jacques Le Roux commented on OFBIZ-7000:


Ah wait, I have to retry, I was not up to date (not using trunk HEAD)

> You cannot edit an image in content
> ---
>
> Key: OFBIZ-7000
> URL: https://issues.apache.org/jira/browse/OFBIZ-7000
> Project: OFBiz
>  Issue Type: Bug
>  Components: content
>Affects Versions: Release Branch 12.04, Release Branch 13.07, Release 
> Branch 14.12, Trunk, Release Branch 15.12
>Reporter: Jacques Le Roux
>Assignee: Jacques Le Roux
>Priority: Minor
> Attachments: OFBIZ-7000.patch, OFBIZ-7000.patch, nocontentfound.png
>
>
> If you get to 
> {code}
> content/control/EditLayout?drDataResourceId=NOCONTENTFOUND=NOCONTENTFOUND
> {code}
> When trying to editing you get an error
> {code}
> 2016-04-11 10:48:42,932 |http-bio-8443-exec-9 |ScreenFactory 
> |I| Got 9 screens in 0.004s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/content/widget/layout/LayoutScreens.xml
> 2016-04-11 10:48:43,051 |http-bio-8443-exec-9 |ScriptUtil
> |W| Error running script at location 
> [component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy]:
>  org.ofbiz.b
> ase.util.GeneralException: The desired mime-type is not a text type, cannot 
> render as text: image/png
> org.ofbiz.base.util.GeneralException: The desired mime-type is not a text 
> type, cannot render as text: image/png
> at 
> org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:624)
>  ~[ofbiz-content.jar:?]
> at 
> org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:603)
>  ~[ofbiz-content.jar:?]
> at 
> org.ofbiz.content.data.DataResourceWorker$renderDataResourceAsText.call(Unknown
>  Source) ~[?:?]
> at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>  ~[groovy-all-2.4.5.jar:2.4.5]
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>  ~[groovy-all-2.4.5.jar:2.4.5]
> at EditSubContent.run(EditSubContent.groovy:50) ~[?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (OFBIZ-7000) You cannot edit an image in content

2016-10-15 Thread Jacques Le Roux (JIRA)

[ 
https://issues.apache.org/jira/browse/OFBIZ-7000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15578166#comment-15578166
 ] 

Jacques Le Roux commented on OFBIZ-7000:


Thanks Mohammed,

Unfortunately when changing the file (rotation) !nocontentfound.png! I get this 
error when getting to
https://localhost:8443/content/control/EditLayout?drDataResourceId=NOCONTENTFOUND=NOCONTENTFOUND

bq. Error rendering included template at location 
[component://content/template/layout/RenderSubContent.ftl]: 
java.io.IOException: Error rendering 
contentorg.apache.ofbiz.base.util.GeneralException: The desired mime-type is 
not a text type, cannot render as text: image/png

Of course there is more in the log



> You cannot edit an image in content
> ---
>
> Key: OFBIZ-7000
> URL: https://issues.apache.org/jira/browse/OFBIZ-7000
> Project: OFBiz
>  Issue Type: Bug
>  Components: content
>Affects Versions: Release Branch 12.04, Release Branch 13.07, Release 
> Branch 14.12, Trunk, Release Branch 15.12
>Reporter: Jacques Le Roux
>Assignee: Jacques Le Roux
>Priority: Minor
> Attachments: OFBIZ-7000.patch, OFBIZ-7000.patch, nocontentfound.png
>
>
> If you get to 
> {code}
> content/control/EditLayout?drDataResourceId=NOCONTENTFOUND=NOCONTENTFOUND
> {code}
> When trying to editing you get an error
> {code}
> 2016-04-11 10:48:42,932 |http-bio-8443-exec-9 |ScreenFactory 
> |I| Got 9 screens in 0.004s from: 
> file:/C:/projectASF-Mars/ofbiz/applications/content/widget/layout/LayoutScreens.xml
> 2016-04-11 10:48:43,051 |http-bio-8443-exec-9 |ScriptUtil
> |W| Error running script at location 
> [component://content/webapp/content/WEB-INF/actions/layout/EditSubContent.groovy]:
>  org.ofbiz.b
> ase.util.GeneralException: The desired mime-type is not a text type, cannot 
> render as text: image/png
> org.ofbiz.base.util.GeneralException: The desired mime-type is not a text 
> type, cannot render as text: image/png
> at 
> org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:624)
>  ~[ofbiz-content.jar:?]
> at 
> org.ofbiz.content.data.DataResourceWorker.renderDataResourceAsText(DataResourceWorker.java:603)
>  ~[ofbiz-content.jar:?]
> at 
> org.ofbiz.content.data.DataResourceWorker$renderDataResourceAsText.call(Unknown
>  Source) ~[?:?]
> at 
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
>  ~[groovy-all-2.4.5.jar:2.4.5]
> at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
>  ~[groovy-all-2.4.5.jar:2.4.5]
> at EditSubContent.run(EditSubContent.groovy:50) ~[?:?]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)