You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2009/03/09 16:30:50 UTC

[jira] Commented: (OFBIZ-1533) Order Lookup fails with "Order not found with ID [XXXXX], or not allowed to view" message while sending email confirmation from order manager

    [ https://issues.apache.org/jira/browse/OFBIZ-1533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12680174#action_12680174 ] 

Jacques Le Roux commented on OFBIZ-1533:
----------------------------------------

Hi Raj,

I'm back on this subject near one year later. I have just fixed a bug introduced since then and had a new look at this. If you are still interested (or if someone is interested in this issue) here are how I see it.

In SendConfirmationEmail.groovy we use "PRDS_ODR_CONFIRM" emailType which is set in the product Store. By default its value are
<ProductStoreEmailSetting productStoreId="9000" emailType="PRDS_ODR_CONFIRM" bodyScreenLocation="component://ecommerce/widget/EmailOrderScreens.xml#OrderConfirmNotice" xslfoAttachScreenLocation="component://ecommerce/widget/EmailOrderScreens.xml#OrderConfirmNoticePdf" subject="OFBiz Demo - Order Confirmation #${orderId}" bccAddress="ofbiztest@yahoo.com" fromAddress="ofbiztest@yahoo.com"/>

But as we are in ordermgr we generate link related to this component (hence the problems I found 2 comments above). I think that these links should depend on the  "Sales Channel" used.

* If it's Web Channel we should replace the ordermgr links by ecommerce links.
** Maybe not easy to do since it uses <@ofbizurl> macro, but we may use something like
** <#if baseEcommerceSecureUrl?exists><#assign urlPrefix = baseEcommerceSecureUrl/></#if>
(which is used in applications/ecommerce/webapp/ecommerce/order/orderheader.ftl)
* If it's another channel we should not provide any links at all since clients can't access to ordrmgr

Please let me know what you think, thanks

> Order Lookup fails with "Order not found with ID [XXXXX], or not allowed to view" message while sending email confirmation from order manager
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1533
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1533
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: SVN trunk, Release Branch 4.0
>         Environment: Ubuntu 7.10
>            Reporter: Raj Saini
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: orderstatus.bsh-trunk.patch, orderstatus.bsh.branch-4.0.patch
>
>
> order lookup fails and following messages, while sending email confirmation from the order manager for orders created through the e-commerce or the order entry.
> "Order not found with ID [XXXXX], or not allowed to view"  where [XXXXX] is the order id.
> How to reproduce:
> 1. Create an order form e-commerce by logging in (as registered user).
> 2. Goto the order manager and login with FULLADMIN or ORDERADMIN security group permission.
> 3. Lookup the newly created order.
> 4. Click on the send confirmation button in the top right area of the order screen.
> 5. It will open up a window with the email text. Email text shows the above message instead of actual order confirmation html.
> 6. You can repeat the above by creating an order from Order Entry as well.

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