[OCS] [Bug 524039] New: OCS data for KDE store missing <licence> but the webpage does show it

[email protected]
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=524039

            Bug ID: 524039
           Summary: OCS data for KDE store missing <licence> but the
                    webpage does show it
    Classification: Frameworks and Libraries
           Product: OCS
      Version First unspecified
       Reported In:
          Platform: KDE Linux
                OS: Linux
            Status: REPORTED
          Severity: task
          Priority: NOR
         Component: General
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
KDE store page (store.kde.org) - shows licence information but the ocs data
does not have this element from the api
api.kde-look.org/ocs/v1/content/data/{contentId}
This make the consumers like KDE Discover to show Unknown status because
KNSBackend fails to find the licence element as it does not exist in the
response payload in the first place.

STEPS TO REPRODUCE
1. Pick any item from store.kde.org and take the content (after /p/ )
2. curl https://api.kde-look.org/ocs/v1/content/data/{contentId} | xmlstarlet
sel -t -v "//licence" || echo 404
3. 404 will get echo-ed if the licence element does not exist

OBSERVED RESULT
404 does print and KDE Discover shows Unknown Licence even though it really is
not.

EXPECTED RESULT
The licence element value as given on the website must be present and get
printed, allowing the consumers of this API to utilise it.

SOFTWARE/OS VERSIONS
perating System: Fedora Linux 44
KDE Plasma Version: 6.7.4
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1

ADDITIONAL INFORMATION
The software/os version is irrelevant for this issue but included anyways

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.