ServiceStack / Issues

Issue Tracker for the commercial versions of ServiceStack
11 stars 8 forks source link

Error in display of meta in ServiceStack/Templates/auth.html #732

Closed titobrasolin-ke closed 4 years ago

titobrasolin-ke commented 4 years ago

The line below seems a little strange to me: https://github.com/ServiceStack/ServiceStack/blob/46b4578bf1a3c4b863ac9e1a960b92f329bb581e/src/ServiceStack/Templates/auth.html#L254

if (cmpKey === 'meta')
{
    for (var name in v) {
        if (name.endsWith('-tokens')) {
            // ... Do something...
        } else {
            sb.push('<tr><th><div>' + humanize(k) + '</div></th><td><div>' + str + '</div></td></tr>');
        }
    }
}

If name does not end with '-tokens' then str is printed, whatever it contains. In fact, the "auth" page of the project I'm working on repeatedly shows the list of permissions next to the word "meta".

mythz commented 4 years ago

Can you please show a screenshot of a page containing the issue?

titobrasolin-ke commented 4 years ago

Of course, here it is:

image

mythz commented 4 years ago

I've updated it to render the meta properties in this commit.

This change is available from the latest v5.9.1 that's now available on MyGet.

Can you post an updated screenshot after you've upgraded to the latest version (if it doesn't contain any sensitive info).

titobrasolin-ke commented 4 years ago

Thank you so much @mythz

image