PortaMx 2.0 Virgo for SMF 2.1 Beta 2 released

Started by feline, September 05, 2015, 11:32:33 AM

Previous topic - Next topic

feline

We released the second Beta of our Portal software for SMF 2.1 Beta 2.

We added many new function to this release... try it .. test it.

You can see this in action on our site http://virgo.portamx.com and download on https://github.com/PortaMx

Note, that SMF 2.1 and PortaMx Virgo are Beta releases. Don't use this on productive sites !!!

d3vcho

"Greeting Death as an old friend, they departed this life as equals"

Kindred

sorry.... doesn't install at all

failed on every process...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori


Notice: Undefined index: package_readme in D:\wamp\www\github2.1\Sources\Packages.php on line 332

SMF cannot parse a readme that is .md apparently.


feline

I have just tested the install with the developed SMF 2.1 beta 2 package ... installation works perfect without any problem.

So I don't known why you have problems ...

feline

Quote from: Illori on September 05, 2015, 03:51:14 PM
SMF cannot parse a readme that is .md apparently.
That file is not parsed .. it's only in the zip file..

feline

Quote from: Kindred on September 05, 2015, 12:07:54 PM
sorry.... doesn't install at all

failed on every process...
is it possible, that your server can't install a file where the package is in a subdir.. like github that make
then you can repack the archive ...

Illori

i repacked the archive and it was still giving me the errors that kindred showed as well as the readme error.

<readme type="file" parsebbc="true">install/readme.bbc</readme>

i guess SMF cant read a .bbc file either.

feline


Illori

are you using the latest source from github for 2.1? mine is from 12am EDT today.

feline

Quote from: Illori on September 05, 2015, 05:59:00 PM
are you using the latest source from github for 2.1? mine is from 12am EDT today.
No .. i use the released beta 2 from download section

a other interesting thing .. how ecl works for normal user vs spider (see image)  :)


Kindred

Ah... Well, that one is already outdated...   But it looks like the current build may have broken the package manager,  have to try some other mods
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

Quote from: Kindred on September 05, 2015, 06:44:14 PM
Ah... Well, that one is already outdated...   But it looks like the current build may have broken the package manager,  have to try some other mods

yep it is the package manager. it is broken now.

feline

Quote from: Kindred on September 05, 2015, 06:44:14 PM
Ah... Well, that one is already outdated...
Well .. that is the one and only "offical release" of 2.1 😕

live627

Quote from: Illori on September 05, 2015, 07:22:18 PM
Quote from: Kindred on September 05, 2015, 06:44:14 PM
Ah... Well, that one is already outdated...   But it looks like the current build may have broken the package manager,  have to try some other mods

yep it is the package manager. it is broken now.
Try today's build. Seems to be fixed now.

Illori

yep both issues seem resolved.

thanks for looking into it.

feline

Well .. I will test it with the current Github Version comming Werk ...

feline

Well .. I tested the current Github release ..

two fixes are need on the installer (simple to fix)

and I see, that the WIRELESS mode is completely removed !?

I see that correct ?


feline

ah .. ok .. that needs a lot of removes and fixes.

It's done on my test system ..
After all test i will update github .

feline

A other bug I found on the package manager ..

At final install, a html file is shown to see the install result.

<redirect url="$scripturl?action=admin;area=pmx_center" timeout="60000">install/installdone.html</redirect>

That worked in ALL releases .. but NOT in the current github release.

That is a bug I think ... can you fix that please !?

Kindred

actually - that seems to be part of the (remove HTML in anything -- which in this case, is definitely a potential security issue) -- so the readme displayed after the installation should be using BBC, not HTML any more.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

Quote from: Kindred on September 06, 2015, 03:02:36 PM
actually - that seems to be part of the (remove HTML in anything -- which in this case, is definitely a potential security issue) -- so the readme displayed after the installation should be using BBC, not HTML any more.

i dont recall that html has been removed from the readme type stuff in installing packages. if we do want to do it, it should be opened as an issue on github.

i tested a mod that is for 2.0 that has html in the uninstaller, it shows up just fine in 2.1... so html has not been disabled in this area.

Kindred

Every single mod I have installed on 2.1 has displayed the readme is text -- including not parsing any HTML, if such is included...

and I was happy -- because it is a potential security hole... I could include malicious code in the mod readme...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

there is a readme that can be added after you uninstall the mod, that can still be parsed with html

feline

Interesting what i read here  :D

Can anyon now tell me if a html readme works after install or not?
Can I use a BBC readme ?

