Skip to content

V16.0.0: Segment returned when it's not created #19580

@tkjaergaard

Description

@tkjaergaard

Which Umbraco version are you using?

16.0.0

Bug summary

I'm not sure if this is "intended" behaviour?

When you request a node with the "Accept-Segment" header from the Content Delivery API. You end up getting a "segment" returned, even though it's not created.

I would have expected an error (404) or the "Default" segment to be returned if the segment dosen't exists or is not created.

Specifics

Image

Image

Steps to reproduce

  1. Add one or more segments
  2. Add a doctype that varies by segment
  3. Create the node without creating the segmented version
  4. Request the node from the Content Delivery API with the "Accept-Segment" header
  5. A node with "null" properties is returned.

Expected result / actual result

If the segment is not created or exists it should return either a error or the default segment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions