Re: [rt-users] RT - USer Creation Pagination

2012-04-03 Thread Ruslan Zakirov
Hi,

http://www.gossamer-threads.com/lists/rt/users/109148?search_string=Create%20an%20user%20using%20Rest%20API;#109148

I don't think REST is able to grant rights. Use command line perl
scripts and feed them with data from programs in any other language.

On Tue, Apr 3, 2012 at 07:37, Kaliyug Antagonist
kaliyugantagon...@gmail.com wrote:

 Hello,

 I am a Java developer who is currently consuming the REST API of RT(version
 3.8.7.)

 I have two requirements :

 1.      I am asked to provide a 'script' that will create a user in the RT
 database(may have special rights or not) - the REST API doesn't provide any
 such URL. My requirement is to call some code that will take the username
 and password from my code and create a user in RT
 2.      I am using the RT Wiki REST
 API(http://requesttracker.wikia.com/wiki/REST). I am able to search for
 tickets by building a query. I need to know whether REST API supports any
 'pagination' - the RT front-end has option to select the no. of rows per
 page which then paginates in case of a large no. of records.Can the same be
 done via REST API ?
 Please revert in case I need to be more elaborate on my queries.

 Thanks and regards !

 --
 View this message in context: 
 http://old.nabble.com/RT---USer-Creation---Pagination-tp33545011p33545011.html
 Sent from the Request Tracker - User mailing list archive at Nabble.com.




-- 
Best regards, Ruslan.


Re: [rt-users] Upgrade to 4.05, no old tickets

2012-04-03 Thread Azher Mughal

Hi All,

Just checking again, if anyone can give some hints on how to recover the 
old tickets after the upgrade. I do have old database dump available.


Thanks
-Azher

On 4/1/2012 12:00 PM, Azher Mughal wrote:

Hi,

Just upgraded from 3.8.7 to latest 4.0.5. I can login, see all the users
and queues. However I can't find any old tickets.

Followed Step 6b and ran:

make upgrade
make upgrade-database

Any suggestions.

Thanks
-Azher



Re: [rt-users] Upgrade to 4.05, no old tickets

2012-04-03 Thread Thomas Sibley
On 04/03/2012 09:49 AM, Azher Mughal wrote:
 Just checking again, if anyone can give some hints on how to recover the
 old tickets after the upgrade. I do have old database dump available.

The old tickets shouldn't have disappeared just because the upgrade
steps were run.  The whole point of database upgrades is that you keep
your data.  What's in the Tickets table in the upgraded database?

select count(id) from Tickets;

Is the data in there?

Are all of your tickets missing or just some?

Thomas


Re: [rt-users] Upgrade to 4.05, no old tickets

2012-04-03 Thread Azher Mughal

Hi Thomas,

Old tickets are there in the db. None of the old tickets are available 
in search or in dashboard or in reports.


Thanks
-Azher

mysql select count(id) from Tickets;
+---+
| count(id) |
+---+
|   256 |
+---+
1 row in set (0.00 sec)


On 4/3/2012 6:55 AM, Thomas Sibley wrote:

On 04/03/2012 09:49 AM, Azher Mughal wrote:

Just checking again, if anyone can give some hints on how to recover the
old tickets after the upgrade. I do have old database dump available.

The old tickets shouldn't have disappeared just because the upgrade
steps were run.  The whole point of database upgrades is that you keep
your data.  What's in the Tickets table in the upgraded database?

 select count(id) from Tickets;

Is the data in there?

Are all of your tickets missing or just some?

Thomas



Re: [rt-users] Modify SelfService to include quick new ticket form.

2012-04-03 Thread Ruslan Zakirov
Hi,

Only by customizing files in SelfService dir.

On Wed, Mar 28, 2012 at 16:36, Thomas  Misilo misi...@fit.edu wrote:
 Good Morning,



 I was wondering if it is possible to edit the self service page, and add a
 quick ticket creation box to it? I cannot seem to find it anywhere in the
 admin interface.



 Thanks for the help,



 Tom





-- 
Best regards, Ruslan.


Re: [rt-users] Accent (diacritic) in attachment name - diacritic in transaction subject broken

2012-04-03 Thread Thomas Sibley
On 04/01/2012 02:46 PM, Pavel Šidlo wrote:
 I have problem with diacritic (accent) encoding (non English characters)
 for Czech language.
 
 Subject with diacritic is broken when I add file attachment with
 diacritic. In test case I did:
 - attached PŘÍLIŠŽLUŤOUČKÝKŮŇÚPĚLĎÁBELSKÉKÓDY.bin with any content
 
 - filled subject PŘÍLIŠŽLUŤOUČKÝKŮŇÚPĚLĎÁBELSKÉKÓDY
 
 - sent it as Correspond or Comment
 
 - subject in RT frontend is set to:
 PŘÍLIŠŽLUŤOUČKÝKŮŇÚPĚLĎÁBELSKÉKÓDY
 
 - subject in Correspond e-mail notification is wrong:
 PŘÍLIŠ ŽLUŤOUČKÝ KŮŇ ÚPĚL ĎÁBELSKÉ KÓDY

I believe this bug was recently fixed on the branch
4.0/unicode-transaction-subjects
https://github.com/bestpractical/rt/compare/4.0-trunk...4.0/unicode-transaction-subjects.

The branch hasn't been merged yet, pending some discussion of a larger
fix, however you can try applying the following patch and see if it
fixes your problem:

curl https://github.com/bestpractical/rt/commit/57ea0c02.patch \
   | patch -p1 -d /opt/rt4

You'll need to restart RT after the patch succeeds.

Thomas


[rt-users] Perl error with Shredder on users (RT 3.8.7)

2012-04-03 Thread Guillaume Hilt

Hello,

I'm using RT 3.8.7 on Ubuntu 10.04 AMD64.

When i'm trying to use the Shredder script (from RT web interface) on 
enabled users, i'm getting this trange error :
Couldn't wipeout object: Bizarre copy of ARRAY in aassign at 
/usr/share/perl5/Devel/StackTrace.pm line 49.


Any idea ?

Regards,

--
  Guillaume Hilt



Re: [rt-users] Perl error with Shredder on users (RT 3.8.7)

2012-04-03 Thread Guillaume Hilt

I'm using Perl 5.10.1 by the way.

  Guillaume Hilt


Le 03/04/2012 16:52, Guillaume Hilt a écrit :

Hello,

I'm using RT 3.8.7 on Ubuntu 10.04 AMD64.

When i'm trying to use the Shredder script (from RT web interface) on 
enabled users, i'm getting this trange error :
Couldn't wipeout object: Bizarre copy of ARRAY in aassign at 
/usr/share/perl5/Devel/StackTrace.pm line 49.


Any idea ?

Regards,



Re: [rt-users] Perl error with Shredder on users (RT 3.8.7)

2012-04-03 Thread Ruslan Zakirov
On Tue, Apr 3, 2012 at 18:52, Guillaume Hilt gh...@shadowprojects.org wrote:
    Hello,

 I'm using RT 3.8.7 on Ubuntu 10.04 AMD64.

 When i'm trying to use the Shredder script (from RT web interface) on
 enabled users, i'm getting this trange error :
 Couldn't wipeout object: Bizarre copy of ARRAY in aassign at
 /usr/share/perl5/Devel/StackTrace.pm line 49.

 Any idea ?

This is in most cases is a perl bug.

 Regards,

 --
  Guillaume Hilt




-- 
Best regards, Ruslan.


[rt-users] Template with CC adresse.

2012-04-03 Thread Albert Shih
Hi all.

Basique question : I would like to have a template to include all CC
address.

I try a stupid :

{$Ticket - Cc} 

but it's don't work. 

Thanks for any idea, url etc...

Regards.

NB: By the way how can I find all (or almost) all variable I can include in
a template ? 
-- 
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
Téléphone : 01 45 07 76 26/06 86 69 95 71
xmpp: j...@obspm.fr
Heure local/Local time:
mar 3 avr 2012 17:11:13 CEST


Re: [rt-users] SpawnLinkedTicketInQueue - Message Body is missing

2012-04-03 Thread Kevin Falcone
On Tue, Apr 03, 2012 at 08:48:23AM +0700, Stephane Masse wrote:
I implemented the RT-Extension-SpawnLinkedTicketInQueue on RT4 and when I 
 create Parent or
Child in another queue, the requestor and the subject are populated, but 
 the body of the
message is empty.
Any clue where I can look to fix this or is it the way the extension works 
 ?

If you have a ticket with 100 correspondences, how would it know which
one to copy?

If you want to copy data from an existing ticket, you likely want one of
the other extensions, such as 
https://github.com/bestpractical/rt-extension-cloneticket-
withdata but that may require updating to be 4.0 compatible.

-kevin


pgpr0s4Cbdfn4.pgp
Description: PGP signature


Re: [rt-users] Upgrade to 4.05, no old tickets

2012-04-03 Thread Kevin Falcone
On Tue, Apr 03, 2012 at 07:08:43AM -0700, Azher Mughal wrote:
 Old tickets are there in the db. None of the old tickets are
 available in search or in dashboard or in reports.
 
 mysql select count(id) from Tickets;
 +---+
 | count(id) |
 +---+
 |   256 |
 +---+

And when you go to 
http://your.new.rt.host/Ticket/Display.html?id=255 what's the error
message on the screen and in the logs?

-kevin


pgpEGi3uj83Eo.pgp
Description: PGP signature


Re: [rt-users] rt-users Digest, Vol 97, Issue 1

2012-04-03 Thread Cena, Stephen (ext. 300)
Yes. I am not seeing anything in there about an error with the reminders
(grep reminder ./error.log). I did however figure out why my On Steal
scrip was broken! The reminder problem is still there though. In the My
Reminder window I get:

Couldn't find Ticket for reminder 201. Please contact administrator.
Couldn't find Ticket for reminder 245. Please contact administrator.
Couldn't find Ticket for reminder 70. Please contact administrator.

I'll see if I can find some other information.

Thanks to all for the help I have received so far. It is appreciated!


Re: [rt-users] Template with CC adresse.

2012-04-03 Thread Kevin Falcone
On Tue, Apr 03, 2012 at 05:12:39PM +0200, Albert Shih wrote:
 Basique question : I would like to have a template to include all CC
 address.
 
 I try a stupid :
 
   {$Ticket - Cc} 
 
 but it's don't work. 

perldoc lib/RT/Ticket.pm (on rt4) to look for available methods

 NB: By the way how can I find all (or almost) all variable I can include in
 a template ? 

docs/customizing/templates.pod + perldoc on the relevant objects.

-kevin


pgp89yP6BMaCi.pgp
Description: PGP signature


Re: [rt-users] rt-users Digest, Vol 97, Issue 1

2012-04-03 Thread Kevin Falcone
On Tue, Apr 03, 2012 at 11:24:15AM -0400, Cena, Stephen (ext. 300) wrote:
 Yes. I am not seeing anything in there about an error with the reminders
 (grep reminder ./error.log). I did however figure out why my On Steal
 scrip was broken! The reminder problem is still there though. In the My
 Reminder window I get:
 
 Couldn't find Ticket for reminder 201. Please contact administrator.
 Couldn't find Ticket for reminder 245. Please contact administrator.
 Couldn't find Ticket for reminder 70. Please contact administrator.
 
 I'll see if I can find some other information.
 
 Thanks to all for the help I have received so far. It is appreciated!

Go directly to ticket 201 and see what ticket it believes it is linked
to.  As Rus suggested, most likely you have dangling pointers to
tickets, but it's also possible that you broke all your links in your
upgrade or that you have deleted tickets with reminders.

In 3.8 we hid some common Reminders breakages from you, in 4.0 they're
more exposed.  We've been working on some code to hide them again.

-kevin


pgpeJWiXyvJOm.pgp
Description: PGP signature


Re: [rt-users] Assign permissions massively

2012-04-03 Thread Kevin Falcone
On Fri, Mar 30, 2012 at 04:27:30PM +0200, Juanjo wrote:
May be can resolve it, if i can to put all the users Outgoing Mail option 
 to Default YES,
now are Default (no). (on the Settings / Options / Mail zone of users 
 settings).

That's the NotifyActor config, and has nothing to do with granting
permission for incoming mail (which is your Could not load a valid
user error).  It might help with your No recipients Found error, but
you should read the docs about it in RT_Config.pm before makign any
global changes to it in RT_SiteConfig.pm

-kevin

But i don*t know where i have to change it.
 
El 30 de marzo de 2012 11:03, Juanjo [1]juanji...@gmail.com escribi*:
 
  Hi.
 
  I supose the migration pass all the configuration. But when done, the 
 users can*t open
  tickets via email or reply to its via email. Neither a web user can 
 reply a ticket with a
  succesfull email sent.
 
  I have a lot of errors of No recipients Found and a rt-mailgate 
 --debug get errors give me
  gateway not ok - Could not load a valid user
 
  I check my RTAddressRegexp and seems ok.
 
  Only when i get permission to one user to open tickets, reply tickets 
 and check the option
  in his preferences for mail to outgoing mail yes start to work.
 
  I think there are some lost data in the migration, becasuse with the 
 same data in the OLD
  system i can send emails or open tickets without problems.
 
  Thanks.
  Kindest regards.
 
  El 30 de marzo de 2012 03:02, Thomas Sibley [2]t...@bestpractical.com 
 escribi*:
 
On 03/29/2012 08:58 PM, Juanjo wrote:
 In my RT migration (3.6.5 to 4.0.5) i lost some users rights.

 The users can*t create new tickets or reply to its.
 
A standard RT migration will preserve all rights. Can you expand on
what you mean by lost?


pgpBJ8QRIEwlD.pgp
Description: PGP signature


Re: [rt-users] Upgrade to 4.05, no old tickets

2012-04-03 Thread Azher Mughal

That works and I can see the old ticket.

I think problem was in my search, I thought without adding any options 
it might list all the tickets :( But properly putting the subject field 
i can see the tickets.


Thanks
-Azher

On 4/3/2012 8:25 AM, Kevin Falcone wrote:

On Tue, Apr 03, 2012 at 07:08:43AM -0700, Azher Mughal wrote:

Old tickets are there in the db. None of the old tickets are
available in search or in dashboard or in reports.

mysql  select count(id) from Tickets;
+---+
| count(id) |
+---+
|   256 |
+---+

And when you go to
http://your.new.rt.host/Ticket/Display.html?id=255 what's the error
message on the screen and in the logs?

-kevin


Re: [rt-users] Upgrade to 4.05, no old tickets

2012-04-03 Thread Kevin Falcone
On Tue, Apr 03, 2012 at 08:40:44AM -0700, Azher Mughal wrote:
 I think problem was in my search, I thought without adding any
 options it might list all the tickets :( But properly putting the
 subject field i can see the tickets.

Did that work in 3.8.7?

-kevin


pgpj1b8Z0vFws.pgp
Description: PGP signature


Re: [rt-users] Accent (diacritic) in attachment name - diacritic in transaction subject broken

2012-04-03 Thread Pavel Sidlo

Hi Thomas,

applying patch solved the problem.

Thank you a lot for your help.

Best regards,

Pavel Sidlo
e-mail: pavel.si...@topdigital.cz

Dne 3.4.2012 16:51, Thomas Sibley napsal(a):

On 04/01/2012 02:46 PM, Pavel Šidlo wrote:

I have problem with diacritic (accent) encoding (non English characters)
for Czech language.

Subject with diacritic is broken when I add file attachment with
diacritic. In test case I did:
- attached PŘÍLIŠŽLUŤOUČKÝKŮŇÚPĚLĎÁBELSKÉKÓDY.bin with any content

- filled subject PŘÍLIŠŽLUŤOUČKÝKŮŇÚPĚLĎÁBELSKÉKÓDY

- sent it as Correspond or Comment

- subject in RT frontend is set to:
PŘÍLIŠŽLUŤOUČKÝKŮŇÚPĚLĎÁBELSKÉKÓDY

- subject in Correspond e-mail notification is wrong:
PŘÍLIŠ ŽLUŤOUČKÝ KŮŇ ÚPĚL ĎÁBELSKÉ KÓDY


I believe this bug was recently fixed on the branch
4.0/unicode-transaction-subjects
https://github.com/bestpractical/rt/compare/4.0-trunk...4.0/unicode-transaction-subjects.

The branch hasn't been merged yet, pending some discussion of a larger
fix, however you can try applying the following patch and see if it
fixes your problem:

 curl https://github.com/bestpractical/rt/commit/57ea0c02.patch \
| patch -p1 -d /opt/rt4

You'll need to restart RT after the patch succeeds.

Thomas



[rt-users] Couldn't find Ticket for reminder XXX. Please contact administrator.

2012-04-03 Thread Cena, Stephen (ext. 300)
I was able to clear out most of the reminders by going to them 
setting them to resolved. I have one left that is lingering, 245. When
I go to ticket 245 and go to the Links page nothing is listed. All
links are blank. I talked to the user who created the ticket  she does
not believe she set up a reminder on her end for this ticket.