Perforce tickets

Idea 7.0.1

It looks to me that Idea doesn't read Perforce tickets. Am I right, or I
missed some settings?
I use P4CONFIG environment variable. File, which this variable points to
contains P4CLIENT, P4PORT, P4USER and P4PASSWD. I assign to P4PASSWD
value copied from p4tickets.txt (on Windows), or from .p4tickets (on Linux).
Whenever my ticket expires, I login to Perforce, and than copy new
ticket to my configuration file. One of the Perforce servers I connect
to has one week ticket expiration policy, so I have to repeat this
procedure every week.

Would it be possible, to enhance Idea so it will use ticket value from
p4tickets.txt if:
- P4PASSWD is not present, and
- P4PORT and P4USER match the entry in p4tickets.txt (or .p4tickets)

0
3 comments
Avatar
Permanently deleted user

Hello TomP,

Idea 7.0.1

It looks to me that Idea doesn't read Perforce tickets. Am I right, or
I missed some settings?


Do you have "Use login authentication" option enabled in the Perforce settings?
This should be enabled if your server is using ticket-based authentication.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Dmitri,

I've tried unsuccessfully with 'Login authentication' on Windows.
In P4CONFIG file I have set P4CLIENT, P4PORT, and P4USER, but no P4PASSWD.
I'm logged in using P4V, and ticket is present.
In VC Configuration dialog, when I run 'Test Connection', test passes.
Than I clicked OK, but was asked for password again. Despite providing
correct password, connection is unsuccessful, and I'm asked for password
again.

Than I played with other options.
What I found out, that Perforce integration works when I disable 'Use
Native APIs'!

Is it Idea bug, Perforce API bug, or something else?
Or maybe it is my Perforce setup? I use two different servers: one at
work and another at home.

0
Avatar
Permanently deleted user

Hello TomP,

I've tried unsuccessfully with 'Login authentication' on Windows.
In P4CONFIG file I have set P4CLIENT, P4PORT, and P4USER, but no
P4PASSWD.
I'm logged in using P4V, and ticket is present.
In VC Configuration dialog, when I run 'Test Connection', test passes.
Than I clicked OK, but was asked for password again. Despite providing
correct password, connection is unsuccessful, and I'm asked for
password
again.
Than I played with other options.
What I found out, that Perforce integration works when I disable 'Use
Native APIs'!
Is it Idea bug, Perforce API bug, or something else?


This may be an IDEA bug, but in general we don't recommend to enable "Use
native API" because this option causes known stability problems.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.