GitHub | 1 Jun 2012 10:37

[mantisbt-commits] [mantisbt/mantisbt] 33170d: Don't throw error when using db_fetch_array on emp...

  Branch: refs/heads/master
  Home:   https://github.com/mantisbt/mantisbt
  Commit: 33170d2d54643e63b1a60b021dcb0cbbb45e4157
      https://github.com/mantisbt/mantisbt/commit/33170d2d54643e63b1a60b021dcb0cbbb45e4157
  Author: Vincent Sels <vincent_sels@...>
  Date:   2012-06-01 (Fri, 01 Jun 2012)

  Changed paths:
    M core/database_api.php

  Log Message:
  -----------
  Don't throw error when using db_fetch_array on empty resultset

When you execute a query which returns no results, an error is thrown
when using db_fetch_array() on it, because the method tries to access
the EOF property of an object which in that case is null.

By adding an extra check on the passed p_result to see whether it is
null, you can safely use db_fetch_array for instance in while loops,
without having to always manually check whether or not the result has
rows. This makes code more readable and faster.

Fixes #14336

Signed-off-by: Damien Regad <damien.regad@...>

------------------------------------------------------------------------------
(Continue reading)

GitHub | 1 Jun 2012 10:37

[mantisbt-commits] [mantisbt/mantisbt] 9b1a28: Don't throw error when using db_fetch_array on emp...

  Branch: refs/heads/master-1.2.x
  Home:   https://github.com/mantisbt/mantisbt
  Commit: 9b1a282b239dea4095863ed71ac9e129592522a2
      https://github.com/mantisbt/mantisbt/commit/9b1a282b239dea4095863ed71ac9e129592522a2
  Author: Vincent Sels <vincent_sels@...>
  Date:   2012-06-01 (Fri, 01 Jun 2012)

  Changed paths:
    M core/database_api.php

  Log Message:
  -----------
  Don't throw error when using db_fetch_array on empty resultset

When you execute a query which returns no results, an error is thrown
when using db_fetch_array() on it, because the method tries to access
the EOF property of an object which in that case is null.

By adding an extra check on the passed p_result to see whether it is
null, you can safely use db_fetch_array for instance in while loops,
without having to always manually check whether or not the result has
rows. This makes code more readable and faster.

Fixes #14336

Signed-off-by: Damien Regad <damien.regad@...>

------------------------------------------------------------------------------
(Continue reading)

GitHub | 1 Jun 2012 21:46

[mantisbt-commits] [mantisbt/mantisbt-tools] faef97: Fix #14335: Ignore files in the docbook directory

  Branch: refs/heads/master
  Home:   https://github.com/mantisbt/mantisbt-tools
  Commit: faef97488c40c57ad3798006195469a8ae585dd1
      https://github.com/mantisbt/mantisbt-tools/commit/faef97488c40c57ad3798006195469a8ae585dd1
  Author: John Reese <john@...>
  Date:   2012-06-01 (Fri, 01 Jun 2012)

  Changed paths:
    M docbook-manual.py

  Log Message:
  -----------
  Fix #14335: Ignore files in the docbook directory

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mantisbt-cvs mailing list
mantisbt-cvs@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-cvs
GitHub | 1 Jun 2012 22:47

[mantisbt-commits] [mantisbt/mantisbt] ae8dbc: Rename admin guide folder to fix docbook builds fo...

  Branch: refs/heads/master-1.2.x
  Home:   https://github.com/mantisbt/mantisbt
  Commit: ae8dbcb6a78cf52b0850230dfb5f4a2bad2e8ab6
      https://github.com/mantisbt/mantisbt/commit/ae8dbcb6a78cf52b0850230dfb5f4a2bad2e8ab6
  Author: John Reese <john@...>
  Date:   2012-06-01 (Fri, 01 Jun 2012)

  Changed paths:
    R docbook/adminguide/en/Makefile
    R docbook/adminguide/en/about.sgml
    R docbook/adminguide/en/administration_guide.sgml
    R docbook/adminguide/en/authentication.sgml
    R docbook/adminguide/en/configuration.sgml
    R docbook/adminguide/en/contributing.sgml
    R docbook/adminguide/en/customizing_mantis.sgml
    R docbook/adminguide/en/file-entities.ent
    R docbook/adminguide/en/installation.sgml
    R docbook/adminguide/en/page_descriptions.sgml
    R docbook/adminguide/en/project_management.sgml
    R docbook/adminguide/en/troubleshooting.sgml
    R docbook/adminguide/en/user_management.sgml
    R docbook/adminguide/en/workflow.sgml
    A docbook/administration_guide/en/Makefile
    A docbook/administration_guide/en/about.sgml
    A docbook/administration_guide/en/administration_guide.sgml
    A docbook/administration_guide/en/authentication.sgml
    A docbook/administration_guide/en/configuration.sgml
    A docbook/administration_guide/en/contributing.sgml
    A docbook/administration_guide/en/customizing_mantis.sgml
    A docbook/administration_guide/en/file-entities.ent
