[Issue 4573] New - ProjectMatrixAuthorizationStrategy: Invalidated config.xml

6 messages Options
Embed this post
Permalink
mindless

[Issue 4573] New - ProjectMatrixAuthorizationStrategy: Invalidated config.xml

Reply Threaded More More options
Print post
Permalink
https://hudson.dev.java.net/issues/show_bug.cgi?id=4573
                 Issue #|4573
                 Summary|ProjectMatrixAuthorizationStrategy: Invalidated config
                        |.xml
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|Linux
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|core
             Assigned to|issues@hudson
             Reported by|chrisabit






------- Additional comments from [hidden email] Tue Sep 29 11:30:38 +0000 2009 -------
=> Manage Hudson
=> Configure System
=> Access Control (LDAP-Config !!!)
=> Authorization
=> Check: Project-based Matrix Authorization Strategy
=> User/group to add: "m500488"
=> Klick "add"
=> Configure Matrix: Check all permissions fpr m500488
=> Tomcat: Reload Hudson-Webapplication
=> Reenter Hudson-Webapplication
=> The following Exception occurs:

hudson.util.IOException2: Unable to read /usr/share/tomcat5/.hudson/config.xml
        at hudson.XmlFile.unmarshal(XmlFile.java:152)
        at hudson.model.Hudson.load(Hudson.java:1967)
        at hudson.model.Hudson.(Hudson.java:560)
        at hudson.WebAppMain$2.run(WebAppMain.java:191)
Caused by: com.thoughtworks.xstream.converters.ConversionException: Failed to
parse 'hudson.model.Item.Release:m500488' --- no such permission : Failed to
parse 'hudson.model.Item.Release:m500488' --- no such permission
---- Debugging information ----
message             : Failed to parse 'hudson.model.Item.Release:m500488' --- no
such permission
cause-exception     : java.lang.IllegalArgumentException
cause-message       : Failed to parse 'hudson.model.Item.Release:m500488' --- no
such permission
class               : hudson.model.Hudson
required-type       : hudson.security.ProjectMatrixAuthorizationStrategy
path                : /hudson/authorizationStrategy/permission[2]
line number         : 9
-------------------------------
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
        at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
        at
hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
        at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
        at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
        at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
        at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
        at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
        at hudson.util.XStream2.unmarshal(XStream2.java:67)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
        at hudson.XmlFile.unmarshal(XmlFile.java:148)
        ... 3 more
Caused by: java.lang.IllegalArgumentException: Failed to parse
'hudson.model.Item.Release:m500488' --- no such permission
        at
hudson.security.GlobalMatrixAuthorizationStrategy.add(GlobalMatrixAuthorizationStrategy.java:101)
        at
hudson.security.GlobalMatrixAuthorizationStrategy.access$200(GlobalMatrixAuthorizationStrategy.java:65)
        at
hudson.security.GlobalMatrixAuthorizationStrategy$ConverterImpl.unmarshal(GlobalMatrixAuthorizationStrategy.java:218)
        at
hudson.security.ProjectMatrixAuthorizationStrategy$ConverterImpl.unmarshal(ProjectMatrixAuthorizationStrategy.java:84)
        at hudson.util.XStream2$AssociatedConverterImpl.unmarshal(XStream2.java:151)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
        ... 19 more

------- Additional comments from [hidden email] Sat Oct 10 02:49:06 +0000 2009 -------
*** Issue 4574 has been marked as a duplicate of this issue. ***

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mindless

[Issue 4573] ProjectMatrixAuthorizationStrategy: Invalidated config.xml

Reply Threaded More More options
Print post
Permalink
https://hudson.dev.java.net/issues/show_bug.cgi?id=4573



User mindless changed the following:

                What    |Old value                 |New value
================================================================================
                      CC|''                        |'mindless'
--------------------------------------------------------------------------------
              QA contact|issues@hudson             |teilo
--------------------------------------------------------------------------------
            Subcomponent|core                      |m2release
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Sun Nov  8 07:01:07 +0000 2009 -------
Do you have m2release plugin installed?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mindless

[Issue 4573] ProjectMatrixAuthorizationStrategy: Invalidated config.xml

Reply Threaded More More options
Print post
Permalink
In reply to this post by mindless
https://hudson.dev.java.net/issues/show_bug.cgi?id=4573






------- Additional comments from [hidden email] Tue Nov 10 16:12:17 +0000 2009 -------
I'm only able to reproduce this by granting someone Release permission, then
going to Manage Plugins and disabling the Maven Release plugin, then restarting
Hudson.  Could that be what you did?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

teilo

[Issue 4573] ProjectMatrixAuthorizationStrategy: Invalidated config.xml

Reply Threaded More More options
Print post
Permalink
In reply to this post by mindless
https://hudson.dev.java.net/issues/show_bug.cgi?id=4573






------- Additional comments from [hidden email] Tue Nov 10 20:31:54 +0000 2009 -------
Which version of M2Release was this?

kohsuke fixed something very similar in 0.3.3
see issue 4172.

Is there any cleanup possible when a plugin is disabled?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

mindless

[Issue 4573] ProjectMatrixAuthorizationStrategy: Invalidated config.xml

Reply Threaded More More options
Print post
Permalink
In reply to this post by mindless
https://hudson.dev.java.net/issues/show_bug.cgi?id=4573



User mindless changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|issues@hudson             |mindless
--------------------------------------------------------------------------------
              QA contact|teilo                     |issues@hudson
--------------------------------------------------------------------------------
            Subcomponent|m2release                 |core
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Tue Nov 10 22:40:16 +0000 2009 -------
I suspect chrisabit is using an older m2release version, so this issue is a
duplicate of #4172 (thx teilo for that pointer).
However, really Hudson core should handle the case where m2release is disabled
but permissions still exist in Hudson or job config.  I'm making this change, so
unrecognized permissions are now handled like other unrecognized items in XML
(builders, publishers, etc).. write a log message and ignore them.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

scm_issue_link

[Issue 4573] ProjectMatrixAuthorizationStrategy: Invalidated config.xml

Reply Threaded More More options
Print post
Permalink
In reply to this post by mindless
https://hudson.dev.java.net/issues/show_bug.cgi?id=4573



User scm_issue_link changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Tue Nov 10 22:45:07 +0000 2009 -------
Code changed in hudson
User: : mindless
Path:
 trunk/hudson/main/core/src/main/java/hudson/security/AuthorizationMatrixProperty.java
 trunk/hudson/main/core/src/main/java/hudson/security/GlobalMatrixAuthorizationStrategy.java
 trunk/www/changelog.html
http://fisheye4.cenqua.com/changelog/hudson/?cs=23637
Log:
[FIXED HUDSON-4573] Write log message and ignore unrecognized permissions when loading XML,
so these behave the same as other unknown fields (builders, publishers, etc).
Also changed context.convertAnother() calls to simpler reader.getValue()/writer.setValue()


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]