[jira] Created: (OFBIZ-3308) Error when uploading image on 'Edit Product Config Item Content' screen

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-3308) Error when uploading image on 'Edit Product Config Item Content' screen

Nicolas Malin (Jira)
Error when uploading image on 'Edit Product Config Item Content' screen
-----------------------------------------------------------------------

                 Key: OFBIZ-3308
                 URL: https://issues.apache.org/jira/browse/OFBIZ-3308
             Project: OFBiz
          Issue Type: Bug
          Components: product
    Affects Versions: Release Branch 9.04
            Reporter: James
            Priority: Minor


When trying to upload an image for a product configuration item an error is displayed and upload fails.

I think the issue is caused by the following line (85) in EditProductConfigItemContent.groovy:

fileLocation = filenameExpander.expandString(['size', fileType, configItemId, configItemId]);

I have changed this locally to:

fileLocation = filenameExpander.expandString(['size', fileType : configItemId : configItemId]);

and the upload works as expected. However, I'm not familiar with groovy and am only just getting my head around OfBiz so if someone could verify the fix that would be great.


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-3308) Error when uploading image on 'Edit Product Config Item Content' screen

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-3308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James updated OFBIZ-3308:
-------------------------

    Attachment: Error screen.jpg

> Error when uploading image on 'Edit Product Config Item Content' screen
> -----------------------------------------------------------------------
>
>                 Key: OFBIZ-3308
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3308
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: Release Branch 9.04
>            Reporter: James
>            Priority: Minor
>         Attachments: Error screen.jpg
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> When trying to upload an image for a product configuration item an error is displayed and upload fails.
> I think the issue is caused by the following line (85) in EditProductConfigItemContent.groovy:
> fileLocation = filenameExpander.expandString(['size', fileType, configItemId, configItemId]);
> I have changed this locally to:
> fileLocation = filenameExpander.expandString(['size', fileType : configItemId : configItemId]);
> and the upload works as expected. However, I'm not familiar with groovy and am only just getting my head around OfBiz so if someone could verify the fix that would be great.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-3308) Error when uploading image on 'Edit Product Config Item Content' screen

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-3308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James updated OFBIZ-3308:
-------------------------

    Description:
When trying to upload an image for a product configuration item an error is displayed and upload fails.

I think the issue is caused by the following line (85) in EditProductConfigItemContent.groovy:

fileLocation = filenameExpander.expandString(['size', fileType, configItemId, configItemId]);

I have changed this locally to:

fileLocation = filenameExpander.expandString(['size' : fileType, configItemId : configItemId]);

and the upload works as expected. However, I'm not familiar with groovy and am only just getting my head around OfBiz so if someone could verify the fix that would be great.


  was:
When trying to upload an image for a product configuration item an error is displayed and upload fails.

I think the issue is caused by the following line (85) in EditProductConfigItemContent.groovy:

fileLocation = filenameExpander.expandString(['size', fileType, configItemId, configItemId]);

I have changed this locally to:

fileLocation = filenameExpander.expandString(['size', fileType : configItemId : configItemId]);

and the upload works as expected. However, I'm not familiar with groovy and am only just getting my head around OfBiz so if someone could verify the fix that would be great.



> Error when uploading image on 'Edit Product Config Item Content' screen
> -----------------------------------------------------------------------
>
>                 Key: OFBIZ-3308
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3308
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: Release Branch 9.04
>            Reporter: James
>            Priority: Minor
>         Attachments: Error screen.jpg
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> When trying to upload an image for a product configuration item an error is displayed and upload fails.
> I think the issue is caused by the following line (85) in EditProductConfigItemContent.groovy:
> fileLocation = filenameExpander.expandString(['size', fileType, configItemId, configItemId]);
> I have changed this locally to:
> fileLocation = filenameExpander.expandString(['size' : fileType, configItemId : configItemId]);
> and the upload works as expected. However, I'm not familiar with groovy and am only just getting my head around OfBiz so if someone could verify the fix that would be great.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-3308) Error when uploading image on 'Edit Product Config Item Content' screen

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-3308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marco Risaliti reassigned OFBIZ-3308:
-------------------------------------

    Assignee: Marco Risaliti

> Error when uploading image on 'Edit Product Config Item Content' screen
> -----------------------------------------------------------------------
>
>                 Key: OFBIZ-3308
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3308
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: Release Branch 9.04
>            Reporter: James
>            Assignee: Marco Risaliti
>            Priority: Minor
>         Attachments: Error screen.jpg
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> When trying to upload an image for a product configuration item an error is displayed and upload fails.
> I think the issue is caused by the following line (85) in EditProductConfigItemContent.groovy:
> fileLocation = filenameExpander.expandString(['size', fileType, configItemId, configItemId]);
> I have changed this locally to:
> fileLocation = filenameExpander.expandString(['size' : fileType, configItemId : configItemId]);
> and the upload works as expected. However, I'm not familiar with groovy and am only just getting my head around OfBiz so if someone could verify the fix that would be great.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-3308) Error when uploading image on 'Edit Product Config Item Content' screen

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-3308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marco Risaliti closed OFBIZ-3308.
---------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk

Fixed into trunk rev. 890973.

> Error when uploading image on 'Edit Product Config Item Content' screen
> -----------------------------------------------------------------------
>
>                 Key: OFBIZ-3308
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3308
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: Release Branch 9.04
>            Reporter: James
>            Assignee: Marco Risaliti
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: Error screen.jpg
>
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
>
> When trying to upload an image for a product configuration item an error is displayed and upload fails.
> I think the issue is caused by the following line (85) in EditProductConfigItemContent.groovy:
> fileLocation = filenameExpander.expandString(['size', fileType, configItemId, configItemId]);
> I have changed this locally to:
> fileLocation = filenameExpander.expandString(['size' : fileType, configItemId : configItemId]);
> and the upload works as expected. However, I'm not familiar with groovy and am only just getting my head around OfBiz so if someone could verify the fix that would be great.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.