It was great, if this  point cleared for me .. thanks

feline

Well .. I found why html not worked on redirect (in fact, only text will work here, that is not good !!)


// Handle a redirect...
elseif ($action['type'] == 'redirect' && !empty($action['redirect_url']))
{
$context['redirect_url'] = $action['redirect_url'];
$context['redirect_text'] = !empty($action['filename']) && file_exists($packagesdir . '/temp/' . $context['base_path'] . $action['filename']) ? $smcFunc['htmlspecialchars'](file_get_contents($packagesdir . '/temp/' . $context['base_path'] . $action['filename'])) : ($context['uninstalling'] ? $txt['package_uninstall_done'] : $txt['package_installed_done']);
$context['redirect_timeout'] = $action['redirect_timeout'];


The $smcFunc['htmlspecialchars'] will destroy all html tag .. that is ugly and have nothing todo with security ..

But .. if smf mean that, then it was a good option to allow here bbc code (as in the readme BEFORE install).

Kindred

actually, that *IS* good.  That is exactly what SHOULD be happening - see my comments above.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

feline

The result it's (maybe) very ugly .. no line breaks, nothing.
I think, a simple <br /> is no risk .. but the result can be read .. the current situation is ugly .. VERY !!

feline

Well .. I looked at that and found s solution, they NOT have any risk, but give the result string more redable structure.

In the file Packages.template.php make the simple change:
find:

// If we are going to redirect we have a slightly different agenda.
if (!empty($context['redirect_url']))
{
echo '
', $context['redirect_text'], '<br><br>
<a href="', $context['redirect_url'], '">', $txt['package_installed_redirect_go_now'], '</a> | <a href="', $scripturl, '?action=admin;area=packages;sa=browse">', $txt['package_installed_redirect_cancel'], '</a>';
}


replace width:

// If we are going to redirect we have a slightly different agenda.
if (!empty($context['redirect_url']))
{
echo '
', str_replace('\n', '<br>', $context['redirect_text']), '<br><br>
<a href="', $context['redirect_url'], '">', $txt['package_installed_redirect_go_now'], '</a> | <a href="', $scripturl, '?action=admin;area=packages;sa=browse">', $txt['package_installed_redirect_cancel'], '</a>';
}


That will replace all "newline" (\n) to a simple <br> and gives the output a little bit more structure without any risk ..

Thank for reading...

live627

I thought parse_bbc() already did that.

EDIT: My bad, I should've seen the code before assuming...

feline

 ;D at this point no bbc is parsed .. but that is not a big problem, if SMF apply the small change I posted.
That is no risk, but helps to get a textural read.me a better redable ...

a not from me;
I think, a bbs parse at this point is also no risk, but a very better visuabillity  :)

margarett

IIRC, it should destroy HTML (it's one of the security issues patched between 2.0.8 and 2.0.10, as a evil package could use HTML to perform evil stufzzzz :) )
And a txt file with BBC should be perfectly parsed but as a readme. I never actually tried a redirect to a page (which isn't an SMF page itself) in a file but, according to the same security principle above, it should not be allowed...

@live627, is it possible to parse a page which isn't even tied to SMF?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

live627

What do you mean? In a SSI page, you can call the function.

margarett

There is no SSI in this page
https://github.com/PortaMx/PortaMx-Virgo-2.0-Beta-2/blob/master/install/installdone.html

(admittedly I'm confused about this because I'm not used to see redirects to HTML pages, just inline text and I haven't really tried it :(
And this is something we need to sanitize because this presents the same level of "security issue" of the other PackMan sanitized stuff... we sanitized package name, readme, etc etc... So we need to make sure that BBC can be parsed (like in the readme) and that no HTML can be used. I think :P )
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

feline

What we do with this page ...

We insert all action results from the database installer in this file, so the user can see what the installer (php) have made.
I think this is a good option to inform the user, what a mod do ...

The minimum html code we need for this is a simple <br>, because a \n do not work here.
And that can be done, with the simple change I posted ...

feline

As I see just ..

Why you have removed the Forum width in Theme settings ?

Illori

it can break the responsive theme so it was removed.

feline


Antes


feline

Quote from: Antes on September 08, 2015, 11:12:37 AM
You should leave the table design as well. :)
Well .. the one table is need, because div's you can't collapse in this case ..

Kindred

why can't you collapse divs?


tables should only be used for tabular data display, these days - not for layout.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Antes

Table (<table>) is no longer needed on the interwebz. You can use display: table/table-row/table-cell element to empower it (if you need).

Advertisement: