Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-23233

JsonCoreIODelegate should not require a CoreSession

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.10, 8.3, 8.10-HF15
    • Fix Version/s: 7.10-HF34, 8.10-HF18, 9.3
    • Component/s: Rest API

      Description

      The class JsonCoreIODelegate extends PartialCoreIODelegate, in which a CoreSession is required.

      PartialCoreIODelegate.java
          @Override
          public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType) {
              if (accept(type, genericType, annotations, mediaType)) {
                  RenderingContext ctx = RenderingContextWebUtils.getContext(request);
                  ...
              }
          }
      

      However, Nuxeo server might receive HTTP request where client does not provide a core session. It breaks the open URL in Studio, in which HTTP clients are not Studio users. See NXS-4287

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 3 hours, 30 minutes
                  2d 3h 30m