https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36468

            Bug ID: 36468
           Summary: Remaining content-type = text/plain when JSON or HTML
                    is returned
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

Found when reviewing Bug 36418

serials/subscription-frequency.pl

> print $input->header(-type => 'text/plain', -charset => 'UTF-8');
> print to_json( $frequencyrecord );

---

same in 
serials/subscription-numberpattern.pl

---

serials/create-numberpattern.pl manual json here:
> print $input->header(-type => 'text/plain', -charset => 'UTF-8');
> print "{\"numberpatternid\":\"$numberpatternid\"}";

---

Here it's HTML but still text/plain content-type
acqui/ajax-getauthvaluedropbox.pl


---

I searched with
rg "text/plain" -C 10 | rg "json" -C 10 # rg is the package ripgrep in most
cases
(and somehow the html case came up in the noise due to the wacky grep chaining)

I tried doing the same with `git grep` + grep but I got even more noise that I
already had.

Anyway, that's an hint to give ideas to eventually find more inconsistencies.
(apply Bug 36418 is it's still not merged)

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to