Cannot Reply to Comments
Closed, ResolvedPublic

Description

Replying sends a GET request (um...okay...) to

https://store.kde.org/productcomment/addreply/
?i=1436091
&p=
&m=433956
&msg=1%2B2.+This+is+a+bug+with+KWin.+The+QML+layouts+do+not+recieve+any+key+press+events%2C+so+we+can%27t+do+anything+when+the+arrow+keys+%2F+%22close+key%22+is+pressed.%0D%0Ahttps%3A%2F%2Fbugs.kde.org%2Fshow_bug.cgi%3Fid%3D374287%0D%0A%0D%0A3.+This+is+done+by+kwin+intentionally+to+make+quick+presses+faster%2C+since+it+won%27t+need+to+draw+a+popup+window.+It+does+look+at+a+config+key+in+~%2F.config%2Fkwinrc+though.%0D%0A%0D%0Akwriteconfig+--file+~%2F.config%2Fkwinrc+--group+TabBox+--key+DelayTime+0%0D%0Aqdbus+org.kde.KWin+%2FKWin+reconfigure%0D%0A%0D%0A4.+I+don%27t+see+any+hidden+config+keys+that+will+enable+this+feature+in+KWin.+None+of+the+other+layout+support+this+right%3F+So+you%27d+need+to+make+a+feature+request+to+KWin.+I+don%27t+see+any+open+requests%3A%0D%0A%0D%0Ahttps%3A%2F%2Fbugs.kde.org%2Fbuglist.cgi%3Fcomponent%3Dtabbox%26list_id%3D1442048%26order%3Dbug_id%2520DESC%26product%3Dkwin%26query_format%3Dadvanced%0D%0A%0D%0ASo+we+need+to+make+a+new+request+here%3A%0D%0Ahttps%3A%2F%2Fbugs.kde.org%2Fenter_bug.cgi%3Fproduct%3Dkwin%26component%3Dtabbox

Instead of the reply appearing, it instead shows a list of... comments (?) with no text.

The response is JSON

{
  "status": "ok",
  "message": "",
  "data": "..."
}

Where data is escaped HTML which starts like this:

<div class="container">
    <div class="row">
        <div class="col-md-8">
            <div class="page-header relative">
                <h3 style="line-height: 15px;">
                    <small class="pull-right">
                        <div class="row" style="margin:0;padding: 0;text-align: right;">151 comments</div>
                        <span class="glyphicon glyphicon-refresh spinning" style="display: none"></span> 
<ul class="pagination pagination-sm" style="margin: 0;padding:0;">
    <li class="disabled">
        <a class=""
           href="javascript:;">
            <span class="glyphicon glyphicon-chevron-left"></span>
        </a>
    </li>

                        <li class="active"><a class="paginationPartial" href="https://store.kde.org/productcomment/addreply/page/1">1</a>
                                <li><a  class="ajaxPartial paginationPartial" href="https://store.kde.org/productcomment/addreply/page/2">2</a></li>
                                <li><a  class="ajaxPartial paginationPartial" href="https://store.kde.org/productcomment/addreply/page/3">3</a></li>
                                <li><a  class="ajaxPartial paginationPartial" href="https://store.kde.org/productcomment/addreply/page/4">4</a></li>
                                <li><a  class="ajaxPartial paginationPartial" href="https://store.kde.org/productcomment/addreply/page/5">5</a></li>
                                <li><a  class="ajaxPartial paginationPartial" href="https://store.kde.org/productcomment/addreply/page/6">6</a></li>
                                <li><a  class="ajaxPartial paginationPartial" href="https://store.kde.org/productcomment/addreply/page/7">7</a></li>
            
    <li class="">
        <a class="paginationPartial"
           href="https://store.kde.org/productcomment/addreply/page/2">
            <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
    </li>
</ul>
<script type="application/javascript">
    $(document).ready(function () {
        $('body').off('click', 'ul.pagination a.paginationPartial').on('click', 'ul.pagination a.paginationPartial',function(event) {
                event.preventDefault();
                var target = 'div#product-discussion';            
                var url = $(this).attr("href") + ' ' + target + ' > *';   
                $('html, body').scrollTop($(target).offset().top);    
                $('.glyphicon.glyphicon-refresh.spinning').show();
                $(target).load(url, function (response, status, xhr) {
                    if (status == "error") {
                        $(target).empty().html('Service is temporarily unavailable. Our engineers are working quickly to resolve this issue. <br/>Find out why you may have encountered this error.');
                    }
                });                
                return false;
           });         
    });
