Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

chatterbot has no XML version

by choroba (Cardinal)
on Apr 12, 2024 at 10:28 UTC ( [id://11158835]=monkdiscuss: print w/replies, xml ) Need Help??

PerlMonks pages can be retrieved in XML with just appending displaytype=xml to the URL query. It works even for users, e.g. me in XML.

For our beloved brother chatterbot, though, this isn't the case. The XML version returns nothing, which breaks the XML parser in pc-cb-g. Why is that?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re: chatterbot has no XML version
by marto (Cardinal) on Apr 12, 2024 at 10:31 UTC

    Perhaps because the account is currently locked?"

      Seems likely. Another (normal user) locked account I tried also returns no XML.


      🦛

        Correct. I have just converted that account back to a normal account. Now its xml works.

      This post is mostly for information about the accidental account lock, not about the XML view of the homenode.

      Just a note here: The most likely reason the chatterbot account was locked was that the Monastery did *exactly* what we would expect under those circumstances. Let me explain:

      chatterbot is Level 1: Initiate with no posts. It shouldn't have the ability to have a homenode image (yet it does) and has other limitations. According to jdporter/erzuuli, low/no XP can trigger autolocking under certain circumstances like putting in external URLs. This limits the ability to use the homenode feature for link farming etc, a measure i fully approve.

      I just totally forgot that these and similar measures are in place. When i was updating my pagecamel framework (webserver, workers, etc) on the XPD server, i ran into a couple of bugs with the custom "Register" function. So i tried to register chatterbot as XPD user, which includes the step of temporarily putting an ID string into your homenode to verify that it is really your PerlMonks account. The homenode updated, triggered the autolocking feature and the rest is history.

      Exactly what of this update triggered the autolock is still not clear to me.

      If you have something similar happen to you, best way to solve it is to contact gods to get the account unlocked.

      This doesn't really affect user who want to play around with XPD, since the minimums for registration i impose should be way above XP and writeup criterium for the "this is a new spam account" autolocking trigger.

      PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
        Exactly what of this update triggered the autolock is still not clear to me

        There really isn't anything more to it than that. When a user saves their profile, if it contains a URL and they have low XP, the account gets locked.

Re: chatterbot has no XML version
by LanX (Saint) on Apr 12, 2024 at 13:53 UTC
    > Why is that?

    My guess, most locked accounts are spammers.

    Locking disabled showing their profile including their spam.

    But (IIRC) the xml view used to be a backdoor to read this info even after locking.

    I think I mentioned it to the gods and at some time they simply disabled xml for locked accounts.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    see Wikisyntax for the Monastery

      Makes sense, but a <locked/> would be more user friendly. I expect a valid XML to return...
      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://11158835]
Approved by marto
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-05-21 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found