(Continue reading)

GitHub | 2 Jun 2012 07:45

[mantisbt-commits] [mantisbt/mantisbt] 0faacc: Fixes #14094: mc_issue_add project['name'] is not ...

  Branch: refs/heads/master-1.2.x
  Home:   https://github.com/mantisbt/mantisbt
  Commit: 0faacc35843b7145b8e81d8b64bf67d144dcbfa0
      https://github.com/mantisbt/mantisbt/commit/0faacc35843b7145b8e81d8b64bf67d144dcbfa0
  Author: Victor Boctor <vboctor@...>
  Date:   2012-06-01 (Fri, 01 Jun 2012)

  Changed paths:
    M api/soap/mc_api.php

  Log Message:
  -----------
  Fixes #14094: mc_issue_add project['name'] is not used

Thanks to Tino Böhme (tino) for contributing a patch.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mantisbt-cvs mailing list
mantisbt-cvs@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-cvs
(Continue reading)

GitHub | 2 Jun 2012 07:58

[mantisbt-commits] [mantisbt/mantisbt] 01b4a0: Fixes #14341: SOAP API is failing due to PHP error...

  Branch: refs/heads/master-1.2.x
  Home:   https://github.com/mantisbt/mantisbt
  Commit: 01b4a042d0f193ba4305d7e4cef274ee6d7a9109
      https://github.com/mantisbt/mantisbt/commit/01b4a042d0f193ba4305d7e4cef274ee6d7a9109
  Author: Victor Boctor <vboctor@...>
  Date:   2012-06-01 (Fri, 01 Jun 2012)

  Changed paths:
    M api/soap/mc_api.php

  Log Message:
  -----------
  Fixes #14341: SOAP API is failing due to PHP errors that are ignored by the web app.

  Commit: 4c125ed87d80c8d89e1143ce719617346ee3967a
      https://github.com/mantisbt/mantisbt/commit/4c125ed87d80c8d89e1143ce719617346ee3967a
  Author: Victor Boctor <vboctor@...>
  Date:   2012-06-01 (Fri, 01 Jun 2012)

  Changed paths:
    M api/soap/mc_api.php

  Log Message:
  -----------
  Cleanup SOAP error handler which contained dead code.

Compare: https://github.com/mantisbt/mantisbt/compare/0faacc3...4c125ed
------------------------------------------------------------------------------
(Continue reading)

GitHub | 2 Jun 2012 08:01

[mantisbt-commits] [mantisbt/mantisbt] c97864: Fixes #14094: mc_issue_add project['name'] is not ...

  Branch: refs/heads/master
  Home:   https://github.com/mantisbt/mantisbt
  Commit: c978645c1e86099204df70cbd7cb1972506e179e
      https://github.com/mantisbt/mantisbt/commit/c978645c1e86099204df70cbd7cb1972506e179e
  Author: Victor Boctor <vboctor@...>
  Date:   2012-06-01 (Fri, 01 Jun 2012)

  Changed paths:
    M api/soap/mc_api.php

  Log Message:
  -----------
  Fixes #14094: mc_issue_add project['name'] is not used

Thanks to Tino Böhme (tino) for contributing a patch.

  Commit: c2f15790a2652f30e899fa243b8252f949a8f216
      https://github.com/mantisbt/mantisbt/commit/c2f15790a2652f30e899fa243b8252f949a8f216
  Author: Victor Boctor <vboctor@...>
  Date:   2012-06-01 (Fri, 01 Jun 2012)

  Changed paths:
    M api/soap/mc_api.php

  Log Message:
  -----------
  Fixes #14341: SOAP API is failing due to PHP errors that are ignored by the web app.

  Commit: ce7ec5321542179872df7f032a7571d0fa58ecc9
      https://github.com/mantisbt/mantisbt/commit/ce7ec5321542179872df7f032a7571d0fa58ecc9
(Continue reading)

GitHub | 2 Jun 2012 09:48

[mantisbt-commits] [mantisbt/mantisbt] bbc8e9: Bug and bugnote access level checks should use pro...

  Branch: refs/heads/master
  Home:   https://github.com/mantisbt/mantisbt
  Commit: bbc8e9be8e64f3e17905caa184572e5abd586c4c
      https://github.com/mantisbt/mantisbt/commit/bbc8e9be8e64f3e17905caa184572e5abd586c4c
  Author: David Hicks <d <at> hx.id.au>
  Date:   2012-06-02 (Sat, 02 Jun 2012)

  Changed paths:
    M core/access_api.php

  Log Message:
  -----------
  Bug and bugnote access level checks should use project settings

Calls to config_get to retrieve configuration values should include the
relevant project ID to ensure that project-specific bugnote/bug
thresholds are taken into consideration over global settings.

An erronous use of the REPORTER constant has also been replaced. This
allows for valid/correct use of custom access levels in relation to the
$g_limit_reporters=ON functionality.

  Commit: 508cab0054e6ac62988bbe7fb5aa250239bd0d14
      https://github.com/mantisbt/mantisbt/commit/508cab0054e6ac62988bbe7fb5aa250239bd0d14
  Author: David Hicks <d <at> hx.id.au>
  Date:   2012-06-02 (Sat, 02 Jun 2012)

  Changed paths:
    M api/soap/mc_issue_api.php

(Continue reading)

GitHub | 2 Jun 2012 09:48

[mantisbt-commits] [mantisbt/mantisbt] 8e5faf: Bug and bugnote access level checks should use pro...

  Branch: refs/heads/master-1.2.x
  Home:   https://github.com/mantisbt/mantisbt
  Commit: 8e5faf8c316a352e89e733de1452356716a59ac5
      https://github.com/mantisbt/mantisbt/commit/8e5faf8c316a352e89e733de1452356716a59ac5
  Author: David Hicks <d <at> hx.id.au>
  Date:   2012-06-01 (Fri, 01 Jun 2012)

  Changed paths:
    M core/access_api.php

  Log Message:
  -----------
  Bug and bugnote access level checks should use project settings

Calls to config_get to retrieve configuration values should include the
relevant project ID to ensure that project-specific bugnote/bug
thresholds are taken into consideration over global settings.

An erronous use of the REPORTER constant has also been replaced. This
allows for valid/correct use of custom access levels in relation to the
$g_limit_reporters=ON functionality.

  Commit: edc8142bb8ac0ac0df1a3824d78c15f4015d959e
      https://github.com/mantisbt/mantisbt/commit/edc8142bb8ac0ac0df1a3824d78c15f4015d959e
  Author: David Hicks <d <at> hx.id.au>
  Date:   2012-06-02 (Sat, 02 Jun 2012)

  Changed paths:
    M api/soap/mc_issue_api.php

(Continue reading)

GitHub | 2 Jun 2012 11:52

[mantisbt-commits] [mantisbt/mantisbt] 820817: Fix #14342: mc_issue_api functions do not perform ...

  Branch: refs/heads/master
  Home:   https://github.com/mantisbt/mantisbt
  Commit: 8208170bc6b6989f2616df5bbe9a1c12a88a2a4d
      https://github.com/mantisbt/mantisbt/commit/8208170bc6b6989f2616df5bbe9a1c12a88a2a4d
  Author: David Hicks <d <at> hx.id.au>
  Date:   2012-06-02 (Sat, 02 Jun 2012)

  Changed paths:
    M api/soap/mc_issue_api.php

  Log Message:
  -----------
  Fix #14342: mc_issue_api functions do not perform read only checks

Various SOAP functions in mc_issue_api.php did not perform checks to
ensure that read only issues are unmodifiable.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mantisbt-cvs mailing list
mantisbt-cvs@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-cvs
(Continue reading)


Gmane