</script>
</small>
                    Comments
                </h3>
                                    <p style="position: absolute; top:25px;">
                        <small class="small"><a data-toggle="collapse" href="#add-comment"><span class="glyphicon glyphicon-share-alt"></span> Add a comment</a></small>
                    </p>
                    <div class="collapse" id="add-comment" style="padding-top: 8px;">
                        <form class="full-width product-add-comment" action="/productcomment/addreply/">
                            <input type="hidden" name="p" value="">
                            <input type="hidden" name="m" value="433956">
                            <textarea name="msg" class="full-width"></textarea>
                            <button type="submit" style="border:none;background: transparent;color: #2673b0;" class="small"><span class="glyphicon glyphicon-send"></span> Send</button>
                        </form>
                    </div>
                            </div>
            <div class="comments-list"><a name="comments_block"></a>
                                    <div class="media" style="margin-left:0px">
                    
                                        <a class="media-left" href="/member/439637/">
                        <img src="https://cn.pling.com/cache/200x200-2/img/6/2/d/2/9592445e0e18f7843d601794aa988b667849.png" class="img1">
                    </a>
                    <div class="media-body">
                        <h4 class="media-heading user_name">The FranKenstein
                                <p class="pull-right history" >
                                                                        <small>18 <span class="light">hours ago</span></small>
                                                                    </p>
                        </h4>

                        <div class="text"></div>
                        <p>
                            <small class="small pull-right">
                                                            <a data-toggle="collapse" href="#reply-1436062"><span class="glyphicon glyphicon-share-alt"></span> Reply</a>
                                <span>&nbsp;</span>
                                                            <a data-toggle="modal" data-target="#report-1436062" role="button" href="#report-1436062">
                                    <span class="glyphicon glyphicon-alert"></span> Report
                                </a>
                            </small>
                        </p>
                        <div id="report-1436062" class="modal" tabindex="-1" role="dialog">
                            <div class="modal-dialog modal-sm">
                                <div class="modal-content" style="padding: 10px 10px 0 10px;">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                    </div>
                                    <form id="comment-report" class="full-width partialjson" action="/report/comment/" data-target="#report-1436062-message">
                                        <input type="hidden" name="i" value="1436062">
                                        <input type="hidden" name="p" value="">
                                        <div id="report-1436062-message">
                                        <p>Do you really want to report this comment?</p>
                                        <div class="modal-footer">
                                            <button type="submit" style="border:none;background: transparent;color: #2673b0;" class="small"><span class="glyphicon glyphicon-share-alt"></span> Yes</button>
                                        </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                                                <div class="collapse" id="reply-1436062">
                            <form class="full-width product-add-comment" action="/productcomment/addreply/">
                                <input type="hidden" name="i" value="1436062">
                                <input type="hidden" name="p" value="0">
                                <input type="hidden" name="m" value="433956">
                                <textarea name="msg" class="full-width"></textarea>
                                <button type="submit" style="border:none;background: transparent;color: #2673b0;" class="small"><span class="glyphicon glyphicon-send"></span> Send</button>
                                                            </form>
                        </div>
                        
                                            </div>
           </div>
                    <div class="media" style="margin-left:0px">
                    
                                        <a class="media-left" href="/member/350200/">
                        <img src="https://cn.pling.com/cache/60x60/img/hive/user-pics/nopic.png" class="img1">
                    </a>
                    <div class="media-body">
                        <h4 class="media-heading user_name">Jormvngandr
                                <p class="pull-right history" >
                                                                        <small>21 <span class="light">hours ago</span></small>
                                                                    </p>
                        </h4>

                        <div class="text"></div>
                        <p>
                            <small class="small pull-right">
                                                            <a data-toggle="collapse" href="#reply-1436051"><span class="glyphicon glyphicon-share-alt"></span> Reply</a>
                                <span>&nbsp;</span>
                                                            <a data-toggle="modal" data-target="#report-1436051" role="button" href="#report-1436051">
                                    <span class="glyphicon glyphicon-alert"></span> Report
                                </a>
                            </small>
                        </p>
                        <div id="report-1436051" class="modal" tabindex="-1" role="dialog">
                            <div class="modal-dialog modal-sm">
                                <div class="modal-content" style="padding: 10px 10px 0 10px;">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                    </div>
                                    <form id="comment-report" class="full-width partialjson" action="/report/comment/" data-target="#report-1436051-message">
                                        <input type="hidden" name="i" value="1436051">
                                        <input type="hidden" name="p" value="">
                                        <div id="report-1436051-message">
                                        <p>Do you really want to report this comment?</p>
                                        <div class="modal-footer">
                                            <button type="submit" style="border:none;background: transparent;color: #2673b0;" class="small"><span class="glyphicon glyphicon-share-alt"></span> Yes</button>
                                        </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                                                <div class="collapse" id="reply-1436051">
                            <form class="full-width product-add-comment" action="/productcomment/addreply/">
                                <input type="hidden" name="i" value="1436051">
                                <input type="hidden" name="p" value="0">
                                <input type="hidden" name="m" value="433956">
                                <textarea name="msg" class="full-width"></textarea>
                                <button type="submit" style="border:none;background: transparent;color: #2673b0;" class="small"><span class="glyphicon glyphicon-send"></span> Send</button>
                                                            </form>
                        </div>
                        
                                            </div>
           </div>
                    <div class="media" style="margin-left:0px">
                    
                                        <a class="media-left" href="/member/462888/">
                        <img src="https://avatars0.githubusercontent.com/u/9388806?v=3" class="img1">
                    </a>
                    <div class="media-body">
                        <h4 class="media-heading user_name">midas02
                                <p class="pull-right history" >
                                                                        <small>1 <span class="light">day ago</span></small>
                                                                    </p>
                        </h4>

                        <div class="text"></div>
                        <p>
                            <small class="small pull-right">
                                                            <a data-toggle="collapse" href="#reply-1436038"><span class="glyphicon glyphicon-share-alt"></span> Reply</a>
                                <span>&nbsp;</span>
                                                            <a data-toggle="modal" data-target="#report-1436038" role="button" href="#report-1436038">
                                    <span class="glyphicon glyphicon-alert"></span> Report
                                </a>
                            </small>
                        </p>
                        <div id="report-1436038" class="modal" tabindex="-1" role="dialog">
                            <div class="modal-dialog modal-sm">
                                <div class="modal-content" style="padding: 10px 10px 0 10px;">
                                    <div class="modal-header">
                                        <button type="butt
Zren created this task.Jun 1 2017, 5:34 PM

I should also note that the list of 151 comments isn't related to the product, since the product https://store.kde.org/p/1153173 only has ~5 comments.

Zren closed this task as Resolved.Jun 5 2017, 10:18 PM
Zren claimed this task.

I tried commenting again today and it worked.