Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-31823

Updating PGP urls via UI throwing exception

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.15.1
    • Fix Version/s: None
    • Component/s: UI
    • Labels:

      Description

      Noticed that when attempting to update the pgp urls via the UI is throwing an exception not allowing the save (trimmed stacktrace below). Marked affects version as 2.15.1 though this was noticed on latest master as of 4/15, not with a 2.15.1 bundle

      jvm 1    | 2022-04-14 17:35:10,916-0400 WARN  [qtp2130486552-21] admin org.sonatype.nexus.rest.NexusRestletResource - Invalid XML, unable to parse using XStream class com.sonatype.nexus.pgp.api.PGPConfigurationPlexusResource
      jvm 1    | com.thoughtworks.xstream.security.ForbiddenClassException: com.sonatype.nexus.pgp.api.dto.PGPConfigurationDTO
      jvm 1    |      at com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26)
      jvm 1    |      at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:74)
      jvm 1    |      at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
      jvm 1    |      at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
      jvm 1    |      at com.thoughtworks.xstream.core.util.HierarchicalStreams.readClassType(HierarchicalStreams.java:29)
      jvm 1    |      at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:135)
      jvm 1    |      at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
      jvm 1    |      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1421)
      jvm 1    |      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1399)
      jvm 1    |      at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1337)
      jvm 1    |      at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1326)
      jvm 1    |      at org.sonatype.plexus.rest.representation.XStreamRepresentation.getPayload(XStreamRepresentation.java:62)
      jvm 1    |      at org.sonatype.plexus.rest.resource.RestletResource.deserialize(RestletResource.java:174)
      jvm 1    |      at org.sonatype.plexus.rest.resource.RestletResource.storeRepresentation(RestletResource.java:295)
      jvm 1    |      at org.sonatype.nexus.rest.NexusRestletResource.storeRepresentation(NexusRestletResource.java:91)
      jvm 1    |      at org.restlet.resource.Resource.put(Resource.java:706)
      jvm 1    |      at org.restlet.resource.Resource.handlePut(Resource.java:603)
      

      Workaround: Hand editing the pgp.xml file in conf dir and restarting nxrm2 got me where i needed

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dbradicich Damian Bradicich
            Last Updated By:
            Matthew Piggott Matthew Piggott
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title