[dev] Python REST API Client for OTRS

2015-09-23 Thread mvs babu
Hi All,


I am new to OTRS dev and we are using OTRS4. Please help me where can we get 
python REST API client.






Thank you,
Suneel Mallela___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

[dev] Privacy bug leads to internal notes being sent to customers. Confirmation?

2015-09-23 Thread Bogdan Iosif
Hi,

I use OTRS 3.3.7 but from what I saw on github the problem is also present
in 4.x.

Problem: When an event notification (ADMIN->Notifications (Event)) with
 in its text is fired, if the latest article added by
an agent is an internal note, then the body of the generated notification
email will contain the first 10 lines of the internal note.

Seeing how these notifications are registered in history as
SendCustomerNotification, then it's very debatable they should have access
to internal notes at all.

Repro steps:
1. Configure an event notification triggered when ticket state is changed,
to be sent to the customer or an arbitrary email address, with article body
containing 
2. Customer posts a new ticket (state is "new")
3. Agent posts an internal note (state is not changed)
4. Customer adds an article to the ticket and changes the state from "new"
to "open" => email notification is sent to customer containing lines from
the internal note

Is the problem correctly identified? Is there a workaround?

/bogdan

P.S: Here is the relevant code from v3.3.7,
Kernel\System\Ticket\Event\NotificationEvent.pm, line 725:

All articles are retrieved in @ArticleBoxAgent and then the latest one sent
by an agent is taken in %ArticleAgent, regardless of whether or not it's an
internal note.

# latest customer and agent article
my @ArticleBoxAgent = $Self->{TicketObject}->ArticleGet(
TicketID  => $Param{TicketID},
UserID=> $Param{UserID},
DynamicFields => 0,
);
my %ArticleAgent;
for my $Article ( reverse @ArticleBoxAgent ) {
next if $Article->{SenderType} ne 'agent';
%ArticleAgent = %{$Article};
last;
}
___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Re: [dev] OTRS 4 Customer Password reset through customer preference issue

2015-09-23 Thread Michiel Beijen
Hi Ali,


On Wed, Sep 23, 2015 at 9:32 AM, Ali Umair  wrote:
>
> i am trying the version 4 on CentOS 6.6.
> So far its everything working fine, but when any customer access to the 
> customer portal and try to change the password the OTRS gives me an 500 Error 
> Internal Server Error.
>
> This is the error on the log:
> [Mon Sep 21 23:34:58 2015] [error] [client 195.112.214.172] Can't locate 
> object method "new" via package "Kernel::System::CustomerAuth" (perhaps you 
> forgot to load "Kernel::System::CustomerAuth"?) at 
> /opt/supportOTRS/bin/cgi-bin/../../Kernel/Output/HTML/PreferencesPassword.pm 
> line 105., referer: 
> https://support.i2cinc.com/otrs/customer.pl?Action=CustomerPreferences

This is a topic better suited for the 'regular' OTRS Users mailing list.

You don't specify WHICH version of OTRS 4 you're using.  This issue
was fixed in OTRS 4.0.4 - this was released on 13th of January.
The fix is rather small, see below. You can either upgrade to latest
OTRS 4.0.x patch level  version (recommended!) or just change the two
lines below:

https://github.com/OTRS/otrs/commit/8027c0718ca0daca609a330b867060ef66433468

--
Michiel
___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev


[dev] OTRS 4 Customer Password reset through customer preference issue

2015-09-23 Thread Ali Umair
Hello All, 

i am trying the version 4 on CentOS 6.6. 
So far its everything working fine, but when any customer access to the 
customer portal and try to change the password the OTRS gives me an 500 Error 
Internal Server Error. 

This is the error on the log: 
[Mon Sep 21 23:34:58 2015] [error] [client 195.112.214.172] Can't locate object 
method "new" via package "Kernel::System::CustomerAuth" (perhaps you forgot to 
load "Kernel::System::CustomerAuth"?) at 
/opt/supportOTRS/bin/cgi-bin/../../Kernel/Output/HTML/PreferencesPassword.pm 
line 105., referer: 
https://support.i2cinc.com/otrs/customer.pl?Action=CustomerPreferences 
[Mon Sep 21 23:34:58 2015] [error] [client 195.112.214.172] Premature end of 
script headers: customer.pl, referer: 
https://support.i2cinc.com/otrs/customer.pl?Action=CustomerPreferences 
[Mon Sep 21 23:35:03 2015] [error] [client 195.112.214.172] Can't locate object 
method "new" via package "Kernel::System::CustomerAuth" (perhaps you forgot to 
load "Kernel::System::CustomerAuth"?) at 
/opt/supportOTRS/bin/cgi-bin/../../Kernel/Output/HTML/PreferencesPassword.pm 
line 105., referer: 
https://support.i2cinc.com/otrs/customer.pl?Action=CustomerPreferences 
[Mon Sep 21 23:35:03 2015] [error] [client 195.112.214.172] Premature end of 
script headers: customer.pl, referer: 
https://support.i2cinc.com/otrs/customer.pl?Action=CustomerPreferences 
[Mon Sep 21 23:35:05 2015] [error] [client 195.112.214.172] File does not 
exist: /opt/supportOTRS/var/httpd/htdocs/skins/Customer/default/img/login2.jpg, 
referer: https://support.i2cinc.com/otrs/customer.pl?Action=CustomerPreferences 

Error Message: 

Please help me to fix this problem 

Regards 
Ali Umair 
___
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev