Moonshot-Webp doesn't provision the rules & services in the keyring

Bug #1430988 reported by Stefan Paetow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Moonshot ID Selector
Fix Released
High
Kevin Wasserman

Bug Description

I have an identity as below:

<identities><identity>
<display-name>Moonshot @ Cardiff</display-name>
<user>blah</user>
<password>whatever</password>
<realm>whatever.com</realm>
<selection-rules>
<rule><pattern>host/*.cf.ac.uk</pattern>
<always-confirm>false</always-confirm>
</selection-rules>
</identity></identities>

When I use moonshot-webp with the -f switch, the pattern is imported correctly into identities.txt. However, when I use moonshot-webp without the switch to import it into the keyring, the pattern is not imported, i.e. it does not show up in the view in Seahorse (the GNOME Keyring viewer in RedHat).

The pattern should show up, no?

Revision history for this message
Sam Hartman (hartmans) wrote : Re: [Bug 1430988] [NEW] Moonshot-Webp doesn't provision the rules & services in the keyring

Are you running with DISPLAY set in a session with the keyring unlocked?

Revision history for this message
Stefan Paetow (stefan-paetow) wrote :

Yup!

Revision history for this message
Stefan Paetow (stefan-paetow) wrote :

The identity is added in the keyring (and shows up in the Moonshot ID selector), but the keyring doesn't show the pattern. :-/

Revision history for this message
Sam Hartman (hartmans) wrote : Re: [Bug 1430988] Re: Moonshot-Webp doesn't provision the rules & services in the keyring

OK, when we've tried that it's worked fine.

Revision history for this message
Sam Hartman (hartmans) wrote :

And the program hangs?
Hmm.

Revision history for this message
Stefan Paetow (stefan-paetow) wrote :

No, in this case the program does not hang. I've just rebooted the workstation in question just in case DBus was stuck.

Running Moonshot-webp displays the same behaviour as reported. Identity is imported, but the pattern is not. The Rules-Pattern entry in the keyring entry for this identity is blank.

Revision history for this message
Kevin Wasserman (krwasserman) wrote :

Using moonshot.exe and moonshot-webp.exe just built on debian from the tip of master, I tried the example verbatim and got "could not parse, invalid content" from moonshot-webp. I then added the missing </rule>, re-ran and added the card successfully. In Seahorse, I see "Rules-Pattern: host/*.cf.ac.uk" as expected.

Changed in moonshot-ui:
status: New → Incomplete
assignee: nobody → Kevin Wasserman (krwasserman)
Revision history for this message
Kevin Wasserman (krwasserman) wrote :

Is it possible you have multiple "Moonshot @ Cardiff ..." identities with slightly different nai? If you already had an identity "Moonshot @ Cardiff" with a different nai, when you add this card, it should rename the newly added card to "Moonshot @ Cardiff 0" and the pattern would be visible under that card. Or there's something platform-specific going on.

Revision history for this message
Stefan Paetow (stefan-paetow) wrote :

No, I don't.

And although the description is missing the closing </rule> tag, the file on the VM (I was retyping it because of a drag and drop issue) does actually contain the closing tag (it was a copy of the moonshot.msht file in /usr/share/moonshot-ui/).

It is possible that your fix for the default identity possibly resolved this?

Revision history for this message
Stefan Paetow (stefan-paetow) wrote :

Platform-specific issues are also a possibility, yes... I'm testing with CentOS 6.5.

Revision history for this message
Kevin Wasserman (krwasserman) wrote :

No, I don't believe the fix for the "No Identity" update hang could be related to this. I'll try it out on Centos.

Revision history for this message
Stefan Paetow (stefan-paetow) wrote :

Ok... If possible... can you spin an RPM for me that I can install? I'll be happy to try it again with new code ;-)

Revision history for this message
Stefan Paetow (stefan-paetow) wrote :

Ok, even with the new code, a completely fresh ID selector (with no IDs in the keyring) will not import a pattern for No Identity (or any other) with Moonshot-Webp.

I think that's what you expected on #11.

But yes, problem still there on CentOS 6.5.

Revision history for this message
Kevin Wasserman (krwasserman) wrote :

Occurs only on Centos; most likely the old vala array property bug.

Changed in moonshot-ui:
importance: Undecided → High
status: Incomplete → Confirmed
Revision history for this message
Kevin Wasserman (krwasserman) wrote :

Fixed in commits:
883bf1bc0d10f9814306f77abcd7e0556e886d09
9f09eafa92b92dd094691ef159117f3f3b9bf69e
3070990ebff578c309fd53126aa9d1c252ce2d95

Changed in moonshot-ui:
status: Confirmed → Fix Committed
Revision history for this message
Stefan Paetow (stefan-paetow) wrote :

Thanks, Kevin. I'll try to confirm as fixed as soon as I have an updated RPM to test. :-)

Changed in moonshot-ui:
milestone: none → 0.9.6.1
Changed in moonshot-ui:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.