Cannot Download Attachment from Change Management

Moderator: crythias

Locked
chvas
Znuny newbie
Posts: 8
Joined: 17 Jul 2013, 09:24
Znuny Version: 3.1.19
Real Name: Christos

Cannot Download Attachment from Change Management

Post by chvas »

Dear all,

After I upload some Attachment in a New Change when I get redirected to the Overview, although I can see the Attachment (check attached) when I click on it to download it I get an index.pl file for download (check code below)!!!

The Action which is triggered when I hover on the Attached file is available on the bottom of Attached image.

https://xxx.xxx.xxx.xxx/otrs/index.pl?A ... angeID=410

Can you please provide me some info to overcome this bug?

Code: Select all

    <div class="WidgetBox SpacingTop Expanded">
        <div class="LightRow Header">
            <div class="WidgetAction Toggle"><a href="#" title="Show or hide the content."><span></span></a></div>
            <h2>Change - Test Ticket 1</h2>
        </div>
        <div class="Content">
            <fieldset class="TableLike FixedLabelSmall">
                <label title="Description">Description: </label>
                <div class="Field RTEContent">
                    Test Ticket 1
                </div>
                <div class="Clear"></div>
                <label title="Justification">Justification: </label>
                <div class="Field RTEContent">
                    Test Ticket 1
                </div>
                <div class="Clear"></div>
                <label title="Attachment">Attachment:</label>
                <div class="Field">

                    <span class="DownloadAttachment" title="Download Attachment">
                        <a href="/otrs/index.pl?Action=AgentITSMChangeZoomTabOverview;Subaction=DownloadAttachment;Filename=tets.txt;ChangeID=410">
                            tets.txt
                        </a>
                        , 7 Bytes
                    </span>
                    <br/>
                </div>
                <div class="Clear"></div>

            </fieldset>
        </div>
    </div>
</div>

<script type="text/javascript" src="/otrs-web/js/thirdparty/json/json2.js"></script>
<script type="text/javascript" src="/otrs-web/js/thirdparty/jquery-1.6.4/jquery.js"></script>
<script type="text/javascript" src="/otrs-web/js/thirdparty/jquery-ui-1.8.16/jquery-ui.js"></script>
<script type="text/javascript" src="/otrs-web/js/thirdparty/jquery-validate-1.9/jquery.validate.js"></script>
<script type="text/javascript" src="/otrs-web/js/thirdparty/stacktrace-0.3/stacktrace.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.JavaScriptEnhancements.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.Debug.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.Data.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.Config.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.Exception.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.JSON.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.AJAX.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.UI.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.UI.IE7Fixes.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.UI.Accordion.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.UI.Datepicker.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.UI.Resizable.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.UI.Table.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.UI.Accessibility.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.UI.RichTextEditor.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.UI.Dialog.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.UI.ActionRow.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.UI.Popup.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.Form.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.Form.ErrorTooltips.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.Form.Validate.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.App.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.Agent.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.Agent.Search.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.Agent.Admin.Scheduler.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.KIX4OTRS.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.KIX4OTRS.Dialog.js"></script>
<script type="text/javascript" src="/otrs-web/js/ITSM.Agent.ConfigItem.Search.js"></script>
<script type="text/javascript" src="/otrs-web/js/thirdparty/jquery-selected-chain/jquery.select-hierarchy.js"></script>
<script type="text/javascript" src="/otrs-web/js/ITSM.Agent.CustomerSearch.js"></script>
<script type="text/javascript" src="/otrs-web/js/ITSM.Agent.ChangeManagement.Search.js"></script>
<script type="text/javascript" src="/otrs-web/js/ITSM.Agent.UserSearch.js"></script>
<script type="text/javascript" src="/otrs-web/js/ITSM.Agent.CABMemberSearch.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.KIX4OTRS.TextModules.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.KIX4OTRS.Form.Validate.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.KIX4OTRS.CustomerDetails.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.KIX4OTRS.CustomerIDsSelection.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.KIX4OTRS.GenericAutoCompleteSearch.js"></script>
<script type="text/javascript" src="/otrs-web/js/FAQ.Agent.TicketCompose.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.KIX4OTRS.LinkedPersons.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.KIX4OTRS.TicketEscalation.js"></script>
<script type="text/javascript" src="/otrs-web/js/Core.KIX4OTRS.TicketOverviewHighlight.js"></script>



<script type="text/javascript">//<![CDATA[
"use strict";
Core.App.Ready(function () {

    Core.Config.AddConfig({
        // config
        Baselink: '/otrs/index.pl?',
        CGIHandle: '/otrs/index.pl',
        Action: 'AgentITSMChangeZoomTabOverview',
        SessionIDCookie: '107d8f2bd543f70272f45b34be3a436238',
        SessionName: 'Session',
        SessionID: '107d8f2bd543f70272f45b34be3a436238',
        ChallengeToken: '6ff6cd81cc3547640bf575dc62290112',
        CustomerPanelSessionName: 'CSID',
        Images: '/otrs-web/skins/Agent/default/img/',
        UserLanguage: 'en',
        CheckEmailAddresses: parseInt('0', 10),
        AnimationEnabled: parseInt('1', 10),
        OpenMainMenuOnHover: parseInt('0', 10),
        HTMLArticleHeightDefault: parseInt("100" || 0, 10),
        HTMLArticleHeightMax: parseInt("2500" || 0, 10),
        // translations
        ValidateServerErrorTitle: 'Error',
        ValidateServerErrorMsg: 'One or more errors occurred!',
        PopupLeaveParentWindowMsg: 'If you now leave this page, all open popup windows will be closed, too!',
        DialogCloseMsg: 'Close this dialog',
        PopupBlockerMsg: 'Could not open popup window. Please disable any popup blockers for this application.',
        PopupAlreadyOpenMsg: 'A popup of this screen is already open. Do you want to close it and load this one instead?',
        LoadingMsg: 'Loading...',
        SearchMsg: 'Search'
    });

    // KIX4OTRS-capeIT
    // difference to FooterJS: call a custom Init function
    //Core.Agent.Init();
    Core.KIX4OTRS.TicketZoomTabs.Init();
    // EO KIX4OTRS-capeIT





});
//]]></script>

<script type="text/javascript">//<![CDATA[
"use strict";
Core.App.Ready(function () {



});
//]]></script>

<script type="text/javascript">//<![CDATA[
"use strict";
Core.App.Ready(function () {
    Core.App.UnblockEvents();
});
//]]></script>
OTRS_Change_Bug.jpg
You do not have the required permissions to view the files attached to this post.
OTRS 3.1.x (private/testing) on Linux with PostgreSQL database.
ITSM 3.1.6, FAQ 2.1.3, KIX4OTRS 4.2.1
chvas
Znuny newbie
Posts: 8
Joined: 17 Jul 2013, 09:24
Znuny Version: 3.1.19
Real Name: Christos

Re: Cannot Download Attachment from Change Management

Post by chvas »

Any ideas?

Thx in advance.
OTRS 3.1.x (private/testing) on Linux with PostgreSQL database.
ITSM 3.1.6, FAQ 2.1.3, KIX4OTRS 4.2.1
Locked